sgdisk -Z /dev/sda -n 1:0:+1G -t 1:ef00 -n 2:0:+16G -t 2:8200 -n 3:0:0 -t 3:8300 && mkfs.btrfs -f /dev/sda3 && mount /dev/sda3 /mnt && btrfs subvolume create /mnt/@ && btrfs subvolume create /mnt/@home && umount /mnt && mount -o subvol=@ /dev/sda3 /mnt && mkdir -p /mnt/home /mnt/boot && mount -o subvol=@home /dev/sda3 /mnt/home && mkfs.fat -F32 /dev/sda1 && mount /dev/sda1 /mnt/boot && mkswap /dev/sda2 && swapon /dev/sda2 && lsblk
pacstrap -K /mnt base base-devel linux linux-firmware amd-ucode intel-ucode git btrfs-progs grub efibootmgr grub-btrfs inotify-tools timeshift vim networkmanager pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber reflector zsh zsh-completions zsh-autosuggestions openssh man sudo fastfetch tmux btop vifm ncdu pavucontrol rsync curl syslinux unzip
If VMware is being used, install and enable VMware driver packages
pacstrap /mnt open-vm-tools xf86-video-vmware xf86-input-vmmouse && arch-chroot /mnt /bin/bash -c "systemctl enable vmtoolsd"
arch-chroot /mnt /bin/bash -c "echo 'KEYMAP=us' > /etc/vconsole.conf && echo 'archlinux' > /etc/hostname && echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && echo 'LANG=en_US.UTF-8' > /etc/locale.conf && ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime && hwclock --systohc && echo 'root:password' | chpasswd && useradd -m -G wheel -s /bin/bash arch && echo 'arch:arch' | chpasswd && echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers && reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist && pacman -Syu --noconfirm plasma kde-applications networkmanager sddm && systemctl enable NetworkManager sddm && mkinitcpio -P && grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH && grub-mkconfig -o /boot/grub/grub.cfg && exit" && genfstab -U /mnt >> /mnt/etc/fstab
FreeDOS is optional but can be installed with the following command:
arch-chroot /mnt /bin/bash -c "cd /boot && cp /usr/lib/syslinux/bios/memdisk . && curl -LO https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.4/FD14-LiveCD.zip && unzip -o FD14-LiveCD.zip && rm FD14-LiveCD.zip readme.txt FD14BOOT.img && echo -e \"menuentry 'FreeDOS 1.4 Live' {\n search --no-floppy --set=root --file /FD14LIVE.iso\n linux16 /memdisk iso raw\n initrd16 /FD14LIVE.iso\n}\" >> /etc/grub.d/40_custom && grub-mkconfig -o /boot/grub/grub.cfg"
mount -o subvol=@ /dev/sda3 /mnt && mount -o subvol=@home /dev/sda3 /mnt/home && mount /dev/sda1 /mnt/boot/efi && lsblk
arch-chroot /mnt
sgdisk -Z /dev/sda -n 1:0:+1M -t 1:ef02 -n 2:0:+16G -t 2:8200 -n 3:0:0 -t 3:8300 && mkfs.btrfs -f /dev/sda3 && mount /dev/sda3 /mnt && btrfs subvolume create /mnt/@ && btrfs subvolume create /mnt/@home && umount /mnt && mount -o subvol=@ /dev/sda3 /mnt && mkdir -p /mnt/home && mount -o subvol=@home /dev/sda3 /mnt/home && mkswap /dev/sda2 && swapon /dev/sda2 && lsblk
pacstrap -K /mnt base base-devel linux linux-firmware amd-ucode intel-ucode git btrfs-progs grub grub-btrfs inotify-tools timeshift vim networkmanager pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber reflector zsh zsh-completions zsh-autosuggestions openssh man sudo fastfetch tmux btop vifm ncdu pavucontrol rsync curl
If VMware is being used, install and enable VMware driver packages
pacstrap /mnt open-vm-tools xf86-video-vmware xf86-input-vmmouse && arch-chroot /mnt /bin/bash -c "systemctl enable vmtoolsd"
arch-chroot /mnt /bin/bash -c "echo 'KEYMAP=us' > /etc/vconsole.conf && echo 'archlinux' > /etc/hostname && echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && echo 'LANG=en_US.UTF-8' > /etc/locale.conf && ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime && hwclock --systohc && echo 'root:password' | chpasswd && useradd -m -G wheel -s /bin/bash arch && echo 'arch:arch' | chpasswd && echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers && reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist && pacman -Syu --noconfirm plasma kde-applications networkmanager sddm && systemctl enable NetworkManager sddm && mkinitcpio -P && grub-install --target=i386-pc /dev/sda && grub-mkconfig -o /boot/grub/grub.cfg && exit" && genfstab -U /mnt >> /mnt/etc/fstab
FreeDOS is optional but can be installed with the following command:
arch-chroot /mnt /bin/bash -c "cd /boot && cp /usr/lib/syslinux/bios/memdisk . && curl -LO https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.4/FD14-LiveCD.zip && unzip -o FD14-LiveCD.zip && rm FD14-LiveCD.zip readme.txt FD14BOOT.img && echo -e \"menuentry 'FreeDOS 1.4 Live' {\n search --no-floppy --set=root --file /@/boot/FD14LIVE.iso\n linux16 /@/boot/memdisk iso raw\n initrd16 /@/boot/FD14LIVE.iso\n}\" >> /etc/grub.d/40_custom && grub-mkconfig -o /boot/grub/grub.cfg"