Guest User

Untitled

a guest
Jan 23rd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. Partition
  2. =========
  3.  
  4. BIOS ::
  5.  
  6. cfdisk
  7. ---
  8. /dev/sda1 bootable
  9. /dev/sda2 swap
  10. ---
  11.  
  12. mkfs.ext4 /dev/sda1
  13. mkswap /dev/sda2
  14. swapon /dev/sda2
  15.  
  16. UEFI ::
  17.  
  18. # Confirm UEFI
  19. ls /sys/firmware/efi/efivars
  20. # Get name of disk (example /dev/sda)
  21. lsblk
  22.  
  23. gdisk /dev/sda
  24. # Press x, z then y to confirm wipe out GPT
  25.  
  26. cgdisk /dev/sda
  27. ---
  28. Size GUID Name
  29. 1024MiB EF00 boot
  30. 6GiB 8200 swap
  31. default default root
  32. ---
  33.  
  34. mkfs.fat -F32 /dev/sda1
  35. mkswap /dev/sda2
  36. swapon /dev/sda2
  37. mkfs.ext4 /dev/sda3
  38.  
  39. Install
  40. ========
  41.  
  42. Internet ::
  43.  
  44. # Set up wifi if there is no Ethernet
  45. wifi-menu
  46.  
  47. # Choose server Vietnam
  48. nano /etc/pacman.d/mirrorlist
  49.  
  50. BIOS ::
  51.  
  52. mount /dev/sda1 /mnt
  53.  
  54. UEFI ::
  55.  
  56. mount /dev/sda3 /mnt
  57. mkdir /mnt/boot
  58. mount /dev/sda1 /mnt/boot
  59.  
  60. Install ::
  61.  
  62. pacstrap /mnt base base-devel intel-ucode
  63. genfstab -U /mnt >> /mnt/etc/fstab
  64.  
  65. # Change root into new system
  66. arch-chroot /mnt /bin/bash
  67.  
  68. Configuration
  69. ==============
  70.  
  71. UTF-8 ::
  72.  
  73. nano /etc/locale.gen
  74. ---
  75. en_US.UTF-8 UTF-8
  76. ---
  77.  
  78. locale-gen
  79. echo LANG=en_US.UTF-8 > /etc/locale.conf
  80.  
  81. Time ::
  82.  
  83. ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
  84. hwclock --systohc
  85. timedatectl set-ntp true
  86.  
  87. Host name ::
  88.  
  89. echo arch-del > /etc/hostname
  90.  
  91. Root password ::
  92.  
  93. passwd
  94.  
  95. User ::
  96.  
  97. useradd -m -G wheel -s /bin/bash user
  98. passwd user
  99. EDITOR=nano visudo
  100. ---
  101. %wheel ALL=(ALL) ALL
  102.  
  103. BIOS ::
  104.  
  105. pacman -S grub os-prober
  106. grub-install /dev/sda
  107. grub-mkconfig -o /boot/grub/grub.cfg
  108.  
  109. UEFI ::
  110.  
  111. bootctl install
  112. nano /boot/loader/entries/arch.conf
  113. ---
  114. title Arch Linux
  115. initrd /intel-ucode.img
  116. linux /vmlinuz-linux
  117. initrd /initramfs-linux.img
  118. options root=/dev/sda3 rw quiet loglevel=3
  119.  
  120. For connect to Internet, use connman,
  121. remember to disable netctl and dhcpcd service
  122.  
  123. Connman ::
  124.  
  125. sudo pacman -S connman wpa_supplicant gnome-keyring
  126. sudo systemctl enable connman.service
  127. # Use commands
  128. connmanctl technologies
  129. connmanctl disable/enable wifi/ethernet
  130. connmanctl services
  131. connmanctl connect ...
  132. connmanctl tether wifi on/off
  133. connmanctl tether wifi ssid password
  134.  
  135. Reboot ::
  136.  
  137. exit
  138. umount /mnt
  139. reboot
  140.  
  141. Confirm boot successfully :)
  142. If there is no Internet, boot with USB
  143. then chroot to install package in new system.
Add Comment
Please, Sign In to add comment