Show Menu
Cheatography

Pre-In­sta­llation

Verify signature
gpg --keys­erver pgp.mi­t.edu --keys­erv­er-­options auto-k­ey-­ret­rieve --verify archl­inu­x-v­ers­ion­-x8­6_6­4.i­so.sig
Boot the live enviro­nment
The live enviro­nment can be booted from a USB flash drive, an optical disc or a network with PXE
Set the keyboard layout
ls /usr/s­har­e/k­bd/­key­map­s/­**­/*.map.gz
loadkeys us
Set the console font
ls /usr/s­har­e/k­bd/­con­sol­efonts
setfont Lat2-T­erm­inus16
Verify boot mode
ls /sys/f­irm­war­e/e­fi/­efivars
Connect to the Internet
ping archli­nux.org
Update the system clock
timeda­tectl set-ntp true
Partition the disk
fdisk -l
fdisk /dev/sda
Format the partitions
mkswap /dev/sda1
swapon /dev/sda1
mkfs.ext4 /dev/sda2
Mount the file systems
mount /dev/sda2 /mnt

Instal­lation

Select the mirrors
pacman -Sy
pacman -S pacman­-co­ntrib
curl -s "­htt­ps:­//w­ww.a­rc­hli­nux.or­g/m­irr­orl­ist­/?c­oun­try­=IN­&p­rot­oco­l=h­ttp­&p­rot­oco­l=h­ttp­s&­ip_­ver­sio­n=4­&u­se_­mir­ror­_st­atu­s=o­n" | sed -e 's/^#­Ser­ver­/Se­rver/' -e '/^#/d' | rankmi­rrors -n 5 - > /etc/p­acm­an.d­/m­irr­orlist
Install the base packages
pacstrap /mnt base base-devel
 

Config­uration

Fstab
genfstab -U /mnt >> /mnt/e­tc/­fstab
Chroot
arch-c­hroot /mnt
Time zone
ln -sf /usr/s­har­e/z­one­inf­o/A­sia­/Ko­lkata /etc/l­oca­ltime
hwclock --systohc
Locali­zation
vi /etc/l­oca­le.gen
locale-gen
echo 'LANG=­en_­US.U­TF-8' > /etc/l­oca­le.conf
echo 'KEYMA­P=us' > /etc/v­con­sol­e.conf
echo 'FONT=­Lat­2-T­erm­inus16' >> /etc/v­con­sol­e.conf
Network config­uration
echo 'local­host' > /etc/h­ostname
Initramfs
mkinitcpio -p linux
Root password
passwd
Boot loader
pacman -S grub
grub-i­nstall --targ­et=­i386-pc /dev/sda
grub-m­kconfig -o /boot/­gru­b/g­rub.cfg

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          More Cheat Sheets by misterrabinhalder

          RPM Cheat Sheet