Advertisement
Guest User

My Arch Check-list

a guest
Aug 1st, 2017
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. 1: ping something to check connection
  2.  
  3. 2: timedatectl set-ntp true
  4.  
  5. 3: partition disk (I like fdisk) - I use a 16G swap for when im compiling.. just in case
  6.  
  7. 4: format the partition you'll use for / .. mkfs.ext4 (I'm not adventurous)
  8.  
  9. 5: mount it on /mnt
  10.  
  11. 6: make your swap with mkswap
  12.  
  13. 7: format the rest of you partitions that are PERTINENT to the install
  14. this represents the first time I blew it by trying to be cute with all my other volumes.
  15. What I found out was that it's best to only mount the volumes you'll actually need for pacstrap right now.
  16.  
  17. So.. I'm my case thats
  18. /
  19. /boot
  20. /home
  21.  
  22. 7b (optional) Check the partitions with lsblk just to be sure you did it right
  23.  
  24.  
  25. 8: edit the mirrorlist the fun way: install 'reflector' with pacman
  26. pacman -Sy reflector
  27.  
  28. 8a: run it
  29. reflector --verbose --latest 6 --country 'United States' --sort rate --save /etc/pacman.d/mirrorlist
  30.  
  31. 8b: refresh the repos: pacman -Syy
  32.  
  33. 9: deal with the keys
  34. pacman-key --init
  35. pacman-key --populate archlinux
  36. pacman-key --refresh-keys
  37.  
  38. 10: install the base and base-devel groups with
  39. pacstrap /mnt base base-devel
  40.  
  41. 11: generate fstab
  42. genfstab -U /mnt > /mnt/etc/fstab
  43.  
  44. 11a: optionally, review the fstab with cat and fix it with vim or whatever if you find an
  45. error. I never have, but i always cat it to check b/c it's mentioned in the wiki
  46.  
  47. 12: chroot into the new install: arch-chroot /mnt
  48.  
  49. 13: set up locales and keymaps and shiz
  50. ln -svf /usr/share/zoneinfo/Americas/New_York /etc/localtime
  51.  
  52. assuming you're using American English keyboard and lang settings
  53. set the locale:
  54. echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
  55. and generate:
  56. locale-gen
  57. echo 'LANG=en_US.UTF.8' > /etc/locale.conf
  58.  
  59. apparently this is optional: echo 'KEYMAP=US' > /etc/vconsole.conf
  60. but I always do it in the interest of thoughoughness.
  61.  
  62. 14: set the hostname and edit /etc/hosts
  63. echo '<your_host_name>' > /etc/hostname
  64.  
  65. * NOTE: at this point, i install vim though vi and nano or emacs is fine
  66.  
  67. 15: edit /etc/hosts by adding:
  68. 127.0.1.1 <your_host_name>.localdomain <your_host_name>
  69.  
  70. 16: set the root password: passwd
  71.  
  72. 17: make your user: useradd -m -g users -G wheel -s /bin/bash <your_user_name>
  73.  
  74. 18: set the password for that user: passwd <your_user_name>
  75.  
  76. 19: edit the sudoers file if you want your uswer to be able to sudo. Use visudo and insert:
  77. <user_name> ALL=(ALL) ALL
  78. and uncomment the line allwing wheel to use sudo if that's appropo
  79.  
  80. 20: install your video driver
  81. pacman -Sy xf86-video-ati or x86-video-nvidia or xf86-video-intel
  82.  
  83. 21: install xorg meta-package: pacman -Sy xorg
  84.  
  85. 22: install a display manager sddm, gdm or whatevs (i use sddm b/c im a Qt fanboi.. there's a joke in there somewhere)
  86.  
  87. 23: enable it: systemctl enable <your_dm>
  88.  
  89. * NOTE: if you use a DE like Gnome or Plasma, you dont need to worry about installing multimedia, it comes in those DE's
  90.  
  91. 24: install desktop environments or whatever you use for GUI. I use Plasma so..
  92. pacman -Sy kde-applications-meta plasma-meta
  93.  
  94. 25: enable NetworkManager: systemctl enable NetworkManager.service
  95.  
  96. 26: exit chroot with: exit
  97.  
  98. 27 reboot
  99.  
  100. DONE!
  101.  
  102. after log in, mount your other volumes and edit fstab manually. (every time i try to short-cut this with
  103. some clever trick, it never ends well.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement