Arch配置安装使用 (2)

image-20210501135711513

ssh开启 # 安装ssh方便使用远程工具进行连接 pacman -S --noconfirm openssh openssl # 修改ssh配置文件允许root登陆 vim /ect/ssh/sshd_config # 修改为yes 32 PermitRootLogin ---> yes # 取消注释 57 PasswordAuthentication systemctl start sshd && systemctl enable sshd

image-20210501140036164

配置桌面环境

上述配置如果没有问题则已经成功配置了Arch命令行版本,但是作为日常主力系统肯定需要有相应的桌面环境,来保证我们更加愉快的使用Arch Linux

系统更新 # 更新所有包 pacman -Syyu 生成非root用户 # 加入wheel附属组方便非root用户可以更好的提权 useradd -m -G wheel -s /bin/bash sean # 创建密码 passwd sean # 提权 EDITOR=vim visudo # 将改行前面的注释取消 %wheel ALL=(ALL) ALL

image-20210501141733769

安装KDE桌面环境 # 安装软件包与文件管理器 pacman -S --noconfirm plasma-meta dolphin konsole bash-completion 安装sddm桌面管理器 # 安装好了桌面环境包以后,我们需要安装一个图形化的桌面管理器来帮助我们登录并且选择我们使用的桌面环境。 pacman -S --noconfirm sddm # 开启服务 systemctl start sddm && systemctl enable sddm 添加仓库地址 sudo cp /etc/pacman.conf /etc/pacman.conf.backup sudo vim /etc/pacman.conf # 取消[multilib]一节中两行注释 # 添加blackarch源 [blackarch] SigLevel = Optional TrustAll Server = https://mirrors.tuna.tsinghua.edu.cn/blackarch/$repo/os/$arch # 末尾添加ArchLinuxCN源 [archlinuxcn] SigLevel = Optional TrustAll Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch # 刷新数据库 sudo pacman -Syyu # 配置aur sudo pacman -S --noconfirm yaourt # 备份 sudo cp /etc/yaourtrc /etc/yaourtrc.backup sudo vim /etc/yaourtrc # 取消#AURURL 的注释,并修改 AURURL="https://aur.tuna.tsinghua.edu.cn" # 添加yay源为国内源 yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save # 查看配置 yay -P -g

image-20210501155104859

关闭无线网络防止冲突 # 确保iwd开机处于关闭状态,其无线连接会与NetworkManager冲突 sudo systemctl disable iwd # 同上,立即关闭iwd sudo systemctl stop iwd # 确保先启动NetworkManager,并进行网络连接 若iwd已经与NetworkManager冲突 则执行完上一步重启一下电脑即可 sudo systemctl enable --now NetworkManager 基础安装包 # 识别NTFS格式的硬盘 sudo pacman -S --noconfirm ntfs-3g # 安装几个开源中文字体 一般装上文泉驿就能解决大多wine应用中文方块的问题 sudo pacman -S --noconfirm adobe-source-han-serif-cn-fonts wqy-zenhei # 安装谷歌开源字体及表情 sudo pacman -S --noconfirm noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra # 安装常用的谷歌浏览器 sudo pacman -S --noconfirm chromium # 与dolphin同用右键解压 sudo pacman -S --noconfirm --noconfirm ark # 确保Discover(软件中心)可用 需重启 sudo pacman -S --noconfirm packagekit-qt5 packagekit appstream-qt appstream # 图片查看器 sudo pacman -S --noconfirm gwenview # 安装yay # cn源中的签名(archlinuxcn-keyring在archLinuxCn) sudo pacman -S --noconfirm archlinuxcn-keyring # yay命令可以让用户安装AUR中的软件(yay在archLinuxCn) sudo pacman -S --noconfirm yay 配置输入法 # 安装软件包 sudo pacman -S --noconfirm fcitx5-im fcitx5-chinese-addons fcitx5-pinyin-moegirl fcitx5-material-color # 配置环境变量 vim ~/.pam_environment INPUT_METHOD DEFAULT=fcitx5 GTK_IM_MODULE DEFAULT=fcitx5 QT_IM_MODULE DEFAULT=fcitx5 XMODIFIERS DEFAULT=\@im=fcitx5 SDL_IM_MODULE DEFAULT=fcitx

打开系统设置-->区域设置-->输入法,点击添加输入法,选择简体中文下的pinyin点击添加

点击pinyin右侧编辑,开启云拼音与在程序中显示预编辑文本

点击配置附加组件,选择classic user interface选择喜欢的主题

点击系统设置-->开机与关机-->自动启动-->添加-->添加应用-->fcitx5

注销重新登陆

检查家目录 # 检查家目录下的各个常见目录是否已经创建,若没有则需手动创建。 cd /home/sean mkdir Desktop Documents Downloads Music Pictures Videos ls

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zgggyw.html