Getting Started with Arch Linux 03 - Finishing the Installation
Jump to navigation
Jump to search
Overview
In the third video of the Arch Linux series, we wrap up the installation.
Relevant Links |
---|
Original Video |
Commands Used in this Video
List mounted devices
mount |grep sda
Generate the fstab file
genfstab -U -p /mnt >> /mnt/etc/fstab
Show the contents of the /etc/fstab file
cat /mnt/etc/fstab
Activate chroot environment
arch-chroot /mnt
Install additional required packages
pacman -S base-devel grub efibootmgr dosfstools os-prober mtools linux-headers network-manager-applet networkmanager wireless_tools wpa_supplicant dialog
Optional packages:
openssh linux-lts linux-lts-headers
Edit the locale file
nano /etc/locale.gen
Uncomment your locale (en_US.UTF-8 UTF-8 in my case, uncomment whichever one matches your locale
Generate the locale
locale-gen
Optional: Enable OpenSSH (if you intend on using it)
systemctl enable sshd
Make EFI boot directory
mkdir /boot/EFI
Mount boot partition
mount /dev/sda /boot/EFI
Install the Grub bootloader
grub-install --target=x86_64-efi --bootloader-id=grub-uefi --recheck
Copy grub.mo file
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
Build Grub configuration
grub-mkconfig -o /boot/grub/grub.cfg
Set up swap
fallocate -l 2G /swapfile chmod 600 /swapfile mkswap /swapfile echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab
Check fstab file so far
cat /etc/fstab
Unmount filesystems
umount -a
Reboot the machine
reboot