Skip to content

Instantly share code, notes, and snippets.

@crazyoptimist
Last active April 10, 2024 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyoptimist/d5f065631853dcadc35ef68d6cf2e8d5 to your computer and use it in GitHub Desktop.
Save crazyoptimist/d5f065631853dcadc35ef68d6cf2e8d5 to your computer and use it in GitHub Desktop.
Arch Linux w/ KDE Installation Note by crazy0ptimist

Alright, here you go ...

#check if network is connected
ip link
ping google.com
#sync time
timedatectl set-ntp true
#check partition info
fdisk -l
#partitioning your disk
cfdisk

Partitioning layout example

[SWAP]    /dev/sda2   Linux swap
/mnt    /dev/sda1*    Linux

Go ahead like so:

lsblk #check your disk status
#format the partitions
mkfs.ext4 /dev/sda1
#enable swap partition
mkswap /dev/sda2
swapon /dev/sda2
#mount the file system
mount /dev/sda1 /mnt
#select the mirrors
vim /etc/pacman.d/mirrorlist
#install main packages
pacstrap /mnt base base-devel linux linux-firmware vim
#configure the system
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
hwclock --systohc
vim /etc/locale.gen

Uncomment this line: en_US.UTF-8 UTF-8

locale-gen
vim /etc/locale.conf

Add this line: LANG=en_US.UTF-8

vim /etc/hostname
#put your hostname e.g. `arch-netfan`
vim /etc/hosts

Add these lines:

127.0.0.1	localhost
::1		localhost
127.0.0.1	arch-netfan.localdomain	arch-netfan

Keep going like so:

pacman -S networkmanager grub
systemctl enable NetworkManager
#configure grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
#add a non-root user and make it a sudoer
useradd netfan  #substitute `netfan` with your own user name
passwd          #set root password
passwd netfan   #set non-root user password
pacman -S sudo  #optional coz you have base-devel installed
usermod -aG wheel,video,audio,optical,storage netfan
mkdir /home/netfan && chown -R netfan:netfan /home/netfan #user directory
vim /etc/sudoers

Uncomment this line: %wheel ALL=(ALL) ALL

Eject your installation media and reboot your machine to install GUI

sudo pacman -S xorg                           #all by default is good to go
sudo pacman -S plasma-meta kde-applications   #also all by default
sudo systemctl enable sddm                    #desktop manager
reboot -h now

#Boom! You got the famous Arch + KDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment