安裝Ubuntu 18.04后要做的事


一. 前言

借鑒了好多其他網站,兄弟們裝系統,我就把自己的貼出來了。

 

二.

2.1 更新源

找到Software & Updates,將源更新為清華源

選擇清華源是因為可以更新一些專業軟件。

在Other Software里將Canonical Partners勾上。完成后運行:

sudo apt-get update
sudo apt-get upgrade

 

2.2 安裝搜狗拼音

sudo apt-get install fcitx-bin      #安裝fcitx-bin
sudo apt-get update --fix-missing   #修復fcitx-bin安裝失敗的情況
sudo apt-get install fcitx-bin      #重新安裝fcitx-bin
sudo apt-get install fcitx-table    #安裝fcitx-table

找到Language Support,提示更新,更新完成后,在Keyboard input method system下選擇fcitx,然后logout。

logout后,安裝gdebi(個人感覺gdebi比dpkg好用)

sudo apt-get install gdebi

安裝搜狗拼音

sudo gdebi sogoupinyin_2.2.0.0108_amd64.deb

然后logout,在屏幕右上角的輸入法選擇 configure

點擊+號,將勾選的Only Show Current Language去掉。在下面的搜索欄輸入so,添加Sogou Pinyin。然后logout。login后輸入法安裝成功。

 

2.3 卸載自帶office

sudo apt-get remove libreoffice-common

 

2.4 卸載一些不用的軟件(這一步可以不做,會卸載一些娛樂功能,郵件等等)

sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines transmission-common gnome-orca webbrowser-app gnome-sudoku  landscape-client-ui-install  

sudo apt-get remove onboard deja-dup

 

2.5 安裝Vim

sudo apt-get install vim

 

2.6 安裝解壓軟件

sudo apt-get install unzip
sudo apt-get install unrar

 

2.7 安裝git

sudo apt-get install git

 

2.8 統一Win10和Ubuntu18.04雙系統的時間

timedatectl set-local-rtc 1 --adjust-system-clock

 

2.9 視頻和音頻

安裝解碼器:

sudo apt-get install ubuntu-restricted-extras

安裝smplayer視頻播放器

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

安裝FFmpeg

sudo add-apt-repository ppa:djcj/hybrid
sudo apt-get update
sudo apt-get install ffmpeg

 

2.10 安裝WPS

下載WPS:https://www.wps.cn/product/wpslinux/

安裝WPS

sudo gdebi wps-office_11.1.0.8865_amd64.deb

安裝字體,首先下載字體:https://pan.baidu.com/s/1W5a1yUNyAvkbcIyczDxEiQ 提取碼: x44b

sudo mkdir /usr/share/fonts/WPS-Fonts       #新建wps字體存儲文件夾
cd ~/Downloads     #進入下載好的字體目錄
sudo unzip wps_symbol_fonts.zip -d /usr/share/fonts/WPS-Fonts/  #解壓字體到指定文件夾
sudo mkfontscale    #生成字體索引
sudo mkfontdir      #生成字體索引
sudo fc-cache       #更新字體緩存

 

 2.11 安裝chrome

在終端中,輸入以下命令:

sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/

將下載源加入到系統的源列表。命令的反饋結果如圖。如果返回“地址解析錯誤”等信息,可以百度搜索其他提供 Chrome 下載的源,用其地址替換掉命令中的地址。

在終端中,輸入以下命令:

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -

導入谷歌軟件的公鑰,用於下面步驟中對下載軟件進行驗證。

如果順利的話,命令將返回“OK”,如圖。

在終端中,輸入以下命令:

sudo apt-get update

用於對當前系統的可用更新列表進行更新。這也是許多 Linux 發行版經常需要執行的操作,目的是隨時獲得最新的軟件版本信息。

命令將會返回類似圖中所示的信息。

在終端中,輸入以下命令:

sudo apt-get install google-chrome-stable

執行對谷歌 Chrome 瀏覽器(穩定版)的安裝。

如果一切順利的話,命令將返回如圖信息。最后,如果一切順利,在終端中執行以下命令

/usr/bin/google-chrome-stable

將會啟動谷歌 Chrome 瀏覽器,它的圖標將會出現在屏幕左側的 Launcher 上,在圖標上右鍵——“鎖定到啟動器”,以后就可以簡單地單擊啟動了。

 

2.12 刪除firefox

查找firefox插件

dpkg --get-selections | grep firefox

可以看到firefox的全部插件

刪除插件

sudo apt-get purge firefox firefox-locale-en firefox-locale-zh-hans

 

2.13 安裝網易雲音樂

到官網下載。選擇ubuntu18.04版本

sudo gdebi netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb

 

2.14 安裝C++環境

安裝cmake

sudo apt-get install cmake

安裝不同C++環境

sudo apt-get install gcc-5 gcc-5-multilib
sudo apt-get install g++-5 g++-5-multilib
sudo apt-get install gcc-6 gcc-6-multilib
sudo apt-get install g++-6 g++-6-multilib
sudo apt-get install gcc-7 gcc-7-multilib
sudo apt-get install g++-7 g++-7-multilib
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 70

然后選擇gcc和g++版本

sudo update-alternatives --config gcc
sudo update-alternatives --config g++

 

2.15 更換主題

 

 

2.16 安裝英偉達驅動、CUDA與Cudnn(如果沒有英偉達顯卡,不需要安裝)

參考:https://www.cnblogs.com/hgl0417/p/10643760.html

 

 

 

[1] https://blog.csdn.net/hymanjack/article/details/80285400


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM