顯示具有 Debian 10 (Buster) 標籤的文章。 顯示所有文章
顯示具有 Debian 10 (Buster) 標籤的文章。 顯示所有文章

2020年1月22日 星期三

Install Debian 10 Buster on VirtualBox , Install VirtualBox Guest Additions on Debian 10 Buster , 在 VirtualBox 安裝 Debian 10 Buster 和 Guest Additions


(更新)
How to Install VirtualBox Guest Additions on Debian 10 Linux
Feb 17, 2020
https://linuxize.com/post/how-to-install-virtualbox-guest-additions-on-debian-10/


Install Debian 10 Buster on VirtualBox
https://kifarunix.com/install-debian-10-buster-on-virtualbox/


Install VirtualBox Guest Additions on Debian 10 Buster
https://kifarunix.com/install-virtualbox-guest-additions-on-debian-10-buster/


在 VirtualBox 安裝 Debian 10 Buster
過程大致和安裝其他 Linux 作業系統差不多


接下來要安裝 VirtualBox Guest Additions
在 Terminal 依次執行以下命令 :
su -l
apt update -y && apt upgrade
apt install dkms linux-headers-$(uname -r) build-essential
(  exit  )

然後要在虛擬機器中掛載 VirtualBox Guest Additions ISO
(  虛擬機器要有1個光碟空位  )
在虛擬機器選單中選擇 Devices > Insert Guest Additions CD image

然後執行 Guest Additions CD image 中的 VBoxLinuxAdditions.run
在 Terminal 依次執行以下命令 :
(  su -l  )
sh /media/cdrom0/VBoxLinuxAdditions.run
(  exit  )

接著
重新啟動虛擬機器

如果要使用 shared folder 的功能
在 Terminal 依次執行以下命令 :
su -l
usermod -a -G vboxsf 虛擬機器用戶名
(  exit  )

例如
用戶名為 abcd
就在 Terminal 依次執行以下命令 :
su -l
usermod -a -G vboxsf abcd
(  exit  )

接著
重新啟動虛擬機器

2019年8月3日 星期六

Debian 10 (Buster) , 安裝系統之後 , 更新 , 防火牆 , 設定 journalctl 大小

更新系統

在 Terminal 依次執行以下命令 :
su -l
apt update && apt upgrade && apt full-upgrade
exit


----------

安裝並啟動防火牆 Uncomplicated Firewall (ufw)

參考下文 :
Uncomplicated Firewall (ufw)
https://wiki.debian.org/Uncomplicated%20Firewall%20%28ufw%29

安裝軟體時
我習慣用系統提供的 Synaptic Package Manager 來安裝

安裝 ufw 之後
在 Terminal (終端機) 依次執行以下指令 :
su -l
ufw default deny incoming
ufw default allow outgoing
ufw enable
(  ufw status verbose  可顯示目前 ufw 狀態   )
(  ufw disable 關閉防火牆  )
exit


----------


設定 journalctl 大小

在 Terminal (終端機) 依次執行以下指令 :
su -l
journalctl --vacuum-size=100M
exit

PS.
一般個人使用者的家用電腦
可以設定讓 journalctl 不要太大


和 Debian 9 (Stretch) 的作法類似
可參考下文 :
Debian 9 (Stretch) , 安裝系統之後 , 更新 , 防火牆 , 設定 journalctl 大小
https://watchtvforfun.blogspot.com/2019/07/debian-9-stretch.html

Debian 10 (Buster) , 自動登入

在 Debian 10 (Buster) , 桌面環境 Mate
自動登入的方法

在 Terminal 執行以下命令 :

su -l
nano /usr/share/lightdm/lightdm.conf.d/01_debian.conf
(  編輯 01_debian.conf 檔  )

然後在 01_debian.conf 檔最後加上以下 2 行 :
autologin-user=使用者名字
autologin-user-timeout=0

存檔後重新開機即可


例如 :
使用者名字為 abcd
則在 01_debian.conf 檔最後加上以下 2 行 :
autologin-user=abcd
autologin-user-timeout=0

存檔後重新開機即可


和 Debian 9 (Stretch) 的作法類似
參考下文 :
Debian 9 自動登入
https://watchtvforfun.blogspot.com/2019/07/debian-9.html

Debian 10 (Buster) , 安裝 gcin 輸入法

在 Debian 10 (Buster) 安裝 gcin 輸入法時
要先安裝 libappindicator3-1
然後安裝 gcin

我習慣用系統提供的 Synaptic Package Manager 來安裝


和 Debian 9 (Stretch) 的作法類似
參考下文 :
在 Debian 9 安裝 gcin 輸入法
https://watchtvforfun.blogspot.com/2019/07/debian-9-gcin.html

2019年7月30日 星期二

Debian 10 (Buster) , 要取得 root 權限 , su , sudo

在 Debian 10 (Buster)
要取得 root 權限(以執行某些命令時)
可以用 su 命令

在 Terminal 執行以下命令:
su -l
(  或是以下 2 者之一 : su - , su --login  )

(  PS.
可以用 man su 查看 su 的說明  )

最好不要再用 sudo 命令

Debian , Unofficial non-free images including firmware packages

Unofficial non-free images including firmware packages
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/

安裝 Debian 時
使用 Unofficial non-free images including firmware packages
會比較簡單