Installing

  1. Enable ssh: ip addr , passwd , systemctl start sshd , ssh into VM
  2. As needed, clear the partition table
    wipefs -a /dev/sda
  3. Partition drive:
    cfdisk /dev/sda

    (GPT, 512MB for EFI System, root, swap optl.)

  4. Format:
    mkfs.ext4 /dev/sda2 ; mkfs.fat -F32 /dev/sda1 ; mkswap /dev/sda3 
  5. Mount:
    mount /dev/sda2 /mnt ; mkdir -p /mnt/boot/efi ; mount /dev/sda1 /mnt/boot/efi
  6. Install:
    pacstrap /mnt base base-devel linux linux-firmware nano sysfsutils usbutils\
    htop tmux sudo wget openssh elinks grub efibootmgr netctl dhcpcd inetutils less which man
  7. Generate fstab:
    genfstab -U /mnt >> /mnt/etc/fstab
  8. chroot:
    arch-chroot /mnt /bin/bash
  9. set locale:
    echo en_US.UTF-8 UTF-8 > /etc/locale.gen ; locale-gen \
    echo LANG=en_GB.UTF-8 > /etc/locale.conf
  10. Set time zone
    timezonectl set-timezone America/New_York
  11. set hostname:
    echo hostname > /etc/hostname
  12. configure /etc/hosts
    127.0.0.1 localhost
    ::1 localhost
    127.0.1.1 hostname.domain hostname
  13. Install bootloader:
    grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi \
    grub-mkconfig -o /boot/grub/grub.cfg
  14. if DHCP is required, edit /etc/netctl/examples/ethernet-dhcp instead
  15. enable netctl:
    systemctl enable netctl
  16. enable profile:
    netctl enable enet
  17. set root passwd
  18. create user
    useradd -m -G wheel -s /bin/bash user
  19. set user passwd
  20. configure sudo
     echo %wheel ALL=\(ALL\) ALL >> /etc/sudoers
  21. enable ssh:
    systemctl enable sshd
  22. enable vmtools:
    systemctl enable vmtoolsd
  23. exit chroot
  24. umount /mnt ; sync
  25. reboot & disconnect ISO

More

Gnome

pacman -S xorg xorg-server gnome ; systemctl enable gdm ; systemctl enable NetworkManager