SHARE
TWEET

arch

Pekempy Jun 24th, 2019 (edited) 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Arch Setup
  2. //===========
  3.  
  4. //======================
  5. //Create Partitions
  6. //======================
  7. //Find current disk name
  8. fdisk -l
  9.  
  10. //Enter fdisk with the right disk name
  11. fdisk /dev/sdx
  12. n
  13. p
  14. [enter]
  15. [enter]
  16. +10G
  17. n
  18. p
  19. [enter]
  20. [enter]
  21. +20G
  22. w
  23.  
  24. //======================
  25. //Format partitions
  26. //======================
  27. mkfs.ext4 /dev/sda1
  28. mkfs.ext4/dev/sda2
  29. mount /dev/sda1 /mnt
  30. mkdir /mnt/home
  31. mount /dev/sda2 /mnt/home
  32. wifi-menu
  33.  
  34. //======================
  35. //Installation
  36. //======================
  37. //Install base pkg
  38. pacstrap /mnt base base-devel
  39.  
  40. //======================
  41. //Configuration
  42. //======================
  43. genfstab -U /mnt >> /mnt/etc/fstab
  44. arch-chroot /mnt
  45. exit
  46. //======================
  47. //Set Timezone
  48. //======================
  49. timedatectl set-timezone Europe/London
  50. //or ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
  51. hwclock --systohc --utc
  52. sudo nano /etc/locale.gen
  53. //(uncomment en_GB.UTF-8)
  54. //(comment en_US.UTF-8)
  55. locale-gen
  56. echo LANG=en_GB.UTF-8 > /etc/locale.conf
  57. export LANG=en_GB.UTF-8
  58.  
  59. //======================
  60. //Install bootloader, set hostname
  61. //======================
  62. echo pekempy-linux > /etc/hostname
  63. echo pekempy-linux > /etc/hosts
  64. sudo nano /etc/hosts
  65. //Make it look like below
  66. //127.0.0.1 pekempy-linux.localdomain pekempy-linux
  67. //do in both hosts and hostname
  68. sudo nano /etc/hostname
  69. //======================
  70. //Installing grub
  71. //======================
  72. arch-chroot /mnt /bin/bash
  73. pacman -S grub
  74. y
  75. grub-install /dev/sda
  76. grub-mkconfig -o /boot/grub/grub.cfg
  77.  
  78. //======================
  79. //Password
  80. //======================
  81. passwd
  82. //enter chosen password
  83. pacman -Syu
  84.  
  85.  
  86. //======================
  87. //Installing a GUI
  88. //======================
  89. ip link
  90. //Find the name of adapter eg enp0s3
  91. nano /etc/systemd/network/enp0s3.network
  92. //Add the following:
  93. //[Match]
  94. //name=en*
  95. //[Network]
  96. //DHCP=yes
  97. //SAVE & EXIT
  98. systemctl restart systemd-networkd
  99. systemctl enable systemd-networkd
  100. nano /etc/resolv.conf
  101. //Add the following:
  102. //nameserver 8.8.8.8
  103. //nameserver 8.8.4.4
  104. //SAVE & EXIT
  105. pacman -Sy xorg xorg-server
  106. [enter]
  107. y
  108. pacman -S xorg-twm xterm xorg-clock
  109. //find graphics and install(?)
  110. lspci | grep VGA
  111. pacman -Ss | grep nvidia
  112. pacman -Ss | grep lib32-nvidia
  113. //pacman -S xf86-video-vmware
  114. pacman -Syu xorg-xinit
  115. startx
  116. //if error - pacman -Sy zlib
  117. //if error still - pacman -Sy xorg
  118. exit
  119. yay -S budgie-desktop-git sddm
  120. pacman -S net-tools
  121. pacman -S network-manager-applet
  122. systemctl start gdm
  123. systemctl enable gdm
  124. systemctl start NetworkManager
  125. systemctl enable NetworkManager
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