合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## ArchLinux安装记录 ### Boot Setup 1. 下载镜像,并制作启动盘 2. 从U盘启动 3. 选择第一项,进入安装环境 4. 第一件事情:换源!!!一个好的软件源速度飞起 ```bash vi /etc/pacman.d/mirrorlist ``` 在最上面添加`Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch` 接着更新软件包缓存`sudo pacman -Syy` 5. 更新字体,好的字体养眼呀!!! ```bash pacman -S terminus-font setfont ter-v32n ``` 6. 对磁盘进行分析,必须有一个ext4格式的根分区`/` ,将其挂载到`/mnt` 7. 为新系统安装基础的软件组`pacstrap /mnt base` 8. 创建文件系统表`genfstab -U /mnt >> /mnt/etc/fstab` 9. 切换到新的系统`arch-chroot /mnt` 10. 设置时间 ``` ln -sf /usr/share/zoneinfo/Region/City /etc/localtime hwclock --systohc ``` 11. 配置网络 ``` echo "myhostname" >> /etc/hostname ``` 编辑hosts,向其中加入 ``` 127.0.0.1 localhost ::1 localhost 127.0.1.1 myhostname.localdomain myhostname ``` 配置不需要认证的有线连接 ``` systemctl enable dhcpcd ``` 12. 为root用户设置密码 ``` passwd ``` 13. 安装boot loader ``` pacman -S grub grub-install --target=i386-pc /dev/sda grub-mkconfig -o /boot/grub/grub.cfg ``` 14. 退回安装环境`exit` 15. 卸载新分区`umount -R /mnt` 16. 重启`reboot`,该命令后移除安装介质。