Skip to content

Instantly share code, notes, and snippets.

@jamal919
Created February 18, 2018 08:55
Show Gist options
  • Save jamal919/2537b59f17bae733703d6d8c33e13570 to your computer and use it in GitHub Desktop.
Save jamal919/2537b59f17bae733703d6d8c33e13570 to your computer and use it in GitHub Desktop.
Arch Linux Installation Guide
			ArchLinux Install
			=================
  1. Disk Management ===================

  2. fdisk -l

  3. cfdisk /dev/sda -> see which drive to select from fdisk -l and create proper partitions.

  4. mkfs.ext4 /dev/sda2

  5. mount /dev/sda2 /mnt

  6. mkswap /dev/sda1

  7. swapon /dev/sda1

  8. Install ArchLinux ==================== Internet connection is required at this step. Use wifi-menu command for WiFi connection. DHCP is automatically connected, so no problem with that.

  9. pacstrap /mnt base base-devel

  10. Configuring ==============

  11. arch-chroot /mnt

  12. passwd -> set root password

  13. nano /etc/locale.gen -> CTRL-O, CTRL-X for save

  14. locale-gen

  15. cd /usr/share/zoneinfo -> cd, cd, cd as required

  16. ln -s /usr/share/zoneinfo/... /etc/localtime

  17. echo hostname_you_want > /etc/hostname

  18. GRUB install ===============

  19. pacman -S grub-bios

  20. grub-install /dev/sda

  21. mkinitcpio -p linux -> Set the hardware info

  22. grub-mkconfig -o /boot/grub/grub.cfg

  23. exit

  24. Filesystem ==============

  25. genfstab /mnt >> /mnt/etc/fstab

  26. umount /mnt

  27. reboot

  28. User Setup ==============

  29. Disk Management ===================

  30. fdisk -l

  31. cfdisk /dev/sda -> see which drive to select from fdisk -l and create proper partitions.

  32. mkfs.ext4 /dev/sda2

  33. mount /dev/sda2 /mnt

  34. mkswap /dev/sda1

  35. swapon /dev/sda1

  36. Install ArchLinux ==================== Internet connection is required at this step. Use wifi-menu command for WiFi connection. DHCP is automatically connected, so no problem with that.

  37. pacstrap /mnt base base-devel

  38. Configuring ==============

  39. arch-chroot /mnt

  40. passwd -> set root password

  41. nano /etc/locale.gen -> CTRL-O, CTRL-X for save

  42. locale-gen

  43. cd /usr/share/zoneinfo -> cd, cd, cd as required

  44. ln -s /usr/share/zoneinfo/... /etc/localtime

  45. echo hostname_you_want > /etc/hostname

  46. GRUB install ===============

  47. pacman -S grub-bios

  48. grub-install /dev/sda

  49. mkinitcpio -p linux -> Set the hardware info

  50. grub-mkconfig -o /boot/grub/grub.cfg

  51. exit

  52. Filesystem ==============

  53. genfstab /mnt >> /mnt/etc/fstab

  54. umount /mnt

  55. reboot

  56. User Setup ==============

  57. useradd -m -g users -s /bin/bash username

  58. passwd username

  59. visudo -> Add as root for sudo permission

  60. Display Server, Graphics Driver, Display Manager ===================================================

  61. pacman -S xorg-server xorg-server-utils xorg-xinit

  62. pacman -S xf86-video-intel/xf86-video-vesa or both

  63. pacman -S sddm/kdm/gdm/lxdm/lightdm/slim/xorg-xdm

  64. Desktop Environment =======================

  65. pacman -S plasma/cinnamon/gnome/lxde/mate/xfce4/lxde-gtk3/mate-gtk3

  66. pacman -S plasma-applications/gnome-extra/xfce4-goodies

  67. systemctl enable gdm

  68. reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment