惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LINUX DO - 最新话题
T
Tor Project blog
G
GRAHAM CLULEY
S
Security Affairs
P
Palo Alto Networks Blog
TaoSecurity Blog
TaoSecurity Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
aimingoo的专栏
aimingoo的专栏
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 三生石上(FineUI控件)
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CERT Recently Published Vulnerability Notes
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Check Point Blog
宝玉的分享
宝玉的分享
Forbes - Security
Forbes - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
The Last Watchdog
The Last Watchdog
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
H
Heimdal Security Blog
Recorded Future
Recorded Future
L
LangChain Blog
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
C
Cyber Attacks, Cyber Crime and Cyber Security
V
Visual Studio Blog
B
Blog
H
Help Net Security
T
Tailwind CSS Blog
The Hacker News
The Hacker News
雷峰网
雷峰网
P
Proofpoint News Feed
博客园 - Franky
Attack and Defense Labs
Attack and Defense Labs
有赞技术团队
有赞技术团队
S
Schneier on Security
T
Troy Hunt's Blog
云风的 BLOG
云风的 BLOG
Hacker News - Newest:
Hacker News - Newest: "LLM"
Blog — PlanetScale
Blog — PlanetScale
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Proofpoint News Feed

博客园 - 白虎

软件架构设计的六大原则 Linux 安装npm 下载ECharts Linux 安装WebStorm Linux配置开机自启动执行脚本 Linux挂载第二块硬盘 Linux 安装Nginx Linux 第一个脚本程序 Linux 8开启FTP功能服务 Jigloo 下载 安装 GUI Linux应用开发入门(转) NET(C#)连接各类数据库-集锦 C# 编写最小化时隐藏为任务栏图标的Window appllication 管理型交换机IEEE 802.1Q VLAN设置应用实例 Windows Server 2012如何实现双网卡绑定 多网卡的7种bond模式原理 For Linux Eplan中电缆源和目标的确定规则 Eplan 2D安装版布局,部件、端子竖放 EPLAN Electric P8 2.0即将到来,着实令人期待-转caodaping 关于STM32 CAN回环可用,正常不可用情况分析
Linux个性终端Oh my zsh
白虎 · 2021-02-16 · via 博客园 - 白虎

关于个性终端,内置皮肤,可以为我们带来很好的视觉体验,提高了实用性,绚丽的颜色为我们带来了方便。

基于Oracle Linux 8 安装,相信也适用于Redhat和CentOS。

1、首先我们需要安装zsh,如果没装,安装oh my zsh的时候会提示安装。

2、然后安装oh my zsh

$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

3、哎,这里出了问题,会提示433端口错误,DNS好像混乱了。解决:

#使用IP地址解析工具获取该网站的IP地址
#raw.githubusercontent.com
#在/etc/hosts文件中添加一行
xxx.xxx.xxx.xxx  raw.githubusercontent.com
#这里不写实际IP,因为动态DNS随时会变的。
#然后再执行安装就没有问题了。

安装完之后,提示中选择y。

我们发现root用户已经可以使用oh my zsh了。

4、但是我们想换一个皮肤,编辑~/.zshrc配置文件

当然如果想要深入研究配置文件,可以详细阅读配置文件说明。

5、编辑完成之后,需要重新加载配置文件,执行以下命令

皮肤样例显示在此网址中。

https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

6、此时可以看到root用户可以使用了,但是普通用户还不能用。网上也有很多办法解决。

1)、创建root和普通用户的连接 

2)、直接cp文件到普通用户

7、我们这里使用直接从网站上克隆一个副本到普通用户。以下代码在普通用户下执行。

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
#复制zshrc文件
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
#更改你的shell
chsh -s /bin/zsh

然后就是配置主题了,和之前一样,选择一个喜欢的主提修改进去就可以了。