Ubuntu系統啓動時都會自動啓動iptables服務。若是想關閉該服務的自動啓動,能夠執行:bash
sudo ufw disable
命令行方式鏈接某個SSID:spa
sudo nmcli d wifi connect $SSID_NAME password $SSID_PASS
wget下載須要用戶名及密碼的資源:命令行
$ wget --user=??? --password=??? http://xxx/xxx/xxx $ wget --user=??? --password=??? ftp://xxx/xxx/xxx
關於locale設置問題,執行apt時一般會提示以下錯誤:code
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "zh_CN.UTF-8", LC_MONETARY = "zh_CN.UTF-8", LC_ADDRESS = "zh_CN.UTF-8", LC_TELEPHONE = "zh_CN.UTF-8", LC_NAME = "zh_CN.UTF-8", LC_MEASUREMENT = "zh_CN.UTF-8", LC_IDENTIFICATION = "zh_CN.UTF-8", LC_NUMERIC = "zh_CN.UTF-8", LC_PAPER = "zh_CN.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
按以下步驟解決:blog
$ sudo apt-get install locales
編輯文件/etc/locale.gen
,找到# en_US.UTF-8 UTF-8
,去掉前面的井號;ip
$ sudo locale-gen en_US.UTF-8 $ sudo update-locale en_US.UTF-8
編輯~/.bashrc,在最後面增長一行並經過source命令使其生效:資源
export LC_ALL=C $ source .bashrc
或者修改/etc/default/locale:get
$ cat /etc/default/locale LC_ALL="en_US.UTF-8"
到此應該能解決錯誤信息提示問題,可是系統可能沒法顯示中文,因此若是但願正確顯示中文,須要安裝中文包:table
$ sudo apt-get install language-pack-zh-hans