魔改linux教程,[经验]Ubuntu Linux 魔改手册
8種機械鍵盤軸體對比
本人程序員,要買一個寫代碼的鍵盤,請問紅軸和茶軸怎么選?
https://bluedone.github.io/https://bluedone.github.io/https://bluedone.github.io/https://bluedone.github.io/https://bluedone.github.io/https://bluedone.github.io/https://bluedone.github.io/
Linux 主題
雖然 Ubuntu 本身的主題也不錯,
但是我更喜歡 flat-remix 主題,
雖然這個主題有點卡,但它就是香。
我所安裝的主題包含以下三個:
安裝 gnome
這款主題是需要 gnome 桌面環境支持的,
可以運行以下命令安裝:sudo apt install gnome
接下來等就完事兒了,但是有個缺點,
這會安裝一系列娛樂軟件游戲。
運行以下命令卸載它們:sudo apt remove gnome-games
接著檢查一下有沒有沒卸干凈的,手動卸載。
安裝主題sudo add-apt-repository ppa:daniruiz/flat-remix
sudo apt-get update
sudo apt-get install flat-remixsudo add-apt-repository ppa:daniruiz/flat-remix
sudo apt-get update
sudo apt-get install flat-remix-gtksudo add-apt-repository ppa:daniruiz/flat-remix
sudo apt-get update
sudo apt-get install flat-remix-gnome
然后就完成了安裝。
應用主題
系統主題
首先,你需要打開 GNOME Tweaks 。
并打開擴展選項。(此圖片已使用主題)
注:若無法開啟請重啟 Ubuntu Linux
接著打開 User themes 的插件
注:若無法開啟請重啟 Ubuntu Linux
之后在外觀中選擇你喜歡的主題
比如向我這樣:
登錄主題
注意!
請確保你能夠在失敗的情況下重新安裝 gnome-shell / gdm。
首先你需要安裝 imagemagick 和 glib-compile-resources :sudo apt install libglib2.0-dev-bin imagemagick
接著運行以下命令:git clone https:// github.com / daniruiz / flat-remix-gnome
然后選擇好你的鎖屏壁紙,
運行以下命令:cd flat-remix-gnome
sudo make && sudo make install
每次重新選擇壁紙后都要重新應用,
即重新運行以上命令。
顯示主題
如果你有主題沒有應用成功,
那么清重啟 Ubuntu Linux。
并在開機時的登錄界面上尋找“齒輪”,
它一般位于確認按鈕的旁邊。
接下來選擇你想要的主體就好了。
這里給出官方圖片的展示:
zsh 終端
如果你對于 Ubuntu Linux 本身的 bash 終端不滿意的話,
又或者你想嘗嘗鮮,
zsh 是一個不錯的選擇。
安裝 zsh
如果想詳細了解 zsh ,可以前往官網。
如果官網進不去的話可以試試百度快照
話不多說,使用 apt 安裝 zsh 。sudo apt install zsh
完成之后嘗試啟動 zsh :zsh
如果安裝成功,應該是這樣:
(本圖片已更換 zsh 主題)
如果啟動了一個新的終端,那證明安裝成功了。
如果沒有,請重啟終端,再試一次。
安裝 oh-my-zsh
oh-my-zsh 為 zsh 提供了很多不錯的主題和插件,
所以可以省去很多安裝完之后的下載。
根據官方文檔,有兩種安裝方式,二選其一:sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Via wget
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
命令執行完畢后就安裝完成了,重啟終端。
zsh 主題
在 ~/.zshrc 中編輯,修改 ZSH_THEME 的值:# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"
我使用的是 agnoster 主題,你也可以換成別的。
agnoster 主題的額外配置:
agnoster 主題為 git 工作目錄提供了美化:
該美化需要安裝 powerline 字體:git clone https://github.com/powerline/fonts.git
cd fonts
install.sh
然后重啟終端,看看效果。
如果沒有成功,那就打開 GNOME-Tweak ,
在字體中選擇帶有powerline的字體,
比如這樣:
重啟終端,完成。
zsh 插件
zsh-autosuggestions
獲取它:git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
在 ~/.zshrc 中配置:# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
其他插件
zsh-autosuggestions
)
重啟終端生效。
zsh-syntax-highlighting
獲取它:git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
在 ~/.zshrc 中配置:# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
其他插件
zsh-syntax-highlighting
)
如果不生效,在 ~/.zshrc 文末添加:# Note the source command must be at the end of .zshrc
source "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
重啟終端生效。
參考與引用
內容修改與更新
2019-12-21 添加了 Flat-Remix 主題的配置。
2020-01-12 添加了 zshell 的配置。
總結
以上是生活随笔為你收集整理的魔改linux教程,[经验]Ubuntu Linux 魔改手册的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 键盘魔改:PowerToys
- 下一篇: python画六角图_向量六角图