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

66b52468c121889b900d4956032f1009.png

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

0620fdf1fd253500d26656f63245f64d.png

接着打开 User themes 的插件

注:若无法开启请重启 Ubuntu Linux

23909a692019694f9f6ac8d7d3841c84.png

之后在外观中选择你喜欢的主题

比如向我这样:

bba09613271b8209a9109ebfe00f7335.png

登录主题

注意!

请确保你能够在失败的情况下重新安装 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。

并在开机时的登录界面上寻找“齿轮”,

它一般位于确认按钮的旁边。

接下来选择你想要的主体就好了。

这里给出官方图片的展示:

gdm-session-selector.jpg

zsh 终端

如果你对于 Ubuntu Linux 本身的 bash 终端不满意的话,

又或者你想尝尝鲜,

zsh 是一个不错的选择。

安装 zsh

如果想详细了解 zsh ,可以前往官网。

如果官网进不去的话可以试试百度快照

话不多说,使用 apt 安装 zsh 。sudo apt install zsh

完成之后尝试启动 zsh :zsh

如果安装成功,应该是这样:

(本图片已更换 zsh 主题)

f95da8ab8c5a973ea483abf0787b226a.png

如果启动了一个新的终端,那证明安装成功了。

如果没有,请重启终端,再试一次。

安装 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 工作目录提供了美化:

ce4d228342e28aa1100af9d617dacfce.png

该美化需要安装 powerline 字体:git clone https://github.com/powerline/fonts.git

cd fonts

install.sh

然后重启终端,看看效果。

如果没有成功,那就打开 GNOME-Tweak ,

在字体中选择带有powerline的字体,

比如这样:

569e5ade98d557f93cdb9502fb63fe79.png

重启终端,完成。

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 的配置。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值