Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. Install Arch Linux
  2. ==================
  3.  
  4. Check the system is using EFI:
  5.  
  6. ls /sys/firmware/efi
  7.  
  8. Update the system clock:
  9.  
  10. timedatectl set-ntp true
  11.  
  12. Check the internet connection is working:
  13.  
  14. ping -c 3 archlinux.org
  15.  
  16. Setup the Partitions
  17. --------------------
  18.  
  19. Lookup the drive to partition:
  20.  
  21. fdisk -l
  22.  
  23. Create the partitions:
  24.  
  25. gdisk /dev/sda
  26.  
  27. The partitions to create are:
  28.  
  29. 1. `512MiB`, `EF00` EFI boot partition.
  30. 2. `16GiB`, `8200` SWAP partition.
  31. 3. Use the remaining space for the root partition.
  32.  
  33. Format the partitions:
  34.  
  35. mkfs.vfat /dev/sda1
  36. mkswap /dev/sda2
  37. mkfs.ext4 /dev/sda3
  38.  
  39. Mount the partitions:
  40.  
  41. mount /dev/sda3 /mnt
  42. mkdir /mnt/boot
  43. mount /dev/sda1 /mnt/boot
  44.  
  45. Install the Base System
  46. -----------------------
  47.  
  48. Modify the mirror list to download from UK servers:
  49.  
  50. vim /etc/pacman.d/mirrorlist
  51.  
  52. Install the base system:
  53.  
  54. pacstrap -i /mnt
  55.  
  56. Configure the System
  57. --------------------
  58.  
  59. Generate the fstab:
  60.  
  61. genfstab -U /mnt >> /mnt/etc/fstab
  62.  
  63. Add `discard` to the root partition for trim support:
  64.  
  65. vim /mnt/etc/fstab
  66.  
  67. Change root into the new system:
  68.  
  69. arch-chroot /mnt
  70.  
  71. Install vim:
  72.  
  73. pacman -S vim
  74.  
  75. Set the system locale in `/etc/locale.gen` to:
  76.  
  77. en_GB.UTF-8 UTF-8
  78. en_US.UTF-8 UTF-8
  79.  
  80. Generate the locales:
  81.  
  82. locale-gen
  83.  
  84. Make English GB the default locale:
  85.  
  86. echo LANG=en_GB.UTF-8 > /etc/locale.conf
  87.  
  88. Set the timezone and sync the clock:
  89.  
  90. ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
  91. hwclock --systohc --utc
  92.  
  93. Set the hostname:
  94.  
  95. echo arch > /etc/hostname
  96.  
  97. Add the hostname to `/etc/hosts` (add the hostname to the end of each entry):
  98.  
  99. vim /etc/hosts
  100.  
  101. Set the root password:
  102.  
  103. passwd
  104.  
  105. Setup the Boot Loader
  106. ---------------------
  107.  
  108. Install the boot loader:
  109.  
  110. bootctl install
  111.  
  112. Set the `/boot/loader/loader.conf` to:
  113.  
  114. default arch
  115. timeout 3
  116.  
  117. Set the `/boot/loader/entries/arch.conf` to:
  118.  
  119. title Arch Linux
  120. linux /vmlinuz-linux
  121. initrd /initramfs-linux.img
  122. options root=PARTUUID=(you can find the PARTUUID for the root partition from blkid) rw
  123.  
  124. Exit and restart the system and _hope_ it boots up okay:
  125.  
  126. exit
  127. umount -R /mnt
  128. reboot
  129.  
  130. Post Installation
  131. =================
  132.  
  133. Setup a new user:
  134.  
  135. useradd -m -G wheel -s /bin/bash matt
  136. passwd matt
  137.  
  138. Install sudo:
  139.  
  140. pacman -S sudo
  141.  
  142. Add user to sudoers:
  143.  
  144. vim /etc/sudoers
  145.  
  146. Install Drivers and Setup Hardware
  147. ----------------------------------
  148.  
  149. ?
  150.  
  151. Install i3 Window Manager
  152. -------------------------
  153.  
  154. pacman -S i3 xorg-server xorg-xinit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement