Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. #check internet connection (use wired to make it easy)
  2. ping -c 3 google.com
  3.  
  4. #update pacman database
  5. pacman -Syy
  6.  
  7. #install a reflector
  8. pacman -S reflector
  9.  
  10. #setup reflector mirrorlist for local/fast downloads
  11. reflector -c "AUSTRALIA" -f 12 -l 10 -n12 --save /etc/pacman.d/mirrorlist
  12.  
  13. #check for partitions
  14. fdisk -l
  15.  
  16. #repartition hard drive (erase all partitions make one that takes up the whole disk, make it the primary partition, then make it bootable. Write the changes.
  17. cfdisk (location of hard drive)
  18.  
  19. #Format the disk to ext4
  20. mkfs.ext4 (location of disk with partition number)
  21.  
  22. #mount disk to system
  23. mount (disk location with paertition number) /mnt
  24.  
  25. #install base system
  26. pacstrap -i /mnt base base-devel
  27.  
  28. #generate fstab file
  29. genfstab -U -p /mnt >> /mnt/etc/fstab
  30.  
  31. #login to new system as root
  32. arch-chroot /mnt /bin/bash
  33.  
  34. #set location of system (uncomment en_US.UTF-8 UTF-8)
  35. nano /etc/locale.gen
  36.  
  37. #generate local
  38. locale-gen
  39.  
  40. #set the clock (replace US and Mountain if you arnt in the mountain time zone)
  41. ln -sf /usr/share/zoneoinfo/US/Mountain /etc/localtime
  42.  
  43. hwclock --systohc --utc
  44.  
  45. #give computer a name
  46. Echo (computer name) > /etc/hostname
  47.  
  48. #edit host file add 127.0.1.1 to ipaddress, localhost.localdomain to hostmane.domain.ort, and pc name to hostname
  49. nano /etc/hosts
  50.  
  51. #enable network service
  52. systemctl enable dhcpcd
  53.  
  54. #set password for root
  55. passwd
  56.  
  57. #install the bootloader grup
  58. pacman -S grup
  59.  
  60. #install grub bootloader to hdd
  61. grub-install (location of hard drive)
  62.  
  63. #generate configuration file
  64. grub-mkconfig -o /boot/grub/grub.cfg
  65.  
  66. #logout of the system
  67. exit
  68.  
  69. #unmount the system
  70. umount-R /mnt
  71.  
  72. #reboot take disk or usb out of the computer
  73. reboot
  74.  
  75. #log into root using the password you set
  76.  
  77. #create a new user
  78. useradd -m -g users -G wheel -s /bin/bash (username)
  79.  
  80. #assign a password to user
  81. passwd (username)
  82.  
  83. #add new user to sudo group (uncomment %wheel ALL=(ALL) ALL)
  84. EDITOR=nano visudo
  85.  
  86. #logout of root
  87. exit
  88.  
  89. #login as new user
  90.  
  91. #install audio packages
  92. sudo pacman -S pluseaudio pluseaudio-alsa
  93.  
  94. #install xorg server (leave the first option the default, the second one need to be 1 if you're using integrated graphics)
  95. sudo pacman xorg -S xorg xorg-xinit
  96.  
  97. #create file of initiation for GUI
  98.  
  99.  
  100. echo "(gui of choice)" > ~/.xinitrc
  101.  
  102. sudo pacman -S plasma-desktop
  103.  
  104. xfce:
  105. "exec startxfce4"
  106. sudo pacman -S xfce4
  107.  
  108. gnome:
  109. "exec gnome-session"
  110. sudo pacman -S gnome
  111.  
  112. cinnamon:
  113. "exec cinnamon-session"
  114. sudo pacman -S cinnamon
  115.  
  116. mate:
  117. "exec mate-session"
  118. sudo pacman -S mate
  119.  
  120. unity:
  121. "exec unity"
  122. Unity installation is tricky - see https://wiki.archlinux.org/index.php/...
  123.  
  124. openbox:
  125. "exec openbox-session"
  126. sudo pacman -S openbox
  127.  
  128. i3:
  129. "exec i3"
  130. sudo pacman -S i3
  131.  
  132. awesome:
  133. "exec awesome"
  134. sudo pacman -S awesome
  135.  
  136. deepin
  137. "exec startdde"
  138. sudo pacman -S deepin
  139.  
  140. LXDE
  141. "exec startlxde"
  142. sudo pacman -S lxde
  143.  
  144. #install aditional packages like a file manager, terminal inulater, web browser, and text editor
  145. sudo pacman -S konsole dolphin firefox kate
  146.  
  147. #start gui
  148. startx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement