SHARE
TWEET

Untitled

a guest Sep 20th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Set keymap to 'AZERTY'.
  2. loadkeys be-latin1
  3.  
  4. # Update the system clock.
  5. timedatectl set-ntp true
  6.  
  7. # View the available hard drives.
  8. lsblk
  9.  
  10. # Create at least 2 partitions.
  11. # One EFI partition 500MB. (1024000 sectors).
  12. # One Linux File System partition.
  13. # Format the EFI partition as FAT.
  14. mkfs.fat /dev/sdX0
  15.  
  16. # Format the Linux File System partition as EXT4.
  17. mkfs.ext4 /dev/sdX1
  18.  
  19. # Mount the 'Linux File System' partition.
  20. mount /dev/sdX1 /mnt
  21.  
  22. # Install Arch.
  23. pacstrap /mnt base base-devel
  24.  
  25. # Generate an 'FSTab' file.
  26. genfstab -U /mnt >> /mnt/etc/fstab
  27.  
  28. # Chroot into the File System.
  29. arch-chroot /mnt
  30.  
  31. # Set the correct timezone.
  32. ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime
  33.  
  34. # Set the 'date / time'.
  35. hwclock --systohc
  36.  
  37. # Uncomment 'en_US.UTF8 UTF8' in '/etc/locale.gen'.
  38. # After than generate the locales again.
  39. locale-gen
  40.  
  41. # Create the file '/etc/locale.conf' with the following contents:
  42. LANG=EN_US.UTF-8
  43.  
  44. # Create the file '/etc/vconsole.conf' with the following contents.
  45. KEYMAP=be-latin1
  46.  
  47. # Create the hostname file '/etc/hostname'.
  48. # Set the name of your computer, for example: 'PC-NAME'.
  49.  
  50. # Update the file '/etc/hosts' and add the following contents.
  51. # 127.0.0.1 PC-NAME
  52.  
  53. # Set the 'ROOT' password with
  54. passwd
  55.  
  56. # Mount the 'EFI' partition.
  57. mkdir /mnt/boot
  58. mount /dev/sdX0 /mnt/boot
  59.  
  60. # Download and install GRUB.
  61. pacman -Syu efibootmgr grub os-prober
  62. grub-install --target=x86_64-efi --efi-directory=/mnt/boot
  63. os-prober
  64. grub-mkconfig -o /boot/grub/grub.cfg
  65.  
  66.  
  67. # Install 'awesome' and the required dependencies.
  68. # GUI:            xorg-server & xorg-init.
  69. # Window Manager: awesome
  70. # Fonts:          ttf-dej
  71. # Terminal:       kitty
  72. sudo pacman -Syu xorg-server xorg-init awesome ttf-dejavu kitty
  73.  
  74. # Xorg configuration.
  75. echo "exec awesome" >> ~/.xinitrc
  76.  
  77. # Enable the network service.
  78. # Use the command 'ip link' to find out your network interface name.
  79. # Once you have that, invoke the following command:
  80. # For example: 'systemctl enable dhcpcd@ens3.service'.
  81. systemctl enable dhcpcd@[INTERFACE].service
  82.  
  83. # Install & enable the printing service.
  84. sudo pacman -Syu cups system-config-printer
  85. systemctl enable org.cups.cupsd.service
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top