ip addr show
iwctl
device list
Note: If you don’t see a Wifi device there, and you’re sure you do have WiFi capability, you shouldn’t proceed any further with installing Arch. You’ll want to check hardware compatibility with your Wifi card and Linux, and then resume installation at a later date.
station <device> scan
station <device> get-networks
station <device> connect <wireless-network-name>
fdisk -l
fdisk /dev/<DEVICE> (substitute <DEVICE> for your device name, example: /dev/sda or /dev/nvme0n1)
p
g (to create an empty GPT partition table)
n
enter
enter
+500M
t
1 (for EFI)
n
enter
enter
enter
t
enter
43 (for Linux LVM)
p
w
mkfs.fat -F32 /dev/sda1 (or whatever the device name of the first partition is)
pvcreate --dataalignment 1m /dev/sda2 (or whatever the device name is of the second partition)
vgcreate volgroup0 /dev/sda2 (or whatever the device name is of the second partition)
lvcreate -L 30GB volgroup0 -n lv_root
lvcreate -l 100%FREE volgroup0 -n lv_home (or use something like "-L 250GB" if you want to make the volume size lower)
modprobe dm_mod
vgscan
vgchange -ay
mkfs.ext4 /dev/volgroup0/lv_root
mount /dev/volgroup0/lv_root /mnt
mkfs.ext4 /dev/volgroup0/lv_home
mkdir /mnt/home
mount /dev/volgroup0/lv_home /mnt/home
mkdir /mnt/etc
genfstab -U -p /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
pacstrap -i /mnt base
arch-chroot /mnt
pacman -S linux linux-headers
pacman -S linux-lts linux-lts-headers
pacman -S linux linux-lts linux-headers linux-lts-headers
pacman -S nano
pacman -S base-devel openssh
systemctl enable sshd
pacman -S networkmanager wpa_supplicant wireless_tools netctl
pacman -S dialog
systemctl enable NetworkManager
pacman -S lvm2
nano /etc/mkinitcpio.conf
It should look similar to the following (don’t copy this line in case they change it, but just add the required new items):
mkinitcpio -p linux
mkinitcpio -p linux-lts
nano /etc/locale.gen (uncomment en_US.UTF-8)
locale-gen
passwd
useradd -m -g users -G wheel <username>
passwd <username>
pacman -S sudo
EDITOR=nano visudo
#######Uncomment:
%wheel ALL=(ALL) ALL
GRUB is the bootloader that was used in the video. Follow ONE of the following sections, depending on whether you are using UEFI, encryption, etc
pacman -S grub efibootmgr dosfstools os-prober mtools
mkdir /boot/EFI
mount /dev/<DEVICE PARTITION 1> /boot/EFI
grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
mkdir /boot/grub/locale
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
grub-mkconfig -o /boot/grub/grub.cfg
cat /etc/fstab
exit
umount -a
reboot
dd if=/dev/zero of=/swapfile bs=1M count=2048 status=progress
chmod 600 /swapfile
mkswap /swapfile
cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab
timedatectl list-timezones
timedatectl set-timezone America/Detroit
systemctl enable systemd-timesyncd
hostnamectl set-hostname myhostname
nano /etc/hosts
####### Example lines to add:
127.0.0.1 localhost
127.0.1.1 (myhostname)
Install CPU Microde files (AMD CPU)
Install CPU Microde files (Intel CPU)
pacman -S intel-ucode
Install Xorg if you plan on having a GUI
pacman -S xorg-server
Install 3D support for Intel or AMD graphics If you have an Intel or AMD GPU, install the mesa package:
pacman -S mesa
Install Nvidia Driver packages if you have an Nvidia GPU
pacman -S nvidia nvidia-utils
Note: Install nvidia-lts if you’ve installed the LTS kernel:
pacman -S nvidia-lts
Install Virtualbox guest packages If you’re installing Arch inside a Virtualbox virtual machine, install these packages:
pacman -S virtualbox-guest-utils xf86-video-vmware
Installing a Desktop Environment GNOME To install GNOME, install the gnome package:
sudo pacman -S gnome
sudo pacman -S gnome-tweaks
To enable the login screen to appear automatically at boot, run:
sudo systemctl enable gdm
Note: At first login, one or more GNOME apps may fail to start. You might see a spinning circle or equivelant, and then the app never appears. To prevent this situation, you should first open GNOME’s settings, then “Region and Language”, and set your info there