- Published on
Arch Linux Installation
- Authors
- Name
- Zairyl Zafra
- @zrylzfra
Installing Arch Linux: A Step by Step Guide
Install
Go to Arch Linux , download the ISO file and boot to your system.
See the Full Installation guide on Arch Linux Wiki for more info.
- Ping to see if you have internet connection
ping -c 3 google.com
- Setup time date
timedatectl set-ntp true
- Check time date
timedatectl set-ntp status
- List all disk
fdisk -l
- Set drive partition on /dev/sdX
fdisk /dev/sda
or
- You can use
cfdisk
for partitioning
cfdisk /dev/sda
When all set
write
the partitionMake fat32 partition on /dev/sdX
mkfs.fat -F32 /dev/sda1
- Create Swap partition on /dev/sdX
mkswap /dev/sda2
- Enable Swap on /dev/sdX2
swapon /dev/sda2
- Make ext4 partition on /dev/sdX3
mkfs.ext4 /dev/sda3
- Mount the partition on /dev/sdX3
mount /dev/sda3 /mnt
- Install base package, kernel and firmware
pacstrap /mnt base linux linux-firmware
- Generate
fstab
genfstab -U /mnt >> /mnt/etc/fstab
- Change root
arch-chroot /mnt
- List timezone
ls /usr/share/zoneinfo/
- Set timezone
ln -sf /usr/share/zoneinfo/Asia/Manila /etc/localtime
- Generate config for hardware clock
hwclock --systohc
- Install
nano
pacman -S nano
- Uncomment
en_PH.UTF-8 UTF-8
on /etc/locale.gen
nano /etc/locale.gen
- Generate locale
locale-gen
- Create hostname myhostname on /etc/hostname
nano /etc/hostname
myhostname
- Create Hosts myhostname on /etc/hosts
nano /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 myhostname.localdomain myhostname
- Edit root password
passwd
- Add user
useradd -m username
- Create password on user
passwd username
- Add wheel groups
usermod -aG wheel,audio,video,optical,storage username
- Install
sudo
pacman -S sudo
- Edit sudo uncomment
%wheel ALL=(ALL) ALL
EDITOR=nano visudo
# %wheel ALL=(ALL) ALL
- Install grub package
pacman -S grub
- Install needed packages on UFEI
pacman -S efibootmgr dosfstool os-prober mtools
- Make directory
mkdir /boot/EFI
- Mount directory
mount /dev/sdX1 /boot/EFI
- Install grub
grub-install --target=X86-64-efi --bootloader-id=grub_uefi --recheck
then do
grubmkconfig -o /boot/grub/grub.cfg
- Add needed packages
pacman -S networkmanager vim git
- Enable
networkmanager
systemctl enable NetworkManager
- Exit chroot
exit
- Unmount
umount -l /mnt
- Shutdown
shutdown now
- Installing Desktop Environment (KDE)
sudo pacman -Syu
sudo pacman -xorg
sudo pacman -S plasma-meta kate dolphin firefox
Now you have newly installed Arch Linux. I use arch BTW!