【linux系统体验】-ubuntu简易折腾

ubuntu

一、终端美化

安装oh my posh,参考链接:Linux 终端美化

1、安装字体

oh my posh美化工具可以使用合适的字体,如Agave Nerd Font。安装后配置到终端,如果不使用该字体,可能有些图标无法显示。

安装方法:解压后将.ttf文件放入~/.fonts下即可。

2、可执行文件oh-my-posh

bash 复制代码
//下载
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
//记得赋予可执行权限
chmod +x /usr/local/bin/oh-my-posh

3、配置oh-my-posh主题

bash 复制代码
//下载解压到.poshthemes
mkdir ~/.poshthemes
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes
chmod u+rw ~/.poshthemes/*.json
//配置到用户环境变量~/.bashrc,推荐主题 1_shell M365Princess montys
eval "$(oh-my-posh init bash --config ~/.poshthemes/M365Princess.omp.json)"

4、配置oh-my-posh字体颜色

bash 复制代码
//下载解压到.poshdircolors
git clone https://gitee.com/wq870406/dircolors-solarized.git
//配置到用户环境变量~/.bashrc
eval `dircolors ~/.poshdircolors/dircolors.ansi-light`

5、更新环境变量

bash 复制代码
. .bashrc

二、桌面美化

2.1 插件安装

  • tweaks/优化
bash 复制代码
sudo apt install gnome-tweaks gnome-shell-extensions -y

2.2 主题和图标

bash 复制代码
//下载
git clone https://github.com/vinceliuice/WhiteSur-gtk-theme.git
//进入目录安装
./install.sh -t all -N glassy -s 220
  • 图标,下载链接:Mkos-Big-Sur,也可以选择其他心仪的图标。
    将压缩包解压到~/.icons目录下,

2.3 美化配置

  • 搜索打开tweaks / 美化应用,主要调整Icons / 图标ShellLegacy Applications
  • 设置-外观,调整Dock栏。

三、常用命令

相关推荐
毒爪的小新6 小时前
Linux 环境极速部署 vLLM:从零搭建生产级大模型推理服务
linux·人工智能·ai·语言模型·vllm
鹤落晴春6 小时前
RH124问答3:从命令行管理文件
linux·运维·服务器
凡人叶枫6 小时前
Effective C++ 条款30:透彻了解 inlining 的里里外外
linux·开发语言·c++·嵌入式开发·effective c++
guslegend7 小时前
大模型驱动大数据SRE智能运维
大数据·运维
遇见火星7 小时前
Docker Compose 完全入门:一键启动所有容器
运维·docker·容器·docker compose
Net_Walke7 小时前
【Linux系统】静态链接库与动态链接库
linux·嵌入式硬件
小啊曼7 小时前
CIO实战方法论_11_组织变革打破部门墙
运维
syc78901238 小时前
中文语境下AI编码工具实战对比:从迭代体验看日常开发选择
linux·人工智能·ubuntu
❀搜不到8 小时前
远程服务器codex使用本地cc-switch的deepseek api
运维·服务器
凡人叶枫8 小时前
Effective C++ 条款22:将成员变量声明为 private
linux·开发语言·c++