How To Install Arch Linux 2021 | Arch Linux Full Installation | Arch Linux Installation Guide 2021
In this video, we walk through all the steps required to get a fully functional Arch Linux system installed
Complete guide to Arch Linux installation in 2021. Arch Linux will be installed in the BIOS mode with MBR partition table and minimal XFCE desktop.
Arch Linux is an awesome distribution that gives you full control of your installation, and the configuration possibilities are endless. The initial installation can be a challenge for some. With this video as your guide you'll have a finished, bootable install that's ready to be configured just as you like it.
So Follow Step By Step Guide:
Note: Use iwctl to Connect to Wi-Fi
iwctl
station wlan0 scan
station wlan0 connect YourWiFiName
Then Hit Enter and Type Your Password and Connect to Wi-Fi.
Step-1:
Create a Bootable Arch Pendrive
You can use Rufus(on Windows) or etcher(on Linux) to Create Bootable Pendrive.
Or Use dd command to create Bootable Pendrive type following Command
dd if=path/to/iso of=/dev/sdX status=progress
Replace X with your Respective Letter.
Then insert the Bootable Pendrive Medium into your PC & Select Pendrive from BIOS & Boot into Arch.
Step-2:
Format Partition (Create New Partition and Format it)
Use fdisk, gdisk or cfdisk to Create Partition.
lsblkfdisk /dev/sdX
For UEFI:
For UEFI I will create 4 Partition.
Type lsblk to see available disks on computer.
Boot Partition - /dev/sda1 (512 MB)- EFI
Root Partition - /dev/sda2 (50 GB) - ext4
Swap Partition - /dev/sda3 (4 GB) - swap
Home Partition - /dev/sda4 (Rest of The Space) - ext4
Then type lsblk to see all the Partitions.
Now lets Format Partitions
mkfs.fat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
mkswap /dev/sda3
swapon /dev/sda3
mkfs.ext4 /dev/sda4
Now Mount Partitions
Mount Root Partition into /mnt
mount /dev/sda2 /mnt
Crate Home Folder Inside mnt to Mount home
mkdir /mnt/home
mount /dev/sda4 /mnt/home
Now Create EFI Directory & Mount Boot Partition
mkdir -p /mnt/boot/EFI
mount /dev/sda1 /mnt/boot/EFI
For MBR (BIOS)
For MBR I will Create 4 Partition.
Type lsblk to Verify Correct Disk.
Boot Partition - /dev/sda1 (512 MB)- ext4
Root Partition - /dev/sda2 (50 GB) - ext4
Swap Partition - /dev/sda3 (4 GB) - swap
Home Partition - /dev/sda4 (Rest of The Space) - ext4
The Easiest Way to Create Partition is by using cfdisk.
Now lets Format Partitions
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
mkswap /dev/sda3
swapon /dev/sda3
mkfs.ext4 /dev/sda4
Now Mount Partitions
Mount Root Partition into /mnt
mount /dev/sda2 /mnt
Crate Home Folder Inside mnt to Mount home
mkdir /mnt/home
mount /dev/sda4 /mnt/home
Now Create EFI Directory & Mount Boot Partition
mkdir /mnt/boot/
mount /dev/sda1 /mnt/boot/
Step -3
Install Base System
pacstrap /mnt base base-devel linux linux-firmware vim nano git
If you have Older Machine then use linux-lts instead of linux Kernel.
I will use vim as my Text Editor.
base-devel and git Packages to Compiling AUR Packages.
If You Want To Install YAY Then Follow This Tutorial.
Step-4:
Generate fstab
To Generate fstab use Following Command
genfstab -U /mnt >> /mnt/etc/fstab
-U:- UUID Based fstab
To View fstab Use Following Command
cat /mnt/etc/fstab
Step-5:
Change Root to New Partition
arch-chroot /mnt
Step-6:
Set Time,Date and Locale
Set Time:-
timedatectl set-ntp true
ln -sf /usr/share/zoneinfo/TypeYour/Zone /etc/localtime
hwclock -systohc
date
Set Locale:-
vim /etc/locale.gen
Uncomment The Line en_US.UTF-8
Save and Exit vim
Create locale.conf File
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen
Step-7:
Create Hostname & Edit Host File
echo "YourHostName" > /etc/hostname
Edit Hosts File
vim /etc/hosts
Type following
127.0.0.1 localhost
::1 localhost
127.0.1.1 YourHostName.localdomain YourHostName
Save and Exit vim
Step-8:
Create Root Password & Add New User
passwd
Add New User
useradd -mG wheel,audio,video,optical,storage UserName
Password for UserName
passwd UserName
Now Give Sudo Access to UserName
EDITOR=vim visudo
Uncomment the Line Consist of
%wheel ALL=(ALL) ALL
Add Full Name to UserName
usermod -c "Type Your Full Name" UserName
Step-9:
Install Bootloader
For UEFI:- First Install Necessary Packages
pacman -S grub efibootmgr dosfstools mtools ntfs-3g os-prober gvfs gvfs-mtp
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUB --removable -recheck
For MBR:- First Install Necessary Packages
pacman -S grub ntfs-3g os-prober gvfs gvfs-mtp
grub-install /dev/sdx --removable --recheck
Step-10:
Generate Grub Config file
grub-mkconfig -o /boot/grub/grub.cfg
Step-11:
Install Network Manager
pacman -S networkmanager network-manager-applet
systemctl enable NetworkManager
Step -12:
Install Desktop Environment:
I will Install XFCE as My Desktop Environment
To Customize XFCE Follow This Tutorial
pacman -S xorg xorg-server lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings xfce4 xfce4-goodies pulseaudio pulseaudio-alsa pavucontrol
systemctl enable lightdm.service
Step-13:
Unmount & Reboot
exit
umount -R /mnt
reboot
Step-14:
Now You Successfully Installed Arch Linux. Feel Free to Leave a Comment.
Now you can Proudly Say "I use Arch BTW"
Note:- If you want to connect to internet using terminal type nmtui.
Timestamp:
00:00 Create New Partition for Arch Linux Installation
00:30 Format Newly Created Patition
00:55 Mount Root Partition into /mnt Directory
01:05 Create Home Folder and Mount Home Partition
01:15 Create Boot Folder and Mount Boot Partition
01:25 Now Install Base System On /mnt Directory
02:10 Generate fstab on /mnt/etc/fstab
02:24 Change Root into the Newly Installed System
02:35 Set Date and Time
03:06 Sync Hardware Clock to System Clock
03:15 Set Locale by Editing locale.conf File
03:47 Create locale.conf File and Generate locale-gen
04:10 Create Hostname
04:28 Create Host File by Editing /etc/hosts
04:50 Now Create Root Password
05:00 Add New Admin User
05:16 Now Set Password for New User
05:30 Give Sudo Access to New User by Editing visudo File
05:54 Add Full Name of New User
06:12 Install Bootloader on Arch Linux (This Tutorial is Only for MBR)
06:35 Install grub On Partition
07:18 Generate Grub Config File
07:41 Install and Enable Network Manager
08:15 Install Display Server
08:42 Install Display Manager
09:12 Install Desktop Environment I will use XFCE in This Video
09:21 Enable lightdm Display Manager
09:31 Install pulseaudio and pavucontrol for Audio
09:52 Install Some Essential Packages
10:09 Unmount and Reboot
10:32 Now You Successfully Installed Arch on Your Computer
---------------------------------------
Music Credit
🔻
"Sappheiros - Dawn" is under a Creative Commons license (CC BY 3.0)
Music promoted by BreakingCopyright: http://bit.ly/2OBe00v
🔺
Tags:
#ArchLinux
#Linux
#LinuxPath
#archlinuxinstall
#archlinux2021
#archlinuxinstall2021
How to install Arch Linux Easy Way
How can You Install Arch Linux 2021
Arch Linux for Beginner 2021
Arch Linux Installation 2021
Arch Linux for New User 2021
Comments
Post a Comment