1. 程式人生 > >ubuntu16.04安裝後的基本配置

ubuntu16.04安裝後的基本配置

設定root密碼

sudo passwd

更換軟體源

建議換成中科大的軟體源
然後

  1. 使用sudo apt-get update即可更新獲取 軟體源 提供的軟體列表;
  2. 使用sudo apt-get upgrade即可更新軟體;
sudo apt-get update
sudo apt-get upgrade

解除安裝不需要的軟體

sudo apt-get remove libreoffice-common 
sudo apt-get remove unity-webapps-common 
sudo apt-get remove totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku  landscape-client-ui-install 
sudo apt-get remove onboard deja-dup 

vim git vpnc

sudo apt-get install vim  git vpnc

多執行緒下載工具

sudo apt install axel

pip

ubuntu16.04預裝了python2.7與python3.5,但是沒有預裝pip

sudo apt-get install python-pip #for python2.7
sudo apt-get install python3-pip #for python3.5

Terminator的安裝/配置/預設啟動/使用

1.安裝

sudo apt-get install terminator

2.配置

cd ~/.config/terminator/
sudo vim config

如果報錯,Unable to open ~/.config/terminator/config ,解決方法:
開啟terminator終端,然後右擊終端的黑色背景,選擇preference->layouts->add,關閉該視窗即可找到config檔案。

修改配置檔案,我的配置檔案如下:

[global_config]
[keybindings]
[profiles]
  [[default]]
    use_system_font = False # 是否啟用系統字型
    login_shell = True
    background_darkness = 0.92 # 背景顏色
    background_type = transparent
    background_image = None
    cursor_color = "#3036ec" # 游標顏色
    foreground_color = "#00ff00"
    show_titlebar = False # 不顯示標題欄,也就是 terminator 中那個預設的紅色的標題欄
    custom_command = tmux
    font = Ubuntu Mono 15  # 字型設定,後面的數字表示字型大小
[layouts]
  [[default]]
    [[[child1]]]
      type = Terminal
      parent = window0
    [[[window0]]]
      type = Window
      parent = ""
[plugins]

3.預設啟動

安裝dconf-tools,這個是設定預設終端的必須

sudo apt-get install dconf-tools

預設快捷鍵的終端為系統終端,則更改為:

exec  gnome-terminal
exec-arg -x

預設啟動terminator,即:

exec  x-terminal-emulator
exec-arg -e

安裝unrar

系統預設不帶解壓縮rar檔案的功能,手動安裝unrar程式。雖然不知道為什麼這麼多人偏愛rar,不過網路環境如此,這個必須裝。但我個人還是建議多用些開源的壓縮格式比較講究。

sudo apt-get install unrar

安裝smplayer

免費開源的媒體播放器SMPlayer。內建解碼器,因此任何額外的編解碼器。雖然高清解碼不怎麼給力,不過一次安裝,就解決所有影音檔案的播放問題。

sudo apt-add-repository ppa:rvm/smplayer
sudo apt-get update
sudo apt-get install smplayer smplayer-skins smplayer-themes

安裝Unity Tweak Tool

如果想安裝自定義主題的話,那麼Unity Tweak Tool是必裝的。雖然Unity並沒有留給各位多少能Tweak的地方,但是隻要是想個性化介面,一定不要忘了先安裝它。

sudo apt-get install unity-tweak-tool

耳機驅動

輸入下面命令安裝pavucontrol:

sudo apt install pavucontrol

然後輸入pavucontrol啟動該軟體

pavucontrol

開啟選項卡後進行:
“回放”–>系統下面的選項–>內建音訊模擬立體聲
“輸出裝置”–>port:headphone(unplugged) 模擬耳機

狀態列中新增網速顯示

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install indicator-netspeed

pip、conda等新增國內景象源

安裝Pycharm

安裝caffe

安裝cuda

安裝 py faster rcnn

pcl原始碼編譯

深度工具合集安裝

火狐瀏覽器

sudo apt-get autoremove firefox firefox-branding firefox-gnome-support ubufox 

配置檔案也一起刪掉

sudo apt-get purge firefox firefox-branding firefox-gnome-support ubufox 

將下載好的壓縮包使用如下命令解壓:

sudo tar jxvf Firefox-latest-x86_64.tar.bz2
sudo mv firefox /usr/local
sudo ln -s /usr/local/firefox/firefox /usr/bin/firefox

通過上述步驟即可以通過終端開啟firefox了
將其固定在啟動器
自己個性化建立一個快捷方式,儲存為firefox.desktop:

[Desktop Entry]
Name=firefox
Comment=firefox
Exec=/usr/local/firefox/firefox
Icon=/usr/local/firefox/browser/icons/mozicon128.png
Terminal=false
Type=Application
Categories=Application;
Encoding=UTF-8
StartupNotify=true

將快捷方式移動至/usr/share/applications中:

sudo mv firefox.desktop /usr/share/applications

將該firefox.desktop拖至啟動器即可

wps for linux

下載wps-office_10.1.0.5672~a21_amd64.deb

sudo dpkg -i wps-office_10.1.0.5672_a21_amd64.deb
sudo apt-get -f install

開啟會有字型缺失錯誤,下載缺失字型

sudo unzip wps_symbol_fonts.zip

複製字型到/usr/share/fonts,至此安裝完畢

有道詞典

科學上網

看視訊時禁止系統休眠

Ubuntu 的休眠很不智慧,只要滑鼠不動,就判定你沒有活動。在看 MOOC 視訊時,時常會自動關閉螢幕,令人煩惱。
這個名為 Caffeine 的軟體可以在狀態列生成一個指示器:
安裝Ubuntu後的個人常用配置
就是圖中那個咖啡杯形狀的圖示。當它處於 Active 狀態(咖啡冒熱氣)時,便會阻止系統休眠。點選可以圖示進行狀態切換。
這裡寫圖片描述

sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine

在終端中輸入 caffeine-indicator ,或直接在 Dash 中尋找圖示啟動軟體。
這裡寫圖片描述

技巧

檔案管理器不顯示具體檔案路徑,請按Ctrl+L