Arch安装记录

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
      
  • 联网工具
    • 这里推荐NetworkManager
      pacman -S networkmanager
      
    • 基本使用
      #开机自启
      systemctl enable NetworkManager
      systemctl start NetworkManager
      nmcli device wifi list
      nmcli device wifi connect [SSID] password [password]
      
  • 其它工具包
    • base-devel包
      pacman -S base-devel
      
    • 其他软件
      pacman -S vim alacritty
      

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
      
    • 重启登录即可,相关配置文件可以参考这里
  • 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
      
      
  • 系统设置
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值