【linux系统体验】-archlinux折腾日记

archlinux

一、系统安装

安装步骤人们已经总结了很多很全: Arch Linux图文安装教程

大体步骤:

  • 磁盘分区
  • 安装 Linux内核
  • 配置系统(基本软件)
  • 新建一个用户
  • 图形界面+桌面安装(如X11、KDE桌面)

二、系统配置及美化

2.1 中文输入法

安装

bash 复制代码
sudo pacman -S fcitx5 fcitx5-chinese-addons fcitx5-gtk fcitx5-qt fcitx5-configtool

新建并在~/.xprofile里配置,重启即可:

bash 复制代码
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

后续在桌面输入法配置可添加拼音输入法。

2.2 安装virtualbox增强工具

安装后重启

bash 复制代码
pacman -S virtualbox-guest-utils

2.3 终端美化

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

1、安装字体

oh my posh美化工具可以使用合适的字体,如Agave Nerd Font。安装后配置到终端。

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.4 桌面面板美化

1、全局主题,搜索Aritim-Light

2、底部latte dock栏。

bash 复制代码
sudo pacman -S latte-dock

3、顶部面板做状态栏。
添加部件:

  • 本地:应用程序启动器、数字时钟、托盘等等。
  • Plasma挂件(商店):netspeed widget、catwalk。

4、系统设置

  • 外观:主题,图标
  • 工作区间行为:透明度、缩放
  • 开机和关机:开关机界面

三、问题总结

3.1

相关推荐
Dawn-bit1 小时前
Linux磁盘管理详解
linux·运维·服务器·计算机网络·云计算
RisunJan2 小时前
Linux命令-sftp(SSH 文件传输协议客户端)
linux·运维
龙仔7254 小时前
人大金仓OS_Core数据库自动备份实施笔记(银河麒麟Linux)
linux·数据库·笔记·备份·人大金仓
老杨聊技术4 小时前
CentOS 7 安装 MySQL 8 保姆级教程
linux·mysql·centos
xiaoye-duck5 小时前
《Linux系统编程》Linux 系统多线程(六):<线程同步与互斥>线程同步(下):POSIX 信号量与环形队列生产者消费者模型详解
linux·线程
三言老师5 小时前
CentOS7.9:Redis‑Cluster集群部署结构化实战教程
linux·运维·服务器·数据库
大鱼>7 小时前
eBPF内核编程:从TC到XDP的全栈可观测性
linux·服务器·php
sxstj7 小时前
老旧电脑 Linux 系统完整推荐(按内存分档,新手友好)
linux
Lyra_Infra8 小时前
OpenClaw 服务异常故障分析报告
linux·人工智能
ShineWinsu9 小时前
对于Linux:HTTP中cookie、session的解析
linux·网络·c++·网络协议·http·cookie·session