Cheatography
https://cheatography.com
Pre-Installation
Verify signature gpg --keyserver pgp.mit.edu --keyserver-options auto-key-retrieve --verify archlinux-version-x86_64.iso.sig
|
Boot the live environment The live environment can be booted from a USB flash drive, an optical disc or a network with PXE
|
Set the keyboard layout ls /usr/share/kbd/keymaps/**/*.map.gz loadkeys us
|
Set the console font ls /usr/share/kbd/consolefonts setfont Lat2-Terminus16
|
Verify boot mode ls /sys/firmware/efi/efivars
|
Connect to the Internet ping archlinux.org
|
Update the system clock timedatectl 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
|
Installation
Select the mirrors pacman -Sy pacman -S pacman-contrib curl -s "https://www.archlinux.org/mirrorlist/?country=IN&protocol=http&protocol=https&ip_version=4&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 - > /etc/pacman.d/mirrorlist
|
Install the base packages pacstrap /mnt base base-devel
|
|
|
Configuration
Fstab genfstab -U /mnt >> /mnt/etc/fstab
|
Chroot arch-chroot /mnt
|
Time zone ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime hwclock --systohc
|
Localization vi /etc/locale.gen locale-gen echo 'LANG=en_US.UTF-8' > /etc/locale.conf echo 'KEYMAP=us' > /etc/vconsole.conf echo 'FONT=Lat2-Terminus16' >> /etc/vconsole.conf
|
Network configuration echo 'localhost' > /etc/hostname
|
Initramfs mkinitcpio -p linux
|
Root password passwd
|
Boot loader pacman -S grub grub-install --target=i386-pc /dev/sda grub-mkconfig -o /boot/grub/grub.cfg
|
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
More Cheat Sheets by misterrabinhalder