【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栏。

三、常用命令

相关推荐
likfishdn9 分钟前
Linux的文件与目录管理
linux·运维·服务器
chian-ocean29 分钟前
Linux 文件缓冲区:高效数据访问的幕后推手
linux·运维·服务器
加油=^_^=31 分钟前
【Linux】进程优先级 | 进程调度(三)
linux·运维·服务器
若云止水40 分钟前
Ubuntu 下 nginx-1.24.0 源码分析 - ngx_init_cycle 函数 - 详解(4)
数据库·nginx·ubuntu
吃汤圆的抹香鲸1 小时前
GoLand 安装包 绿色版 Win,Mac,Linux 包含IntelliJ全家桶 专为Go语言设计的集成开发环境(IDE)
linux·windows·macos·go·intellij-idea·go1.19
追寻光1 小时前
Cannot find a valid baseurl for repo: base/7/x86_64
linux
元气满满的热码式1 小时前
Docker数据卷操作实战
linux·运维·docker·云原生·容器
陆沙1 小时前
deepseek-r1-centos-本地服务器配置方法
linux·服务器·centos
北京耐用通信1 小时前
航空装配自动化神器Ethercat转profient网关搭配机器人精准控制
运维·机器人·自动化
吃汤圆的抹香鲸2 小时前
Rider 安装包 绿色版 Win/Mac/Linux 适合.NET和游戏开发者使用 2025全栈开发终极指南:从零配置到企业级实战
linux·运维·windows·sql·游戏·macos·.net