Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.59 KB | None | 0 0
  1. MBR
  2.  
  3.  
  4. lsblk
  5.  
  6. ls /sys/firmware/efi/efivars
  7. If states no files carry on
  8. If files are here then install via UEFI
  9.  
  10. Ping to check internet connection
  11. use wifi-menu to connect to wireless connection
  12.  
  13. PARTITION DRIVE
  14.  
  15. fdisk /dev/name of drive
  16.  
  17.  
  18. d = delete parition
  19.  
  20. BOOT PARTITION
  21. n = new partition
  22.  - p primary partition
  23. -- 1
  24. -- enter
  25. -- +250M
  26. -- Y if asks for signiture
  27.  
  28. Press P to confirm created partition
  29. SWAP PARTITION
  30. - p
  31. - 2 or enter
  32. - First sector: enter
  33. - Last Sector: 4G
  34. P
  35.  
  36. ROOT PARTITION - At least 25GB
  37. - p
  38. - 3 or enter
  39. - First sector: enter
  40. - Last Sector:
  41.  
  42. HOME PARTITION  - Rest of the drive
  43. - p
  44. - 4 or enter
  45. - First sector: enter
  46. - Last Sector: enter
  47.  
  48. w = Writes these partitions to the hard drive and reformats everything
  49.  
  50. Make the file systems
  51.  
  52. Boot: mkfs.ext4 /dev/name of boot parition
  53. Root: mkfs.ext4 /dev/name of root parition
  54. Home: mkfs.ext4 /dev/name of home parition
  55.  
  56. Setup SWAP Partition
  57. mkswap /dev/name of swap partition
  58. swapon /dev/name of swap partition
  59.  
  60. Mount drives
  61.  
  62. mount /dev/name of root /mnt
  63.  
  64. mkdir /mnt/boot
  65. mkdir /mnt/home
  66.  
  67. mount /dev/name of boot/boot
  68. mount /dev/name of home/home
  69.  
  70. INSTALL ARCHLINUX
  71.  
  72. pacstrap -i /mnt base vim
  73. installs other packages and vim
  74.  
  75. CREATE FSTAB FILE
  76.  
  77. genfstab -U /mnt
  78. genfstab -U /mnt >> /mnt/etc/fstab
  79.  
  80. make it bootable
  81.  
  82. arch-chroot /mnt
  83.  
  84. Next, create the locale files by running:
  85.  
  86. LOCALE
  87.  
  88. vim /etc/locale.gen
  89. uncomment en_GB.UTF-8 UTF-8
  90. echo LANG=en_GB.UTF-8 > /etc/locale.conf
  91. export LANG=en_GB.UTF-8
  92. locale-gen
  93.  
  94. TIME
  95.  
  96. ln -s /usr/share/zoneinfo/UTC /etc/localtime
  97. hwclock --systohc --utc
  98.  
  99. NETWORK SETUP
  100.  
  101. pacman -S networkmanager
  102. systemctl enable NetworkManager
  103.  
  104. Install boot loader
  105.  
  106. pacman -S grub
  107. grub-install --target=i386-pc /dev/name of drive
  108. grub-mkconfig -o /boot/grub/grub.cfg
  109.  
  110.  
  111.  
  112. Set the name of your computer
  113. vim /etc/hostname
  114.  
  115.  
  116. Step Five: Configure Your Package Manager
  117.  
  118. vi /etc/pacman.conf
  119. uncomment
  120. [multilib]
  121. Include = /etc/pacman.d/mirrorlist
  122. pacman -Sy
  123.  
  124. root password
  125. passwd
  126.  
  127. visudo
  128. uncomment the following like
  129. %wheel ALL=(ALL) ALL
  130.  
  131. exit to USB and unmount
  132. exit
  133. unmount -R /mnt
  134. reboot
  135.  
  136. USER
  137.  
  138. useradd -m -g users -G wheel,storage,power -s /bin/bash darkeve
  139. passwd darkeve
  140.  
  141. pacman -S sudo
  142.  
  143. FONTS
  144.  
  145. default for now
  146. pacman -S noto-fonts
  147.  
  148. Set fonts manually at ~/.config/fontconfig/fonts.conf
  149.  
  150. UK Keyboard Layout
  151.  
  152. localectl set-keymap uk
  153.  
  154. GRAPHICS
  155.  
  156. # intel graphics
  157. $ pacman -S xf86-video-intel libva-intel-driver
  158.  
  159. pacman -S xorg-server xorg-xinit
  160.  
  161. TRACKPAD
  162.  
  163. sudo pacman -S xf86-input-synaptics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement