- Select kernel version "Other Linux 3.x kernel".
- Set the vm's hardware resource limitation.
- Boot Arch.
- Partition.
-
Show disk list:
fdisk -l -
Create partition:
cfdisk /dev/sda0./dev/sda1for boot.Primary,Bootable0./dev/sda2for swap.Primary,Type 820./dev/sda3for root.Primary0./dev/sda4for home.Primary0.write -
Format partition. 0.
mkfs.ext4 /dev/sda10.mkswap /dev/sda20.mkfs.ext4 /dev/sda30.mkfs.ext4 /dev/sda4 -
Mount partitions 0.
mount /dev/sda3 /mnt0.mkdir /mnt/boot0.mount /dev/sda1 /mnt/boot0.swapon /dev/sda20.mkdir /mnt/home0.mount /dev/sda4 /mnt/home
- Change the repo mirror list:
nano /etc/pacman.d/mirrorlistTheServer = http://mirrors.163.com/archlinux/$repo/os/$archis enough. - Install
pacstrap /mnt base - Generate the file system table:
genfstab -U -p /mnt >> /mnt/etc/fstab - Check the fstab file:
nano /mnt/etc/fstab - Configure the system:
arch-chroot /mnt - Set time zone:
hwclock --systohc --utc - Set root password:
passwd root - Install and configure bootloader Grub:
pacman -S grub-biosgrub-install --target=i386-pc --recheck /dev/sdagrub-mkconfig -o /boot/grub/grub.cfg
- Network:
systemctl enable dhcpcd.service exit- Umount the partitions and shutdown, eject the DVD:
umount -R /mntshutdown -P 0
- Start dhcpcd service manully:
dhcpcd - Install ssh:
pacman -S openssh, configure/etc/ssh/sshd_config, addAllowGourpsto it. - Create a new user:
useradd -m -g users -G wheel -s /bin/bash saya
原来有玩 Arch Linux 啊...