ubuntu20.04 系統初始化與美化


ubuntu20.04 系統初始化與美化

參考博客:https://mp.weixin.qq.com/s/JowjHrs9GMVlolaoaSGiEg

參考博客:https://www.linuxmi.com/ubuntu-20-04-mac-os-catalina.html

更新源

ubuntu20.04默認源連接的是外國服務器,網速特別慢,需要更換為國內服務商提供的源。

# 備份初始源
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
# 編輯sources.list文件
sudo gedit /etc/apt/sources.list

將阿里源添加進入源文件

#  阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

刷新列表

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential

環境搭建

安裝輸入法

ubuntu20.04中因為缺少某些包的原因,不能再安裝搜狗輸入法了。此處使用谷歌輸入法。

簡單分為三步:

  • sudo apt-get install fcitx-googlepinyin
  • 語言支持language support 中的鍵盤輸入法系統Keyboard input method system`將默認的iBus,更改為fcitx。
  • 應用程序fcitx配置中通過加號+添加新的輸入法Google Pinyin

安裝常用軟件

sudo apt-get install fcitx-googlepinyin # 谷歌拼音輸入法
sudo apt-get install git # git
sudo apt-get install stacer # 系統管理器
sudo apt-get install okular # pdf閱讀器
sudo apt-get install pandoc # markdown轉word
sudo apt-get install redshift # 屏幕色溫調節
sudo apt-get install pdfgrep # pdf文件正則表達式檢索
sudo apt-get install recoll poppler-utils # 文件內容檢索工具
sudo apt-get install rdfind # 重復文件掃描

安裝chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*; sudo apt-get -f install 

安裝WPS

wget https://wdl1.cache.wps.cn/wps/download/ep/Linux2019/9615/wps-office_11.1.0.9615_amd64.deb
sudo dpkg -i wps-office_11.1.0.9615_amd64.deb

安裝wps所需字體

  1. 下載字體包

  2. 解壓字體包

unzip wps_symbol_fonts.zip
  1. 拷貝字體包到字體目錄
sudo cp -r wps-office /usr/share/fonts/wps-office

安裝Apifox

下載安裝包

https://www.apifox.cn/

下載linux版本對應deb包。

安裝

sudo dpkg -i apifox_1.0.14_amd64.deb

系統美化

桌面

安裝Gnome Tweaks和必需的主題引擎

sudo apt-get install gtk2-engines-murrine gtk2-engines-pixbuf gnome-tweaks libcanberra-gtk3-module libcanberra-gtk-module libglib2.0-dev gir1.2-gtkclutter-1.0

下載/安裝主題與圖標

主題

https://www.pling.com/s/Gnome/p/1241688/

圖標

https://www.pling.com/p/1309810/

# 亮系
sudo cp -r McOS-CTLina-Gnome-1.3.2 /usr/share/themes
# 暗系
sudo cp -r Mc-OS-CTLina-Gnome-Dark-1.3.2 /usr/share/themes
# 透明
sudo cp -r Mc-OS-Transparent-1.3 /usr/share/themes
sudo cp -r Os-Catalina-Night /usr/share/icons
sudo cp -r Os-Catalina-icons /usr/share/icons

安裝主題擴展

sudo apt install chrome-gnome-shell

火狐安裝擴展

可以外網的同學可以使用chrome擴展

  1. 轉到extensions.gnome.org,然后單擊鏈接以安裝瀏覽器集成。
    安裝擴展

  2. 單擊此處安裝用戶主題擴展,以從用戶目錄加載shell主題。
    主題擴展

  3. (可選)單擊此處以安裝擴展程序以應用模糊效果。

應用主題和圖標

通過優化工具(Tweak tool)進入
優化

調整左側面板

要將左停靠面板移至底部,請運行命令:

gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM

要縮短dock面板,請運行:

gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false

將應用啟動器圖標左移:

gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true

設置擴展塢面板背景透明度(范圍從0到1):

gsettings set org.gnome.shell.extensions.dash-to-dock background-opacity 0.3

隱藏頂部狀態欄

首先安裝hidetopbar 擴展

sudo apt-get install gnome-shell-extension-autohidetopbar

打開Tweak tool,找到 擴展 --> Hide top bar 擴展,開啟即可隱藏頂欄。按windows圖標鍵就會顯示出來。
隱藏bar

topbarinfo
卸載,使用命令:sudo apt-get remove gnome-shell-extension-autohidetopbar

隱藏桌面圖標

在優化工具左側找到擴展選項,然后可以看到在桌面圖標右側有一個設置按鈕。點擊這個按鈕,然后關掉所要隱藏的圖標開關。


免責聲明!

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



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