#!/bin/sh # pacman -Sy curl && curl https://xfnw.ttm.sh/cans/arch.txt > arch && sh arch set -e read -p 'what device to install on [vda]> ' vda vda=${vda:-vda} echo 'doot partition time' echo 'fdisk it' fdisk /dev/$vda <> /mnt/etc/fstab echo 'chroot time' echo 'UR IN THE UK NOW HAHA' arch-chroot /mnt ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime echo 'generate da locales' echo "en_US.UTF-8 UTF-8" > /mnt/etc/locale.gen arch-chroot /mnt locale-gen read -p "what hostname do ya want> " HOSTNAM echo "$HOSTNAM" > /mnt/etc/hostname cat > /mnt/etc/hosts < /mnt/etc/sudoers < /mnt/etc/skel/.xinitrc < ' USERNAM arch-chroot /mnt useradd "$USERNAM" -m -s /usr/bin/zsh -U -G wheel arch-chroot /mnt passwd "$USERNAM" echo 'yay, its yay' arch-chroot -u "$USERNAM" /mnt sh -c 'cd ~'$USERNAM' && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si' echo 'doot grub' arch-chroot /mnt grub-install --target=i386-pc /dev/$vda arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg echo 'make some users and stuff, reboop!'