This commit is contained in:
colben
2026-01-21 17:58:52 +08:00
parent ecf376723b
commit a60fc27aef

View File

@@ -91,7 +91,8 @@ categories: ["os"]
- 安装系统包 - 安装系统包
```bash ```bash
pacstrap /mnt base linux linux-firmware echo "KEYMAP=us" > /mnt/etc/vconsole.conf
pacstrap -K /mnt base linux linux-firmware
# 这里会从中国源里下载安装包并安装,具体时间就看网速了 # 这里会从中国源里下载安装包并安装,具体时间就看网速了
``` ```
@@ -134,6 +135,13 @@ categories: ["os"]
mkinitcpio -P mkinitcpio -P
``` ```
- 安装系统必须包
```bash
pacman -S grub networkmanager sudo
pacman -S intel-ucode # intel 处理器
pacman -S amd-code # amd 处理器
```
- 设置 root 密码 - 设置 root 密码
```bash ```bash
passwd passwd
@@ -146,16 +154,10 @@ categories: ["os"]
echo "xxxx ALL=(ALL) ALL" > /etc/sudoers.d/xxxx echo "xxxx ALL=(ALL) ALL" > /etc/sudoers.d/xxxx
``` ```
- 安装其他必须包
```bash
pacman -S grub networkmanager
pacman -S intel-ucode # intel 处理器
pacman -S amd-code # amd 处理器
```
- 创建 efi 启动项(xxxx) - 创建 efi 启动项(xxxx)
```bash ```bash
grub-install --target=x86_64-efi --efi-directory=/EFI --bootloader-id=xxxx grub-install --target=x86_64-efi --efi-directory=/EFI --bootloader-id=xxxx
# 如果是移动硬盘或U盘应增加参数“--removable”
``` ```
- 生成 grub.cfg - 生成 grub.cfg
@@ -194,8 +196,8 @@ categories: ["os"]
- 安装常用命令行软件 - 安装常用命令行软件
```bash ```bash
sudo pacman -S ctags cscope tmux expect git p7zip unrar zip unzip \ sudo pacman -S tmux expect git p7zip unrar zip unzip ntfs-3g \
ntfs-3g espeak hostapd dnsmasq openssh tcpdump vim cdrtools \ espeak hostapd dnsmasq openssh tcpdump vim cdrtools \
tree ethtool openbsd-netcat arch-install-scripts tree ethtool openbsd-netcat arch-install-scripts
``` ```