Guest User

Untitled

a guest
May 12th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. Install Arch Linux ah jeez
  2.  
  3. 1. Create a live boot USB with the image. Easy.
  4. create space for everything w/ disk utility
  5. 2. Find a way to boot Dell XPS to USB
  6. 3. To verify that boot mode is UEFI mode:
  7. # ls /sys/firmware/efi/efivars
  8. 4. Establish a network connection
  9. a. test that Arch sees my network interface
  10. # ip link
  11. b. package 'netctl' with command 'wifi-menu'
  12. 1. dependent on 'dialog'
  13. 2. do not need to install?
  14. 3. command is just 'wifi-menu'
  15. c. ping a website
  16. # ping archlinux.org
  17.  
  18. secondary wayish?
  19. # ifconfig
  20. # wifi-menu
  21.  
  22. when booting from live USB, don't need to install wifi
  23. until you have chrooted into the system
  24.  
  25. 5. Update the system clock
  26. # timedatectl set-ntp true
  27. # timedatectl status
  28. 6. Partition the disks
  29. a. You'll need two partitions, but need to only create one:
  30. 1. an EFI system partition to boot linux
  31. -sd(x1), 260-512 MiB
  32. -mount point: /mnt/boot or /mnt/efi
  33. 2. A partition for the root directory /
  34. - remainder of device
  35. -mount point: /mnt
  36. b. to identify disks:
  37. 1. commands:
  38. # fdisk -l
  39. # lsblk (lists disks)
  40. c. in order to create the partition:
  41. # cfdisk /dev/sda
  42. d. format the partitions with filesystem
  43. 1. filesystem may differ depending on what its for
  44. 2. command for big partition:
  45. # mkfs.ext4 /dev/sdX1
  46. e. mount the file systems (JUST THE BIG ONE) where they need to go
  47. # mount /dev/sdX1 /mnt
  48. # df (to look at stuff!)
  49.  
  50. NEXT WE'LL MOUNT THE EFI DRIVE TO A /mnt/boot DIRECTORY
  51.  
  52. We need to create the boot directory
  53. # mkdir /mnt/boot
  54.  
  55. Now we can mount EFI to the boot directory
  56. # mount /dev/sdX2 /mnt/boot
  57.  
  58. For mounting windows10 disk partition as well:
  59. Create a directory for the disk:
  60. # mkdir /mnt/Windows10
  61.  
  62. Mount the disk
  63. # mount /dev/sdX3 /mnt/Windows10
  64.  
  65.  
  66. 7. Installation
  67. a. We're gonna want to organize the mirrors by location
  68. # pacman -Syyy (synchronizes package databases)
  69. # pacman -S reflector
  70. # reflector --help
  71. # reflector --country 'United States' --age 12 --sort rate --save /etc/pacman.d/mirrorlist
  72. b. install essential packages
  73. # pacstrap /mnt base linux linux-firmware nano intel-ucode
  74.  
  75.  
  76. 8. Configuring System
  77. a. Generate an fstab file (defines disk partitions)
  78. # genfstab -U /mnt >> /mnt/etc/fstab
  79.  
  80. - To check fstab file: just look inside bro
  81. # cat /mnt/etc/fstab
  82.  
  83. b. Change root into new system bro!
  84. # arch-chroot /mnt
  85. c. Set the time zone
  86. Search for region and city:
  87. # timedatectl list-timezones | grep 'America"
  88. # ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
  89. # hwclock --systohc
  90. d. Localization
  91. 1. edit /etc/locale.gen and uncomment en_US.UTF-8 UTF-8
  92. # locale-gen (to generate locales)
  93. # nano /etc/locale.conf
  94. 2. first line should be: LANG=en_US.UTF-8
  95. e. Hostname
  96. 1. Create hostname file:
  97. # nano /etc/hostname
  98. first line should be: whateverhostnameyuh
  99.  
  100. 2. add matching entries to hosts in /etc/hosts
  101. 127.0.0.1 localhost
  102. ::1 localhost
  103. 127.0.1.1 myhostname.localdomain myhostname
  104. f. Set root user password
  105. # passwd
  106.  
  107. 9. Let's configure wifi before GRUB.
  108. (First see if networkmanager is installed)
  109. if not: # pacman -S NetworkManager
  110. a. First, we need to disable existing network interfaces
  111. To see network interfaces:
  112. # ip link
  113. To enable NetworkManager:
  114. # (sudo?) systemctl enable NetworkManager.service
  115. To disable existing interfaces:
  116. # (sudo?) systemctl disable netctl-auto@wl(whatever).service
  117.  
  118. b. Use NetworkManager:
  119. # nmcli device wifi list
  120. # nmcli device wifi connect SSID password password
  121.  
  122. (
  123. could be useful?
  124. Connect to a wifi on the wlan1 wifi interface:
  125.  
  126. $ nmcli device wifi connect SSID password password ifname wlan1 profile_name
  127. )
  128.  
  129. c. install a front-end later
  130.  
  131.  
  132. 10. NOW install GRUB!!!!
  133.  
  134. # pacman -S grub efibootmgr os-prober ntfs-3g
  135.  
  136. For installing GRUB, you need to be inside the chroot. command is this:
  137.  
  138. # grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
  139. where esp = mount point (/boot)
  140.  
  141. Then you need to generate the main config file. Command:
  142. # grub-mkconfig -o /boot/grub/grub.cfg
  143.  
  144. In order for grub-mkconfic to search for other installed systems:
  145. INSTALL os-prober package and mount the partitions containing other systems (DONE BY MOUNTING REGULAR EFI)
  146.  
  147.  
  148. 11. REBOOT!
  149. # exit
  150. # umount -R /mnt
  151. # reboot
  152.  
  153. remove the usb, sign in w/root account
  154.  
  155. also bud dont forget to install sudo sometime in there
Add Comment
Please, Sign In to add comment