Arch linux安装好后有一些坑需要优化
使用lts(long-term support长期支持版)内核
$ sudo pacman -S linux-lts linux-lts-headers linux-headers
kde任务栏和背景消失
$ rm -rf ~/.config/plasma-org.kde.plasma.desktop-appletsrc
配置好了源但更新错误(没有dns)
$ sudo vim /etc/resolv.conf
[输入]
nameserver 8.8.8.8
nameserver 114.114.114.114
添加中国源
$ sudo vim /etc/pacman.d/mirrorlist
[头部输入]
## 163
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
## aliyun
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
## 清华大学
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
$ vim /etc/pacman.conf
[添加]
[archlinuxcn]
Server = http://repo.archlinuxcn.org/$arch
(或 Server = http://mirrors.163.com/archlinux-cn/$arch)
(或 Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch)
tim / qq显示图片(禁用IPV6)
$ sudo vim /etc/default/grub
找到 GRUB_CMDLINE_LINUX="xxxxx "
添加 ipv6.disable=1
结果 类似
GRUB_CMDLINE_LINUX="xxxxx ipv6.disable=1"
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
dolphin / nautilus / deepin文件管理器自动挂载windows分区
$ sudo vim /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
将此配置文件中的<action id="org.freedesktop.UDisks2.filesystem-mount-system">标签中的
子标签<allow_active></allow_active>的值改为yes即可无需通过密码验证直接挂载分区
安装zsh和oh-my-zsh
$ yay -S zsh
$ sudo echo "xxx.xxx.xxx.xxx raw.githubusercontent.com" >> /etc/hosts
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ yay -S bash-completion zsh-completions
xxx.xxx.xxx.xxx表示raw.githubusercontent.com的对应ip地址,可以在ip138查到
生成用户文件夹
$ yay -S xdg-user-dirs
$ xdg-user-dirs-update
安装Fcitx5
$ sudo pacman -S fcitx5-chinese-addons fcitx5-git fcitx5-gtk fcitx5-qt fcitx5-pinyin-zhwiki kcm-fcitx5
$ vim ~/.pam_environment
[输入]
INPUT_METHOD=fcitx5
GTK_IM_MODULE DEFAULT=fcitx5
QT_IM_MODULE DEFAULT=fcitx5
XMODIFIERS DEFAULT=@im=fcitx5
$ vim ~/.xprofile
[输入]
fcitx5 &
$ yay -S fcitx5-material-color