Guest User

Untitled

a guest
Sep 14th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. # High-level
  2.  
  3. 1. internet
  4. 2. partition
  5. 3. filesystem
  6. 4. mount
  7. 5. mirrors
  8. 6. pacstrap
  9. 7. fstab
  10. 8. chroot
  11. 9. time
  12. 10. locale
  13. 11. hostname
  14. 12. password
  15. 13. bootloader
  16. 14. microcode
  17. 15. reboot
  18.  
  19. # Low-level
  20.  
  21. ## Internet
  22.  
  23. ```bash
  24. wifi-menu
  25. ```
  26.  
  27. ## Partition
  28.  
  29. ```bash
  30. fstab /dev/sda
  31. ```
  32.  
  33. 1. `g` makes new table
  34. 2. `n` 550M boot partition `/dev/sda1`
  35. 3. `t` set boot partition type to ESP
  36. 4. `n` root partition `/dev/sda2`
  37. 5. `w` saves changes
  38.  
  39. ## Filesystem
  40.  
  41. ```bash
  42. mkfs.ext4 /dev/sda2
  43. mkfs.fat -F32 /dev/sda1
  44. ```
  45.  
  46. ## Mount
  47.  
  48. ```bash
  49. mnt /dev/sda2 /mnt
  50. mkdir -p /mnt/boot
  51. sudo mnt /dev/sda1 /mnt/boot
  52. ```
  53.  
  54. ## Mirrors
  55.  
  56. ```bash
  57. vi /etc/pacman.d/mirrorlist
  58. ```
  59.  
  60. Find a mirror near you and put it on top of the list.
  61.  
  62. ## Pacstrap
  63.  
  64. ```bash
  65. pacstrap /mnt base networkmanager
  66. ```
  67.  
  68. ## Fstab
  69.  
  70. ```bash
  71. genfstab -U /mnt >> /mnt/etc/fstab
  72. ```
  73.  
  74. ## Chroot
  75.  
  76. ```bash
  77. arch-chroot /mnt
  78. ```
  79.  
  80. ## Time
  81.  
  82. ```bash
  83. timedatectl set-ntp true
  84. ln -sf /usr/share/zoneinfo/America/Los_Angeles
  85. hwclock --systohc
  86. ```
  87.  
  88. ## Locale
  89.  
  90. ```bash
  91. vi /etc/locale.gen
  92. ```
  93.  
  94. Uncomment `en_US.UTF-8`.
  95.  
  96. ```bash
  97. locale-gen
  98. ```
  99.  
  100. ```
  101. /etc/locale.conf
  102.  
  103. LANG=en_US.UTF-8
  104. ```
  105.  
  106. ## Hostname
  107.  
  108. ```
  109. /etc/hostname
  110.  
  111. firelink-shrine
  112. ```
  113.  
  114. ```
  115. /etc/hosts
  116.  
  117. 127.0.0.1 localhost
  118. ::1 localhost
  119. 127.0.1.1 firelink-shrine.localdomain firelink-shrine
  120. ```
  121.  
  122. ## Password
  123.  
  124. ```bash
  125. passwd
  126. ```
  127.  
  128. This is the root password.
  129.  
  130. ## Bootloader
  131.  
  132. ```bash
  133. sudo pacman -S grub efibootmgr
  134. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
  135. grub-mkconfig -o /boot/grub/grub.cfg
  136. ```
  137.  
  138. ## Microcode
  139.  
  140. ```bash
  141. sudo pacman -S intel-ucode
  142. ```
  143.  
  144. ## Reboot
  145.  
  146. Exit the chroot and reboot. Remove the installation media.
Add Comment
Please, Sign In to add comment