ArchLinux 安装 Xfce4 桌面环境

联网

安装预装的是 NetworkManger,所以用这个联网

1
2
3
4
systemctl enable --now NetworkManager

nmcli d wifi rescan
nmcli d wifi connect WIFI名称 password WIFI密码

创建非 root 账号

1
2
3
4
5
useradd -m -G wheel arch
passwd arch

vim /etc/sudoers
### 找到里面的 %wheel ALL=(ALL) ALL,去掉前面的 #,保存退出

安装

安装 xfce4 相关

1
pacman -S xorg xfce4 xfce4-goodies

安装显卡驱动

1
2
lspci |grep VGA
pacman -S xf86-video-ati

安装的包参考:

https://wiki.archlinux.org/title/General_recommendations_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2
https://blog.csdn.net/kingolie/article/details/76723448

安装字体和谷歌浏览器

1
pacman -S ntfs-3g adobe-source-han-serif-cn-fonts wqy-zenhei noto-fonts-cjk noto-fonts-emoji noto-fonts-extra chromium 

安装 lightdm 并设置开机启动

1
2
pacman -S lightdm lightdm-gtk-greeter
systemctl enable lightdm.service

汉化

1
2
cd
touch .xprofile

在 .xprofile 填入下面的内容

1
2
export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN:en_US