Last active
May 7, 2021 20:49
-
-
Save sainak/2c4844c90d021803cfd9806ced982cbd to your computer and use it in GitHub Desktop.
A gist of my adventure with arch linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Issues: | |
#1. can't browse files from kde connect devices in dolphin | |
#2. mounting a drve requires sudo | |
#and more upcoming... | |
######################################################################## | |
# step 1 install arch linux on bios/mbr partitions | |
# boot to arch.iso | |
# select install arch | |
#check internet connection | |
ip a | |
ping pypi.org | |
#synchronize the time with internet | |
timedatectl set-ntp true | |
#check partitions | |
lsblk | |
#partitions the drives | |
cfdisk /dev/sda | |
#!select lable as dos if prompted | |
#create root partition | |
#partition type>(primary) | |
#file type>(83 linux) | |
#format root partition with proper format | |
mkfs.ext4 /dev/sda1 | |
#mount partitions | |
mount /dev/sda1 /mnt | |
#install the base system | |
pacstrap /mnt base linux linux-firmware nano | |
#generate FSTAB file | |
genfstab -U /mnt >> /mnt/etc/fstab | |
cat /mnt/etc/fstab | |
#enter the installation leaving the installer | |
arch-chroot /mnt | |
#setup timezone | |
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime | |
#synchronize hwclock | |
hwclock --systohc | |
#setup locales | |
nano /etc/locale.gen # and uncomment en_US.UTF-8 UTF-8 | |
locale-gen | |
echo "LANG=en_US.UTF-8" >> /etc/locale.conf | |
#setup hostname(replace hostname with your desired name) | |
echo "hostname" >> /etc/hostname | |
#setup hosts file (hostname same as above) | |
nano /etc/hosts #and type the following | |
127.0.0.1 localhost | |
::1 localhost | |
127.0.0.1 hostname.localdomain hostname | |
#install necessary packages | |
pacman -S grub networkmanager network-manager-applet \ | |
dialog wireless_tools wpa_supplicant os-prober mtools \ | |
dosfstools base-devel linux-headers fish openssh | |
#setup bootloader | |
grub-install --target=i386-pc /dev/sda | |
#! if you see a warning do this | |
dd if=/dev/zero of=/dev/sda bs=512 count=1 seek=32 | |
#hit enter and run the previous command again | |
#generate grub config file | |
grub-mkconfig -o /boot/grub/grub.cfg | |
#create password for root | |
passwd | |
#exit installation | |
exit | |
umount -R /mnt | |
reboot | |
##################################################################### | |
#post innstallation | |
#activate internet | |
systemctl start NetworkManager | |
#enable internet | |
systemctl enable NetworkManager | |
#install graphics drivers | |
pacman -S xf86-video-intel | |
#create new user | |
useradd -m -G wheel -s /bin/fish username | |
passwd username | |
#give sudo access to above user | |
EDITOR=nano visudo #uncomment %wheel ALL=(ALL) ALL | |
#create a swapfile | |
fallocate -l 4G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
nano /etc/fstab #and add the line below | |
/swapfile none swap defaults 0 0 | |
#install display server audio driver | |
pacman -S xorg xorg-xinit pulseaudio pulseaudio-alsa | |
#install Desktop Manager | |
pacman -S sddm | |
systemctl enable sddm | |
#install plasma | |
pacman -S plasma | |
#install basic apps | |
pacman -S firefox kate ark gwenview spectacle vlc kdeconnect git kcal mosh | |
#install bluetooth drivers | |
pacman -S bluez bluez-utils | |
#enable bluetooth | |
systemctl enable bluetooth | |
reboot | |
############################################################ | |
#booting to Plasma | |
#install yay | |
sudo git clone https://aur.archlinux.org/yay.git | |
cd yay && makepkg -si | |
#setup wifi | |
yay -S b43-firmware-classic | |
reboot | |
#optimize mirrorlist | |
yay -S reflector | |
sudo reflector --latest 20 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist | |
############################################################ | |
#optional packages | |
yay -S filelight krfb kgpg krename inkscape ksystemlog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment