ls /sys/firmware/efi/efivars
Not needed if connected via wired connection
wifi-menu
Check if transmitting data
ping google.com
pacman -Syu
pacman -S reflector
reflector --latest 6 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
timedatectl set-ntp true
Use appropriate partitionig tool fdisk/cfdisk etc... Current tool cfdisk
lsblk
mkfs.ext4 /dev/sda(partition number of boot)
mkfs.ext4 /dev/sda(partition number of home)
mkfs.ext4 /dev/sda(partition number of root)
mkswap /dev/sda(partition number of swap)
swapon /dev/sda(partition number of swap)
lsblk
mount /dev/sda/(partition number of root) /mnt
cd /mnt
mkdir home boot
cd
mount dev/sda/(partition number of boot) /mnt/boot
mount dev/sda/(partition number of home) /mnt/home
lsblk
pacstrap /mnt base linux linux-firmware
pacstrap /mnt base base-devel linux linux-firmware networkmanager vim(or other editor)
pacstrap /mnt base base-devel linux linux-firmware networkmanager vim os-prober ntfs-3g
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/(choose your timezone by pressing tab) /etc/localtime
vim /etc/locale.gen
locale-gen
vim /etc/locale.conf
LANG=en-US.UTF-8
vim /etc/hostname and vim /etc/hosts
(your hostname)
type passwd
pacman -S networkmanager
systemctl enable NetworkManager
pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
useradd -m -g wheel (your username)
passwd (your username)
vim /etc/sudoers
To run specific commands without having to enter your password add the path to command after the above line in sudoers eg: %wheel ALL =(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin
After this your new user is created and you can login using your set username and password
Type exit to logout
pacman -S xorg-server xorg-xinit
You can start X by running xinit or startx will read from ~/.xinitrc
pacman -S i3-gaps i3status (or) i3blocks
Make the server start i3 when starts. In ~/..xinitrc, put: exec i3
pacman -S rxvt-unicode
pacman -S dmenu (or) rofi
Network manager (nm-applet)
Login as username (your username) and your password (password for your username)
Try pressing Ctrl + F1/2/3/... and Alt + Left/Right to move accross ttys
sudo systemctl enable SERVICENAME
sudo systemctl start SERVICENAME
Edit the file ~/.profile or ~/.bash_profile
if[[ "$(tty)" = "/dev/tty1" ]]; then
pgrep i3 || startx
fi