Guest User

Untitled

a guest
Feb 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. #Confirm efivars
  2. ls /sys/firmware/efi/efivars
  3. #Confirm internet connection
  4. ping -c 3 archlinux.org
  5.  
  6. timedatectl set-ntp true
  7.  
  8. fdisk -l /dev/sda
  9.  
  10. cfdisk /dev/sdax/
  11.  
  12. #Create 10 GB root partition / Set as bootable
  13. / _____
  14. #Create a 6GB [SWAP] partition
  15. [SWAP] _____
  16. #Create a home partition with remaining space
  17. /home _____
  18.  
  19. #Identify existing EFI partition
  20. /dev/_____(EFI System Partition)
  21.  
  22. #Format
  23. mkfs.ext4 /dev/sdax_____(root)
  24. mkswap /dev/sdax_____(swap)
  25. swapon /dev/sdax_____(swap)
  26. mkfs.ext4 /dev/sdax_____(home)
  27.  
  28. #Mount root partition
  29. mount dev/sdax /mnt
  30.  
  31. #Mount home partition
  32. mkdir /mnt/home
  33. mount /dev/sdax /mnt/home
  34.  
  35. #Mount EFI partition
  36. mkdir /mnt/boot
  37. mount /dev/sdax/ /mnt/boot
  38.  
  39. #define mirrors
  40. /etc/pacman.d/mirrorlist
  41.  
  42. #In nano use Ctrl+W and type the location you are looking for.
  43. #Once found go to the url of the mirror and hit Alt+6 to copy the line.
  44. #Now use <Page Up> key to go on top and then hit Ctrl+U to paste that line on top.
  45. #Hit Ctrl+x to exit and then type Y to save the changes you made.
  46.  
  47. #Install Arch
  48. pacstrap /mnt base base-devel
  49.  
  50. #Generate fstab
  51. genfstab -U /mnt >> /mnt/etc/fstab
  52.  
  53. #Move into system
  54. arch-chroot /mnt
  55.  
  56. #Set clock and timezone
  57. ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
  58. hwclock --systohc --localtime
  59.  
  60. #Generate localization
  61. nano /etc/locale.gen
  62. uncomment en_US.UTF-8 UTF-8
  63. locale-gen
  64.  
  65. echo LANG=en_US.UTF-8 > /etc/locale.conf
  66. export LANG=en_US.UTF-8
  67.  
  68. #Hostname
  69. echo myhostname > /etc/hostname
  70.  
  71. #Add user account and set password
  72. useradd -m -G audio,video,optical,lp,wheel.storage,power -s /bin/bash (Name)
  73. passwd (Name)
  74.  
  75. #Set root password
  76. passwd
  77.  
  78. #Define a boot entry for Arch Linux
  79. nano /boot/loader/entries/arch.conf
  80.  
  81. title Arch Linux
  82. linux /vmlinuz-linux
  83. initrd /initramfs-linux.img
  84. options root=PARTUUID=14420948-2cea-4de7-b042-40f67c618660 rw
  85.  
  86. #You can find the PARTUUID for your root partition with the command blkid -s PARTUUID -o value /dev/sdxY
  87. #where x is the device letter and Y is the partition number.
  88. #This is required only for your root partition, not esp.
  89.  
  90. #Finish up
  91. umount -R /mnt
  92. exit
Add Comment
Please, Sign In to add comment