Support #590
Updated by Daniel Curtis over 9 years ago
This is a simple guide to setup a base minimal Arch Linux installation. h1. Prepare the partition * Format the hard drive using cfdisk: <pre> cfdisk /dev/sda </pre> * Create Next, create the filesystem: filesystem for the containers. I chose BTRFS, though the choice in filesystem is user-preferential; I would like to try ZFS at some point. <pre> mkfs.ext4 /dev/sda1 </pre> * Mount the partition: new encrypted partitions: <pre> mount /dev/sda1 /mnt mkdir /mnt/etc </pre> h1. Install the base system * Generate an fstab: <pre> genfstab -p /mnt >> /mnt/etc/fstab </pre> * Now its time to install the base system: <pre> pacstrap /mnt base base-devel grub openssh </pre> #* chroot into the newly installed system: <pre> arch-chroot /mnt </pre> #* Write your hostname to /etc/hostname: <pre> echo 'archlinux' >> /etc/hostname </pre> #* Symlink /etc/localtime to /usr/share/zoneinfo/Zone/SubZone: <pre> ln -s /usr/share/zoneinfo/America/Los_angeles /etc/localtime </pre> #* Uncomment the selected locale in /etc/locale.gen and generate it with: <pre> vi /etc/locale.gen :%s/#en_US.UTF-8/en_US.UTF-8 :wq locale-gen </pre> #* Configure @/etc/mkinitcpio.conf@ as needed and create an initial RAM disk with: <pre> mkinitcpio -p linux </pre> #* Set a root password: <pre> passwd </pre> #* Configure the network again for newly installed environment: <pre> cp /etc/netctl/examples/ethernet-dhcp /etc/netctl/wired systemctl enable systemd-networkd.service netctl enable wired.service </pre> #* Enable SSH <pre> systemctl enable sshd.service </pre> h1. Install the bootloader * Now install GRUB: GRUB onto the USB drive: <pre> grub-install --target=i386-pc --recheck --debug /dev/sda grub-mkconfig -o /boot/grub/grub.cfg </pre> * At this point the system will be bootable from the USB drive. Exit and reboot the out of the installation environment: <pre> exit umount /mnt reboot </pre>