Advertisement
sir_philip

Arch linux Install BIOS

Apr 26th, 2019 (edited)
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1.  
  2. ```
  3.  
  4. Arch install guide - BIOS
  5. Wired Ethernet connection
  6. BIOS NON UEFI
  7. This guide installs base arch with no DE or WM
  8.  
  9.  
  10. # ls /sys/firmware/efi/efivars
  11. -if directory above exist this system is UEFI. Please use a differnet guide.
  12. # ping archlinux.org
  13. # timedatectl set-ntp true
  14. # timedatectl status
  15.  
  16. # lsblk OR # fdisk -l
  17. used to locate name of disk name to install arch on. probably /dev/sda
  18.  
  19. # gdisk /dev/sd*
  20. Create Partitions:
  21. Partition 1 - boot partition:
  22. -type 'n' and at enter prompt to create new partition
  23. -default partition number
  24. -first sector accept default, last sector type +250M
  25. -use 8300 and press enter
  26.  
  27. Partition 2 - swap partition:
  28. -type 'n' at propmt
  29. -default partition number
  30. -first sector default, last sector +2G
  31. -use 8200 and press enter
  32.  
  33. Partition 3 - root partition:
  34. -type 'n' and enter at prompt
  35. -default partition number
  36. -first sector default, last sector +15G
  37. -use 8300 and press enter
  38.  
  39. Partition 4 - home partition:
  40. -type 'n' and enter at prompt
  41. -default partition number
  42. -first and last sector default
  43. -default 8300 hex code
  44.  
  45. -type -w to write and quit
  46. - y to confirm
  47.  
  48. # mkfs -t ext4 /dev/sda1
  49. # mkfs -t ext4 /dev/sda3
  50. # mkfs -t ext4 /dev/sda4
  51. # mkswap /dev/sda2
  52. # parted /dev/sda set 1 bios_grub on
  53. # swapon /dev/sda2
  54. # mount /dev/sda3 /mnt
  55. # cd /mnt
  56. create points and mount
  57. # mkdir boot home
  58. # mount /dev/sda1 boot
  59. # mount /dev/sda4 home
  60. # cd /mnt
  61.  
  62. # pacstrap /mnt base base-devel linux linux-firmware
  63. # genfstab /mnt>> /mnt/etc/fstab
  64. # arch-chroot /mnt
  65.  
  66. # nano /etc/locale.gen
  67. uncomment
  68. #en_US.UTF-8 UTF-8
  69. #en_US ISO-8859-1
  70. *** if nano not installed
  71. #pacman -Sy nano vim
  72.  
  73. # ln -s /usr/share/zoneinfo/America/Detroit > /etc/localtime
  74. # nano /etc/locale.conf
  75. LANG="en_US.UTF-8"
  76. # locale-gen
  77. # hwclock --systohc --utc
  78.  
  79. # pacman -Sy dialog iw grub
  80. # grub-install --target=i386-pc /dev/sda
  81. # grub-mkconfig -o /boot/grub/grub.cfg
  82. # echo hostname > /etc/hostname
  83. replace hostname with desired hostname
  84. # passwd
  85. # exit
  86. # umount -R /mnt
  87. # reboot
  88.  
  89.  
  90. { if host doesnt connect to internet
  91. # sudo systemctl start dhcpcd }
  92.  
  93. # useradd -m -G wheel, -s /bin/bash admin
  94. # passwd admin
  95. # nano /etc/sudoers
  96. admin ALL=(ALL) NOPASSWD:ALL
  97.  
  98. # pacman -Sy
  99. # pacman -Sy vim
  100. ```
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement