Docsity

Arch Linux Installation Guide, Cheat Sheet of Linux skills

Toggle sidebar
bg1
#############
# Initial #
#############
1. loadkeys us
2. Internet
3. timedatectl set-ntp true
4. reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist
###############
# Partition #
###############
# UEFI (gdisk)
1. EFI - +300M
2. Filesystem
3. mkfs.fat -F32 (EFI)
4. mkfs.ext4 (Filesystem)
5. mount (Filesystem) /mnt
6. mkdir -p /mnt/boot/efi
7. mount (EFI) /mnt/boot/efi
# MBR (fdisk)
1. Swap - ramx2
2. Filesystem
3. mkswap (Swap)
4. swapon (Swap)
5. mkfs.ext4 (Filesystem)
6. mount (Filesystem) /mnt
#######################
# Base Installation #
#######################
1. pacstrap /mnt base linux linux-firmware vim intel-ucode man-db
##########################
# Configure the system #
##########################
1. genfstab -U /mnt >> /mnt/etc/fstab
2. arch-chroot /mnt
* dd if=/dev/zero of=/swapfile bs=1M count=1024 status=progress # Swapfile
* chmod 600 /swapfile
* mkswap /swapfile
* swapon /swapfile
* vim /etc/fstab
* /swapfile none swap default 0 0
3. ln -sf /usr/share/zoneinfo/Asia/Manila /etc/localtime
4. hwclock --systohc
5. vim /etc/locale.gen #en_US.UTF-8 UTF-8
6. locale.gen
7. echo "LANG=en_US.UTF-8" >> /etc/locale.conf
9. echo "KEYMAP=us" >> /etc/vconsole.conf
10. vim /etc/hostname
11. vim /etc/hosts
127.0.0.1 localhost
::1 localhost
pf2

Partial preview of the text

Download Arch Linux Installation Guide and more Cheat Sheet Linux skills in PDF only on Docsity!

Initial

#############

  1. loadkeys us
  2. Internet
  3. timedatectl set-ntp true
  4. reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist ###############

Partition

###############

UEFI (gdisk)

  1. EFI - +300M
  2. Filesystem
  3. mkfs.fat -F32 (EFI)
  4. mkfs.ext4 (Filesystem)
  5. mount (Filesystem) /mnt
  6. mkdir -p /mnt/boot/efi
  7. mount (EFI) /mnt/boot/efi

MBR (fdisk)

  1. Swap - ramx
  2. Filesystem
  3. mkswap (Swap)
  4. swapon (Swap)
  5. mkfs.ext4 (Filesystem)
  6. mount (Filesystem) /mnt #######################

Base Installation

#######################

  1. pacstrap /mnt base linux linux-firmware vim intel-ucode man-db ##########################

Configure the system

##########################

  1. genfstab -U /mnt >> /mnt/etc/fstab
  2. arch-chroot /mnt
  • dd if=/dev/zero of=/swapfile bs=1M count=1024 status=progress # Swapfile
  • chmod 600 /swapfile
  • mkswap /swapfile
  • swapon /swapfile
  • vim /etc/fstab
  • /swapfile none swap default 0 0
  1. ln -sf /usr/share/zoneinfo/Asia/Manila /etc/localtime
  2. hwclock --systohc
  3. vim /etc/locale.gen #en_US.UTF-8 UTF-
  4. locale.gen
  5. echo "LANG=en_US.UTF-8" >> /etc/locale.conf
  6. echo "KEYMAP=us" >> /etc/vconsole.conf
  7. vim /etc/hostname
  8. vim /etc/hosts 127.0.0.1 localhost ::1 localhost

127.0.1.1 hostname

  1. passwd
  2. pacman -S grub (efibootmgr) networkmanager mtools dosfstools base-devel linux-headers git reflector xdg-utils xdg-user-dirs os-prober
  3. grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader- id=GRUB
  4. grub-install --target=i386-pc (Disk)
  5. grub-mkconfig -o /boot/grub/grub.cfg
  6. systemctl enable NetworkManager
  7. useradd -mG wheel (username)
  8. passwd (username)
  9. visudo
  10. %wheel ALL=(ALL) ALL
  11. exit
  12. umount -R /mnt
  13. reboot