-
Notifications
You must be signed in to change notification settings - Fork 0
/
vbox
32 lines (27 loc) · 791 Bytes
/
vbox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
parted /dev/sda mklabel gpt
cfdisk # 512M sda1, 9.5G sda2
mkfs.fat /dev/sda1
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
pacman -Sy
pacman -S reflector
reflector --country 'US' -p http --sort rate --save /etc/pacman.d/mirrorlist
pacstrap /mnt base base-devel linux linux-firmware nano sudo grub efibootmgr
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
locale-gen
timedatectl set-ntp true
timedatectl set-timezone America/Chicago
passwd root
useradd -m -g users -G wheel -s /bin/bash trwnh
passwd trwnh
nano /etc/sudoers
hostnamectl set-hostname arch-vbox
grub-install /dev/sda --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -r /mnt
shutdown -r now