Guest User

Untitled

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