SHARE
TWEET

Untitled

a guest Mar 21st, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Arch setup
  2. - Partitionize disk
  3. - Mount partitions (except /boot/efi) to /mnt
  4. ```bash
  5. mount /dev/sda3 /mnt
  6. mkdir /mnt/{home,opt}
  7. mount /dev/sda4 opt
  8. mount /dev/sda5 home
  9. ```
  10.  - Make a pacstrap
  11. ```bash
  12. pacstrap -i /mnt base
  13. ```
  14.  - Generate fstab (check result manually!)
  15. ```bash
  16. genfstab -U /mnt >> /mnt/etc/fstab
  17. ```
  18.  - Login into system
  19. ```bash
  20. arch-chroot /mnt /bin/bash
  21. ```
  22.  - Set locale
  23.      - find needed locale in /etc/locale.gen, uncomment it, then
  24. ```bash
  25.     locale-gen
  26. ```
  27.  - Set timezone
  28. ```bash
  29.     ln -s /usr/share/zoneinfo/<your specific zone> /etc/localtime
  30. ```
  31.  - Set local time
  32. ```bash
  33.     hwclock --systohc --utc
  34. ````
  35.  - Set hostname
  36. ```bash
  37. echo 'myhost' > /etc/hostname
  38. echo -e '127.0.0.1\tlocalhost' >> /etc/hosts
  39. ```
  40.  - Update pacman databases
  41. ```bash
  42.     pacman -Syy
  43. ```
  44.  - Install network manager
  45. ```bash
  46.     pacman -S networkmanager
  47.     systemctl enable NetworkManager
  48. ```
  49.  - Install grub2
  50. ```bash
  51.     pacman -S grub efibootmgr mtools os-prober
  52.     grub-install --target=x86_64-efi --bootloader-id=EFI_GRUB --efi-directory=/boot/efi
  53.     grub-mkconfig -o /boot/grub/grub.cfg
  54.     cp -r /boot/efi/EFI/EFI_GRUB /boot/efi/EFI/BOOT
  55.     mv /boot/efi/EFI/BOOT/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
  56.     echo 'bcf boot add 1 fs0:\EFI\EFI_GRUB\grubx64.efi "EFI_GRUB"' > /boot/efi/startup.nsh
  57. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top