拋棄windows擁抱Linux的時刻終于到了,ubuntu 20.04一個可以滿足你日常辦公需求與大數(shù)據(jù)分析的完美結(jié)合體攒霹,用更少的內(nèi)存珊拼,更少的功耗厘托,更少的時間來完成更多有意義的事友雳。
下面開始一場打造只屬于你個人操作系統(tǒng)的旅程:
一、系統(tǒng)安裝篇
- 用windows磁盤管理清理出一塊不少于200G的空間用于安裝ubuntu 20.04
- 清華鏡像源下載ubuntu 20.04 鏡像文件
https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/focal/ubuntu-20.04-desktop-amd64.iso - 制作系統(tǒng)啟動盤
推薦下載rufus制作啟動盤,下載時請注意選擇中文 https://rufus.ie/
完成以上3步后就可以正式開始安裝系統(tǒng)了铅匹,具體過程和安裝windows類似押赊,比如我的電腦是按F12進入安裝界面(具體過程請根據(jù)自己電腦型號搜索解決) - 安裝過程
4.1 install ubuntu--keyboard layout(語言,鍵盤類型選擇中文)
4.2選擇正常安裝包斑,并安裝第三方插件;
4.3安裝位置選擇其它選項(注:千萬不要跟windows系統(tǒng)安裝在一個盤流礁,如果你的電腦只有一個盤你可以選擇直接刪除windows 請慎重選擇)
4.4 安裝類型
找到你的清理好的空白盤,分配安裝空間
邏輯分區(qū) 用于掛載交換空間 (swap)8G; boot 2G
主分區(qū) 用于掛載根目錄(50G),home目錄(磁盤剩下空間)
以上屬于個人配置舰始,可根據(jù)自己電腦自行調(diào)整參數(shù)
二崇棠、系統(tǒng)配置篇
-
打開系統(tǒng)和更新軟件選擇中國的鏡像站點鏡像配置.png
- 打開終端執(zhí)行以下操作
#安裝中文輸入法
sudo apt-get install python2 #安裝python2
rm -rf /usr/bin/python #移除系統(tǒng)默認的python版本
sudo ln -s /usr/bin/python2.7/ /usr/bin/python #為python 2.7創(chuàng)建軟鏈接
sudo apt-get install fcitx #安裝 fcitx配置軟件用于設(shè)置中文輸入法
sudo apt-get install fcitx-googlepinyin # 安裝google拼音輸入法
im-config # 確定-是-fcitx 之后重新啟動就可以愉快輸入中文了
默認ctrl + 空格激活輸入法
打開fcitx配置軟件可在此處設(shè)置輸入法各種參數(shù)系統(tǒng)美化
#1 .安裝美化工具 gnome-tweak-tool
sudo apt-get install gnome-tweak-tool
sudo apt-get install chrome-gnome-shell
2.安裝美化主題
https://www.gnome-look.org/p/1275087/](https://links.jianshu.com/go?to=https%3A%2F%2Fwww.gnome-look.org%2Fp%2F1275087%2F)下載mojave-light-solid.tar.xz文件并解壓,之后終端執(zhí)行 sudo nautilus 命令丸卷,找到下載的主題文件夾右擊將其移動到 usr-share-themes 文件夾下.打開 gnome-tweak-tool在主題欄選擇下載的主題
3.安裝美化圖標
cd ~/.icons
git clone https://github.com/keeferrourke/la-capitaine-icon-theme.git
#終端美化
sudo apt update
sudo apt install zsh #安裝zsh
sudo usermod -s /usr/bin/zsh $(whoami) #設(shè)置zsh為默認
完成以上設(shè)置后重新啟動電腦枕稀,打開終端后點擊鍵盤上的數(shù)字鍵2,此后就可以正常使用 ZSH Shell
#配置 zsh
sudo apt install powerline fonts-powerline #安裝字體
sudo apt install zsh-theme-powerlevel9k #安裝主題
echo "source /usr/share/powerlevel9k/powerlevel9k.zsh-theme" >> ~/.zshrc
# 安裝語法并啟用高亮插件
sudo apt install zsh-syntax-highlighting
echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
#系統(tǒng)優(yōu)化
sudo apt-get install tlp
systemctl start tlp
systemctl enable tlp#3次輸入密碼認證
systemctl start NetworkManager-dispatcher
systemctl enable NetworkManager-dispatcher
systemctl mask systemd-rfkill.socket systemd-rfkill.service
三谜嫉、常用軟件的安裝
chrome 瀏覽器
參考 :https://www.bilibili.com/read/cv4509142
sudo apt-get install vim #vim 編輯器
sudo apt-get install gdebi #gdebi 軟件包管理程序
sudo apt-get install vlc #vlc視頻播放器
sudo apt-get install filezilla #filezilla文件傳輸工具
sudo apt-get install geany #geany文本編輯器
sudo apt-get install inkscape #矢量圖修理軟件
sudo apt-get install gime #gime圖片處理軟件
#Typora markdown文本編輯器
wget https://typora.io/linux/typora_0.9.96_amd64.deb
#網(wǎng)易云音樂
sudo apt-get install axel #多線程下載工具
axel -an100 http://d1.music.126.net/dmusic/netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb
sudo gdebi netease-cloud-music*
#修改網(wǎng)易云界面大小
sudo gedit /usr/share/applications/netease-cloud-music.desktop
#找到 Exec=這行,修改成下面這樣
Exec=netease-cloud-music --force-device-scale-factor=1.5 %U
#百度云
axel -an100 http://wppkg.baidupcs.com/issue/netdisk/LinuxGuanjia/3.0.1/baidunetdisk_linux_3.0.1.2.deb
sudo gdebi baidunetdisk_linux*
#Linux for QQ
axel -an100 http://down.qq.com/qqweb/LinuxQQ_1/linuxqq_2.0.0-b2-1082_amd64.deb
sudo gdebi linuxQQ*
#teamviewer
axel -an 100 https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
sudo gdebi teamviewer*
四萎坷、視頻編輯類
DaVinci Resolve 16 (達芬奇一款類似Adobe pr的視頻處理軟件)
參考安裝方法:https://www.linuxuprising.com/2018/06/how-to-install-davinci-resolve-15-in.html
https://www.blackmagicdesign.com/products/davinciresolve/
https://www.danieltufvesson.com/download/?file=makeresolvedeb/makeresolvedeb_16.2.7-1.sh.tar.gz
sudo apt install libssl1.1 ocl-icd-opencl-dev fakeroot xorriso
確保DaVinci Resolve和MakeResolveDeb腳本(提取的.sh文件)都在同一文件夾中,運行MakeResolveDeb腳本以創(chuàng)建DaVinci Resolve 16.2 deb軟件包, 假設(shè)已將DaVinci Resolve提取到主文件夾中,并將MakeResolveDeb腳本與DaVinci Resolve放在同一文件夾中沐兰,則可以使用以下命令創(chuàng)建deb:
cd ~/DaVinci_Resolve*_Linux
sudo ./makeresolvedeb*.sh lite
sudo gdebi DaVinci Resolve 16.2 deb
五哆档、數(shù)據(jù)處理類
# R 4.0.0安裝
sudo apt update
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
sudo apt install r-base-dev
sudo apt-get install rstudio
解決Rstudio無法輸入中文
參考:https://support.rstudio.com/hc/en-us/articles/205605748-Using-RStudio-0-99-with-Fctix-on-Linux
sudo ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so /usr/lib/rstudio/bin/plugins/platforminputcontexts/
六、文檔處理類
texlive安裝
axel -an100 https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2020-20200406.iso
sudo apt-get install texstudio
安裝參考:http://www.reibang.com/p/902e4d3498a8
七住闯、編程類
Visual Studio Code
axel -an100 https://code.visualstudio.com/download
常用插件
Code Runner
Code Spell Checker
ESLint
indent-rainbow
Live Server
Rainbow Brackets
vscode-icons