## 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`,该命令后移除安装介质。
- Linux
- bash常见的命令汇总
- 切换用户登陆到bash时的目录
- grep匹配tab
- gperftools的使用
- Hyper-V安装Linux
- ubuntu on windows 忘记密码怎么办
- 修改用户默认shell
- ubuntu 安装pip
- Arch Linux安装记录
- Hyper-V中安装Linux的一些问题
- ASR
- 数据集
- PCM音频文件
- One-Pass算法
- CHiME5环境配置中遇到的一些问题
- Python
- 命令行参数解析
- 三目运算符
- Numpy
- 练习1
- 练习2
- Others
- GNU make 的用法
- pandoc
- Git
- PowerShell
- 花括号的作用
- 一条命令在多行内输入
- Tex
- Latex基础知识
- tikz库
- CTex使用中的一些问题
- C++
- 标准库list
- 数据结构
- kdtree