日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

魔改linux教程,[经验]Ubuntu Linux 魔改手册

發(fā)布時(shí)間:2024/3/26 linux 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 魔改linux教程,[经验]Ubuntu Linux 魔改手册 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

8種機(jī)械鍵盤軸體對比

本人程序員,要買一個(gè)寫代碼的鍵盤,請問紅軸和茶軸怎么選?

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 本身的主題也不錯(cuò),

但是我更喜歡 flat-remix 主題,

雖然這個(gè)主題有點(diǎn)卡,但它就是香。

我所安裝的主題包含以下三個(gè):

安裝 gnome

這款主題是需要 gnome 桌面環(huán)境支持的,

可以運(yùn)行以下命令安裝:sudo apt install gnome

接下來等就完事兒了,但是有個(gè)缺點(diǎn),

這會(huì)安裝一系列娛樂軟件游戲。

運(yùn)行以下命令卸載它們:sudo apt remove gnome-games

接著檢查一下有沒有沒卸干凈的,手動(dòng)卸載。

安裝主題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

然后就完成了安裝。

應(yīng)用主題

系統(tǒng)主題

首先,你需要打開 GNOME Tweaks 。

并打開擴(kuò)展選項(xiàng)。(此圖片已使用主題)

注:若無法開啟請重啟 Ubuntu Linux

接著打開 User themes 的插件

注:若無法開啟請重啟 Ubuntu Linux

之后在外觀中選擇你喜歡的主題

比如向我這樣:

登錄主題

注意!

請確保你能夠在失敗的情況下重新安裝 gnome-shell / gdm。

首先你需要安裝 imagemagick 和 glib-compile-resources :sudo apt install libglib2.0-dev-bin imagemagick

接著運(yùn)行以下命令:git clone https:// github.com / daniruiz / flat-remix-gnome

然后選擇好你的鎖屏壁紙,

運(yùn)行以下命令:cd flat-remix-gnome

sudo make && sudo make install

每次重新選擇壁紙后都要重新應(yīng)用,

即重新運(yùn)行以上命令。

顯示主題

如果你有主題沒有應(yīng)用成功,

那么清重啟 Ubuntu Linux。

并在開機(jī)時(shí)的登錄界面上尋找“齒輪”,

它一般位于確認(rèn)按鈕的旁邊。

接下來選擇你想要的主體就好了。

這里給出官方圖片的展示:

zsh 終端

如果你對于 Ubuntu Linux 本身的 bash 終端不滿意的話,

又或者你想嘗嘗鮮,

zsh 是一個(gè)不錯(cuò)的選擇。

安裝 zsh

如果想詳細(xì)了解 zsh ,可以前往官網(wǎng)。

如果官網(wǎng)進(jìn)不去的話可以試試百度快照

話不多說,使用 apt 安裝 zsh 。sudo apt install zsh

完成之后嘗試啟動(dòng) zsh :zsh

如果安裝成功,應(yīng)該是這樣:

(本圖片已更換 zsh 主題)

如果啟動(dòng)了一個(gè)新的終端,那證明安裝成功了。

如果沒有,請重啟終端,再試一次。

安裝 oh-my-zsh

oh-my-zsh 為 zsh 提供了很多不錯(cuò)的主題和插件,

所以可以省去很多安裝完之后的下載。

根據(jù)官方文檔,有兩種安裝方式,二選其一: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 -)"

命令執(zhí)行完畢后就安裝完成了,重啟終端。

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"

重啟終端生效。

參考與引用

內(nèi)容修改與更新

2019-12-21 添加了 Flat-Remix 主題的配置。

2020-01-12 添加了 zshell 的配置。

總結(jié)

以上是生活随笔為你收集整理的魔改linux教程,[经验]Ubuntu Linux 魔改手册的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。