Last active
July 24, 2020 10:14
-
-
Save merothh/5a4f6c9c691e0249ac6d3df70732d6c9 to your computer and use it in GitHub Desktop.
pancakes | listing of commands i use to install arch on my laptop. (reference purposes)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pvcreate /dev/sdb2 | |
pvcreate /dev/sda1 | |
vgcreate arch-ssd /dev/sdb2 | |
vgcreate arch-hdd /dev/sda1 | |
lvcreate -L 16G arch-ssd -n arch-swap | |
lvcreate -l 100%FREE arch-ssd -n arch-root | |
lvcreate -l 100%FREE arch-hdd -n arch-home | |
mkswap /dev/arch-ssd/arch-swap | |
swapon /dev/arch-ssd/arch-swap | |
mkfs.fat -F32 /dev/sdb1 | |
mkfs.ext4 /dev/arch-ssd/arch-root | |
mkfs.ext4 /dev/arch-hdd/arch-home | |
mount /dev/arch-ssd/arch-root /mnt | |
mkdir /mnt/{home,boot} | |
mount /dev/sdb1 /mnt/boot | |
mount /dev/arch-hdd/arch-home /mnt/home | |
iwctl --passphrase yourpassword station wlan0 connect yourssid | |
pacman -Sy reflector | |
reflector --latest 200 --protocol http --protocol https --sort rate --verbose --save /etc/pacman.d/mirrorlist | |
pacstrap -i /mnt base base-devel | |
genfstab -U -p /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt | |
pacman -S intel-ucode linux linux-lts linux-headers linux-lts-headers linux-firmware lvm2 networkmanager openssh vi vim | |
sed '/^HOOKS=/!b;s/block/block lvm2/' /etc/mkinitcpio.conf | |
mkinitcpio -p linux && mkinitcpio -p linux-lts | |
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8/' /etc/locale.gen | |
locale-gen | |
localectl set-locale LANG=en_US.UTF-8 | |
bootctl install | |
echo -e "\ | |
title Arch Linux (linux)\n\ | |
linux /vmlinuz-linux\n\ | |
initrd /intel-ucode.img\n\ | |
initrd /initramfs-linux.img\ | |
" > /boot/loader/entries/arch.conf | |
echo "options root=/dev/arch-ssd/arch-root rw quiet" >> /boot/loader/entries/arch.conf | |
cp /boot/loader/entries/arch.conf /boot/loader/entries/arch-lts.conf | |
sed -i -e 's/linux/linux-lts/g' -e 's/^linux-lts/linux/' /boot/loader/entries/arch-lts.conf | |
sed -i 's/.*default.*/default arch.conf/' /boot/loader/loader.conf | |
sed -i 's/.*timeout.*/timeout 2/' /boot/loader/loader.conf | |
passwd | |
systemctl enable sshd NetworkManager | |
exit | |
umount -a | |
reboot | |
nmcli device wifi connect SSID PASSWORD | |
pacman -S xf86-video-intel xorg-server xorg-xinit mesa | |
sed -i 's/#Color/Color/' /etc/pacman.conf | |
visudo | |
useradd -mG wheel merothh | |
passwd merothh | |
hostnamectl set-hostname pancakes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment