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
會比較簡單
Music TV Computers Linux Manjaro Debian Ubuntu Mint Life Investment Options Bonds Stocks ( 新文章發表於 : https://xuite.tw/x/muiv0 )
2019年7月30日 星期二
Debian 9 (Stretch) , 安裝系統之後 , 更新 , 防火牆 , 設定 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 不要太大
在 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 不要太大
2019年7月2日 星期二
(Debian 9) 無法使用 sudo 命令 , xxxx is not in the sudoers file. This incident will be reported.
在 Debian 9
要得到 root 權限(以執行某些命令時)
可以用 su 或 sudo 命令
要用 su 的話
在 Terminal 執行以下命令:
su -l
( 或是以下 2 者之一 : su - , su --login )
( PS.
可以用 man su 查看 su 的說明 )
在 Debian 9
要使用 sudo 時
出現錯誤訊息 :
xxxx(使用者名字) is not in the sudoers file. This incident will be reported.
無法使用 sudo
參考以下討論串 :
"(username) is not in the sudoers file. This incident will be reported." - Anytime I try to use sudo.
https://www.reddit.com/r/linux4noobs/comments/b90v61/username_is_not_in_the_sudoers_file_this_incident/
Debian GNOME: Username is not in the sudoers file. This incident will be reported.
https://www.reddit.com/r/linuxquestions/comments/6a0apo/debian_gnome_username_is_not_in_the_sudoers_file/
解決辦法 :
以該使用者身份登入
在 Terminal 執行以下命令 :
groups
可以看到使用者有沒有被加入 sudo 這個 Gruop
如果使用者沒有被加入 sudo 這個 Gruop
在 Terminal 執行依次以下命令 (把使用者加入 sudo 這個 Gruop) :
su
usermod -a -G sudo 使用者名字
exit
( 例如
使用者為 abcd
就在 Terminal 執行依次以下命令 :
su
usermod -a -G sudo abcd
exit )
接下來重新開機
在 Terminal 執行以下命令 :
groups
可以看到使用者被加入 sudo 這個 Gruop
可以使用 sudo 命令 了
要得到 root 權限(以執行某些命令時)
可以用 su 或 sudo 命令
要用 su 的話
在 Terminal 執行以下命令:
su -l
( 或是以下 2 者之一 : su - , su --login )
( PS.
可以用 man su 查看 su 的說明 )
在 Debian 9
要使用 sudo 時
出現錯誤訊息 :
xxxx(使用者名字) is not in the sudoers file. This incident will be reported.
無法使用 sudo
參考以下討論串 :
"(username) is not in the sudoers file. This incident will be reported." - Anytime I try to use sudo.
https://www.reddit.com/r/linux4noobs/comments/b90v61/username_is_not_in_the_sudoers_file_this_incident/
Debian GNOME: Username is not in the sudoers file. This incident will be reported.
https://www.reddit.com/r/linuxquestions/comments/6a0apo/debian_gnome_username_is_not_in_the_sudoers_file/
解決辦法 :
以該使用者身份登入
在 Terminal 執行以下命令 :
groups
可以看到使用者有沒有被加入 sudo 這個 Gruop
如果使用者沒有被加入 sudo 這個 Gruop
在 Terminal 執行依次以下命令 (把使用者加入 sudo 這個 Gruop) :
su
usermod -a -G sudo 使用者名字
exit
( 例如
使用者為 abcd
就在 Terminal 執行依次以下命令 :
su
usermod -a -G sudo abcd
exit )
接下來重新開機
在 Terminal 執行以下命令 :
groups
可以看到使用者被加入 sudo 這個 Gruop
可以使用 sudo 命令 了
2019年7月1日 星期一
Debian 9 自動登入
Debian 9 自動登入的方法
可參考下列文章 :
LightDM - Debian Wiki
https://wiki.debian.org/LightDM
Enable auto-login and auto-networking in Debian 9
https://dreambooker.site/2018/06/15/Enable-auto-login-and-auto-networking-in-Debian9/
How to enable auto-login in Debian 9 Xfce
https://steemit.com/software/@kskarthik/how-to-enable-auto-login-in-lightdm
Debian 9 , 桌面環境 Mate
在 Terminal 執行以下命令 :
sudo 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
存檔後重新開機即可
可參考下列文章 :
LightDM - Debian Wiki
https://wiki.debian.org/LightDM
Enable auto-login and auto-networking in Debian 9
https://dreambooker.site/2018/06/15/Enable-auto-login-and-auto-networking-in-Debian9/
How to enable auto-login in Debian 9 Xfce
https://steemit.com/software/@kskarthik/how-to-enable-auto-login-in-lightdm
Debian 9 , 桌面環境 Mate
在 Terminal 執行以下命令 :
sudo 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 安裝 gcin 輸入法
要在 Debian 9 安裝 gcin 輸入法
可先參考下文 :
Debian Bug report logs - #921005
Missing manual dependency for package gcin on libappindicator3-1
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921005
要在 Debian 9 安裝 gcin 輸入法
要先安裝 libappindicator3-1
然後才安裝 gcin
如果沒有先安裝 libappindicator3-1
就安裝了 gcin
電腦會一直出現下列錯誤訊息 :
libappindicator3.so.1: cannot open shared object file: No such file or directory
可先參考下文 :
Debian Bug report logs - #921005
Missing manual dependency for package gcin on libappindicator3-1
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921005
要在 Debian 9 安裝 gcin 輸入法
要先安裝 libappindicator3-1
然後才安裝 gcin
如果沒有先安裝 libappindicator3-1
就安裝了 gcin
電腦會一直出現下列錯誤訊息 :
libappindicator3.so.1: cannot open shared object file: No such file or directory
2019年6月28日 星期五
在 Manjaro Gnome 版安裝 VirtualBox , 在 VirtualBox 安裝 Debian 9 和 Guest Additions , ( Manjaro Gnome , VirtualBox , Debian , Guest Additions Installation )
在 Manjaro Gnome 版安裝 VirtualBox , 在 VirtualBox 安裝 Debian 9 和 Guest Additions
----
如何在 Manjaro Gnome 版安裝 VirtualBox
可參考下列文章 :
VirtualBox - Manjaro Linux - Manjaro Wiki
https://wiki.manjaro.org/index.php?title=VirtualBox
在 Terminal 執行以下命令 :
pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ')
sudo vboxreload
( 安裝 Extension Pack )
pamac build virtualbox-ext-oracle
( 把使用者加入 vbox User Group , 把下述命令的 $USER 改為使用者名字 )
sudo gpasswd -a $USER vboxusers
----
電腦主要作業系統為 Manjaro Gnome 版
依照上述步驟安裝 VirtualBox 之後
如何在 VirtualBox 安裝 Debian 9 和 Guest Additions Installation
可參考下文 :
在 VirtualBox 安裝 Debian 9 :
How to Install Debian Linux on VirtualBox with Guest Additions
https://medium.com/platform-engineer/how-to-install-debian-linux-on-virtualbox-with-guest-additions-778afa0ee7e0
上文中主要參考的部份是如何安裝 Guest Additions
在 Terminal 依次執行以下命令 :
su
echo deb http://ftp.debian.org/debian stretch-backports main contrib > /etc/apt/sources.list.d/stretch-backports.list
apt update
apt install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)
reboot
接著可以把 VirtualBox 的 Graphics Controller
從 VMSVGA 改成 VBoxVGA 或 VBoxSVGA
( 在自己測試的電腦上
用 VBoxVGA 時 電腦比較穩定
用 VBoxSVGA 時 電腦比較不穩定
所以就用 VBoxVGA 了 )
----
另外一個安裝 Guest Additions 的方法
可參考下文 :
VirtualBox Guest Additions Installation In Ubuntu, Linux Mint, Debian, Fedora And openSUSE [How-To]
https://www.linuxuprising.com/2019/01/manual-virtualbox-guest-additions.html
在 Terminal 執行以下命令 :
( 依照 Guest Additions ISO 實際所在資料夾位置修正下述命令 )
sudo sh /media/cdrom0/VBoxLinuxAdditions.run
( 使用 shared folders , 把下述命令的 $USER 改為使用者名字 )
sudo usermod -aG vboxsf $USER
----
如何在 Manjaro Gnome 版安裝 VirtualBox
可參考下列文章 :
VirtualBox - Manjaro Linux - Manjaro Wiki
https://wiki.manjaro.org/index.php?title=VirtualBox
在 Terminal 執行以下命令 :
pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ')
sudo vboxreload
( 安裝 Extension Pack )
pamac build virtualbox-ext-oracle
( 把使用者加入 vbox User Group , 把下述命令的 $USER 改為使用者名字 )
sudo gpasswd -a $USER vboxusers
----
電腦主要作業系統為 Manjaro Gnome 版
依照上述步驟安裝 VirtualBox 之後
如何在 VirtualBox 安裝 Debian 9 和 Guest Additions Installation
可參考下文 :
在 VirtualBox 安裝 Debian 9 :
How to Install Debian Linux on VirtualBox with Guest Additions
https://medium.com/platform-engineer/how-to-install-debian-linux-on-virtualbox-with-guest-additions-778afa0ee7e0
上文中主要參考的部份是如何安裝 Guest Additions
在 Terminal 依次執行以下命令 :
su
echo deb http://ftp.debian.org/debian stretch-backports main contrib > /etc/apt/sources.list.d/stretch-backports.list
apt update
apt install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)
reboot
接著可以把 VirtualBox 的 Graphics Controller
從 VMSVGA 改成 VBoxVGA 或 VBoxSVGA
( 在自己測試的電腦上
用 VBoxVGA 時 電腦比較穩定
用 VBoxSVGA 時 電腦比較不穩定
所以就用 VBoxVGA 了 )
----
另外一個安裝 Guest Additions 的方法
可參考下文 :
VirtualBox Guest Additions Installation In Ubuntu, Linux Mint, Debian, Fedora And openSUSE [How-To]
https://www.linuxuprising.com/2019/01/manual-virtualbox-guest-additions.html
在 Terminal 執行以下命令 :
( 依照 Guest Additions ISO 實際所在資料夾位置修正下述命令 )
sudo sh /media/cdrom0/VBoxLinuxAdditions.run
( 使用 shared folders , 把下述命令的 $USER 改為使用者名字 )
sudo usermod -aG vboxsf $USER
訂閱:
文章 (Atom)