Arch安装与配置
Part1 安装
- 根据ArchWiki文档走
- 引导安装与配置
- grub及必要软件安装
pacman -S grub intel-ucode efibootmgr
- 生成grub配置文件
mkdir /boot/grub grub-mkconfig > /boot/grub/grub.cfg
- 确认计算机架构
uname -m
- 安装grub
grub-install --target=x86_64-efi --efi-directory=/boot
- grub及必要软件安装
- 联网工具
- 这里推荐NetworkManager
pacman -S networkmanager
- 基本使用
#开机自启 systemctl enable NetworkManager systemctl start NetworkManager nmcli device wifi list nmcli device wifi connect [SSID] password [password]
- 这里推荐NetworkManager
- 其它工具包
- base-devel包
pacman -S base-devel
- 其他软件
pacman -S vim alacritty
- base-devel包
Part2 配置
- 添加用户
- 添加用户
useradd -m -G wheel [name]
- 更改配置文件
#由于没有选择vi,建立链接 ln -s /usr/bin/vim /usr/bin/vi #去掉%wheel ALL=(ALL) ALL之前的注释符号 visudo #修改密码 passwd [name]
- 添加用户
- 桌面环境
- xorg-server
sudo pacman -S xorg-server #驱动,根据实际情况选择 sudo pacman -S xf86-video-intel #可以选择更美观的lightdm-webkit2-greeter,需要更改配置文件 sudo pacman -S lightdm lightdm-gtk-greeter systemctl enable lightdm
- 窗口管理器
sudo pacman -S i3-gaps i3status
- 重启登录即可,相关配置文件可以参考这里
- xorg-server
- archlinuxcn源
sudo vim /etc/pacman.conf #添加 [archlinuxcn] SigLevel = Optional TrustedOnly Server = http://mirrors.163.com/archlinux-cn/$arch sudo pacman -S archlinuxcn-keyring
- 相关软件
- zsh及oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc #自动补全插件 zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions #语法高亮插件 zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting #修改.zshrc,添加相应名称至plugins #修改默认shell chsh -s /usr/bin/zsh
- 字体
#i3status需要 sudo pacman -S ttf-font-awesome #基本字体 sudo pacman -S ttf-roboto noto-fonts ttf-dejavu #中文字体 sudo pacman -S adobe-source-han-sans-cn-fonts #nerd-fonts sudo pacman -S nerd-fonts-complete
- 输入法
sudo pacman -S fcitx-im fcitx-configtool fcitx-googlepinyin #环境变量 ~/.xprofile export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx
- zsh及oh-my-zsh
- 系统设置