首先要vim /etc/locale.gen
取消注释zh_CN.UTF8 UTF8,然后locale-gen
然后还要安装fcitx-im来支持各种程序调用fcitx
暂时不能明白到底是哪个包非常重要,但是目前使用networkmanager slim network-manager-applet使得连接稳定了下来
注意NetworkManager需要设定好/etc/hostname和/etc/hosts:
127.0.0.1 localhost 127.0.1.1 _myhostname_.localdomain _myhostname_
NetworkManager
1 | pacman -S bbswitch bumblebee |
创建/etc/modprobe.d/bbswitch.conf
: options bbswitch load_state=0 unload_state=1
创建/etc/modprobe.d/blacklist: blacklist nouveau
创建/etc/modules-load.d/bbswitch.conf: bbswitch
cfdisk分区,假设是/dev/sda,sda1是efi,sda2是linux; mkfs.fat -F32 /dev/sda1 mkfs.ext4 /dev/sda2 mount /dev/sda2 /mnt
添加清华镜像源: vim /etc/pacman.d/mirrorlist
添加 Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
执行pacman -Sy
,之后pacstrap /mnt base base-devel
,结束后genfstab -U -p /mnt >> /mnt/etc/fstab
。
chroot进新安装的系统:arch-chroot /mnt echo _hostname_ > /etc/hostname
,然后设定/etc/locale.gen,修改后locale-gen,同时 echo LANG=en_US.UTF-8 > /etc/locale.conf ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime hwclock --systohc --utc
修改root密码:passwd;新建用户: useradd -m -G wheel,storage,power -s /bin/bash _username_ passwd _username_
然后添加sudo权限: visudo _username_ ALL=(ALL) ALL
最后处理UEFI的grub: pacman -S grub efibootmgr dosfstools mkdir /boot/EFI mount /dev/sda1 /boot/EFI grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck grub-mkconfig -o /boot/grub/grub.cfg
重启进入arch之后需要执行systemctl enable dhcpcd
才能启动时自动获取联网地址
断子绝孙法,在/etc/modprobe.d/blacklist.conf
中添加blacklist pcspkr,直接把声卡驱动模块屏蔽
先添加源,在/etc/pacman.conf
里添加:
1 | [archlinuxcn] |
然后pacman -Syy
更新源缓存。
如果有yay,直接yay -S deepin-wine-wechat deepin-wine
,安装完再修改/opt/deepinwine/apps/Deepin-WeChat/run.sh
,把WINE_CMD
修改成deepin-wine
。就可以了。
没有装yay,去AUR下载deepin-wine-wechat、deepin-wine,解压再makepkg -rsi
就行。
archlinux下安装了AUR里的deepin-wechat之后,需要修改/opt/deepinwine/tools/run.sh,添加
1 | export XMODIFIERS="@im=fcitx" |