系统安装
查看是否EFI
ls /sys/firmware/efi/efivars
联网
ip linkping archlinux.org
更新系统时间
timedatectl set-ntp true
创建分区
fdisk -l 查看当前fdisk /dev/sda 进入第一个磁盘
分区格式化
mkfs.ext4
挂载分区
mount /dev/sda1 /mnt
安装系统软件
pacstrap /mnt base linux linux-firmware base-devel networkmanager dhcpcd
生成fstab
genfstab -U /mnt >> /mnt/etc/fstab
chroot
arch-chroot /mnt
系统安装完成
设置时区时间
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtimehwclock --systohc
本地化
vim /etc/locale.conf放开:en_US.UTF-8 UTF-8 和 zh_CN.UTF-8 UTF-8然后运行命令:locale-gen
配置系统网络属性
vim /etc/hostnamexiaohanqingvim /etc/hosts127.0.0.1 localhost::1 localhost
磁盘(非必须)
mkinitcpio -P
设置root密码
passwd
新建用户并添加sudo权限
useradd -m xhqvim /etc/sudoersxhq ALL=(ALL) ALL
cpu微码,驱动
pacman -S intel-ucode驱动根据显卡型号查询安装
安装引导
BIOS:pacman -S grubgrub-install --target=i386 /dev/sdagrub-mkconfig -o /boot/grub/grub.cfgUEFI:
开机自启网络相关服务(重要)
systemctl enable dhcpcd.servicesystemctl enable NetworkManager.service
安装桌面
安装xfce4
pacman -S xorg xfce4 xfce4-goodies lightdm lightdm-gtk-greetersystemctl enable lightdm(驱动装好之前不要运行)
启用archlinuxcn
国内镜像源:https://github.com/archlinuxcn/mirrorlist-repo
vim /etc/pacman.conf[archlinuxcn]Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
安装zsh并使用oh-my-zsh
sudo pacman -S git wgetsudo pacman -S zshchsh -s $(which zsh)sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"vim ~/.zshrc 主题设置ys
安装软件
pacman -S google-chrome firefox terminator yay plank fcitx fcitx-configtool fcitx-qt5 fcitx-rime
中文环境:(搜索Localization_(简体中文))
安装字体:
pacman -S wqy-microhei wqy-microhei-lite wqy-bitmapfont wqy-zenhei ttf-arphic-ukai ttf-arphic-uming adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts noto-fonts-cjk
