Last active
January 14, 2020 07:14
-
-
Save reecefowell/65607c120e4776d0281493ebf624addf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
nano /etc/wpa_supplicant/wpa_supplicant.conf | |
ctrl_interface=/run/wpa_supplicant | |
update_config=1 | |
#https://wiki.archlinux.org/index.php/WPA_supplicant | |
#wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf | |
#wpa_cli | |
wpa_supplicant -B -i wlan0 -c <(wpa_passphrase SSID PASSPHRASE) | |
dhcpcd wlan0 | |
ping archlinux.org | |
timedatectl set-ntp true | |
cfdisk /dev/nvme0n1 | |
mkfs.fat -F32 /dev/nvme0n1p3 | |
mkfs.ext4 /dev/nvme0n1p4 | |
mount /dev/nvme0n1p4 /mnt | |
mkdir /mnt/efi | |
mount /dev/nvme0n1p3 /mnt/efi | |
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak | |
curl -s "https://www.archlinux.org/mirrorlist/?country=GB&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' > /etc/pacman.d/mirrorlist | |
pacstrap /mnt base base-devel linux linux-firmware sudo man-db man-pages texinfo nano htop wpa_supplicant dhcpcd which efibootmgr grub reflector | |
genfstab -U /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt | |
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime | |
hwclock --systohc | |
locale-gen | |
echo LANG=en_US.UTF-8 > /etc/locale.conf | |
echo reece-bp-desktop > /etc/hostname | |
echo 127.0.0.1 localhost >> /etc/hosts | |
echo ::1 localhost >> /etc/hosts | |
reflector --verbose --latest 100 --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist --country GB | |
pacman -Syu | |
passwd | |
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB | |
grub-mkconfig -o /boot/grub/grub.cfg | |
lsblk -o UUID /dev/sda3 >> /etc/fstab | |
# edit file so that last line looks like: | |
UUID=209e09c5-c678-4b32-abe8-8142f9cd50ba /home ext4 defaults 0 1 | |
Set last digit to last order of volumes to be mounted | |
# Setup a new user | |
useradd -m -g users -G wheel -s /bin/bash reece | |
passwd reece | |
EDITOR=nano visudo | |
%wheel ALL=(ALL) ALL | |
# Install graphics drivers | |
pacman -Ss xf86-video | |
# Install open source Nvidia drivers | |
pacman -S xf86-video-nouveau | |
systemctl start dhcpcd | |
systemctl enable dhcpcd | |
# Setup xorg | |
https://wiki.archlinux.org/index.php/Xorg | |
pacman -S xorg-server plasma-desktop konsole | |
pacman -S plastma plasma-nm packagekit-qt5 sddm sddm-kcm konsole firefox dolphin archey3 | |
systemctl enable sddm | |
systemctl enable NetworkManager | |
Reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment