Installing Arch

From MineOS
Jump to: navigation, search

Installing Arch Linux

cfdisk /dev/sda
mkfs.ext4 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mount /dev/sda1 /mnt
pacstrap /mnt base grub
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
echo "archy" > /etc/hostname
ln -s /usr/share/zoneinfo/America/Phoenix /etc/localtime
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
mkinitcpio -p linux
passwd
grub-install --target=i386-pc --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
 
[restart]
dhcpcd
pacman -S openssh
systemctl start sshd