manjaro-xfce 配置

西门嘉石
2023-12-01

双显示器

关闭笔记本盖子时do noting

HandleLidSwitch=ignore in /etc/systemd/logind.conf
IgnoreLid=true in /etc/UPower/UPower.conf

换源/更新

pacman-mirrors -i -c China -m rank

修改/etc/pacman.conf,添加

 [archlinuxcn]
 SigLevel = Optional TrustedOnly 
 Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
sudo pacman -Sy archlinuxcn-keyring # 导入密匙
sudo pacman -Syyu # 更新系统
pacman -Rs steam-manjaro # 卸载steam及其依赖
sudo pacman-mirrors -i -c China -m rank
sudo cat >> /etc/pacman.conf <<- EOF
 [archlinuxcn]
 SigLevel = Optional TrustedOnly 
 Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
EOF
sudo pacman -Sy archlinuxcn-keyring # 导入密匙
sudo pacman -Syyu # 更新系统
sudo pacman -Rs steam-manjaro # 卸载steam及其依赖

ssh

# 更新系统
sudo pacman -Syu
# 安装ssh
sudo pacman -S openssh
# 启动SSH
systemctl start sshd.service
# 开机启动SSH
systemctl enable sshd.service
# 重启SSH
systemctl restart sshd.service
vi /etc/ssh/sshd_config
PermitRootLogin yes
systemctl restart sshd.service
sudo pacman -Syu
sudo pacman -S openssh
sudo systemctl start sshd.service
sudo systemctl enable sshd.service
sudo systemctl restart sshd.service

sudo echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
sudo systemctl restart sshd.service

安装

sudo pacman -S yay
sudo pacman -S fcitx5-im
sudo pacman -S fcitx5-chinese-addons
vi ~/.pam_environment

写入

 INPUT_METHOD  DEFAULT=fcitx5
 GTK_IM_MODULE DEFAULT=fcitx5
 QT_IM_MODULE  DEFAULT=fcitx5
 XMODIFIERS    DEFAULT=\@im=fcitx5
sudo pacman -S yay
sudo pacman -S fcitx5-im
sudo pacman -S fcitx5-chinese-addons
cat >> ~/.pam_environment <<-EOF
 INPUT_METHOD  DEFAULT=fcitx5
 GTK_IM_MODULE DEFAULT=fcitx5
 QT_IM_MODULE  DEFAULT=fcitx5
 XMODIFIERS    DEFAULT=\@im=fcitx5
EOF

g++/vsc

sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install --classic code
sudo pacman -S gcc
sudo pacman -S wqy-microhei
 类似资料: