Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.55 KB

basic-mbr.md

File metadata and controls

42 lines (38 loc) · 1.55 KB

Arch Linux

Installation procedures

Installation procedure (basic install):
  1. Use wifi-menu to connect to network

  2. Visit https://www.archlinux.org/mirrorlist/ on another computer, generate mirrorlist

  3. Edit /etc/pacman.d/mirrorlist on the Arch computer and paste the faster servers

  4. Update package indexes: # pacman -Syyy

  5. Create root partition:

    # fdisk /dev/sda

     * o (to create an empty DOS partition table)
     * n
     * 1
     * enter
     * +50G (Storage for root)
     * w
    
  6. # mkfs.ext4 /dev/sda1

  7. # mount /dev/sda1 /mnt

  8. # pacstrap -i /mnt base base-devel

  9. # genfstab -U -p /mnt >> /mnt/etc/fstab

  10. # arch-chroot /mnt

  11. # pacman -S nano grub-bios network-manager-applet networkmanager networkmanager-openvpn wireless_tools wpa_supplicant linux-headers linux mkinitcpio

  12. # mkinitcpio -p linux

  13. # nano /etc/locale.gen (uncomment en_US.UTF-8)

  14. # locale-gen

  15. # ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

  16. # hwclock --systohc --utc

  17. # passwd (for setting root password)

  18. # grub-install --target=i386-pc --recheck /dev/sda

  19. # cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

  20. # grub-mkconfig -o /boot/grub/grub.cfg

  21. Create swap file:

    • # fallocate -l 2G /swapfile
    • # chmod 600 /swapfile
    • # mkswap /swapfile
    • # echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
  22. # exit

  23. # umount -a

  24. # reboot