Advertisement
Guest User

Arch Install Commands

a guest
May 27th, 2017
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. # Arch installation guide
  2.  
  3. # Partition drives
  4.  
  5. - Partition the disk:
  6. gdisk
  7. cfdisk
  8. fdisk
  9.  
  10. - Format partitions:
  11. mkfs -t F32 /dev/sdxx
  12. mkfs -t ext4 /dev/sdxx
  13.  
  14. - Swap partition:
  15. mkswap /dev/sdxx
  16. swapon /dev/sdxx
  17.  
  18. - Swap file:
  19. fallocate -l 512M /swapfile
  20. dd if=/dev/zero of=/swapfile bs=1M count=512
  21. chmod 600 /swapfile
  22. mkswap /swapfile
  23. swapon /swapfile
  24.  
  25. - Mount partitions:
  26. mkdir /mnt/home
  27. mount /dev/sda2 /mnt
  28. mount /dev/sda4 /mnt/home
  29.  
  30. - Mirrorlist
  31. cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
  32. rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
  33.  
  34. - Install base system:
  35. pacstrap -i /mnt base base-devel
  36.  
  37. - Generate fstab:
  38. genfstab -U -p /mnt >> /mnt/etc/fstab
  39.  
  40. - Verify fstab for swapfile (this should genfstab do,
  41. if it does not then add it yourself)
  42. echo "/swapfile none swap defaults 0 0" >> /etc/fstab
  43.  
  44. - Get into new system:
  45. arch-chroot /mnt
  46.  
  47. - Set the root password:
  48. passwd
  49.  
  50. - Set the hostname:
  51. echo computer_name > /etc/hostname
  52.  
  53. - Set the time zone and update clock:
  54. ln -sf /usr/share/zoneinfo/Europe/Belgrade /etc/localtime
  55. hwclock --systohc --utc
  56.  
  57. - Generate locale:
  58. nano /etc/locale.gen
  59. locale-gen
  60. echo LANG=en_US.UTF-8 > /etc/locale.conf
  61. export LANG=en_US.UTF-8
  62.  
  63. - Set 32 bit packages:
  64. nano /etc/pacman.conf
  65.  
  66. - Install network tools:
  67. pacman -S net-tools
  68.  
  69. - Install ntfs support:
  70. pacman -S ntfs-3g
  71.  
  72. - Enable networking at start up:
  73. systemctl enable dhcpcd@eth0.service
  74.  
  75. - Wireless tools:
  76. pacman -S wireless_tools wpa_supplicant wpa_actiond dialog
  77.  
  78. - Update & upgrade system:
  79. pacman -Syu
  80.  
  81. - Add generic user:
  82. useradd -m -g users -G wheel,storage,power,audio,video -s /bin/bash username
  83.  
  84. - Set password for generic user:
  85. passwd username
  86.  
  87. - Install and config sudo:
  88. pacman -S sudo
  89. EDITOR=nano visudo
  90. 'Defaults rootpw'
  91.  
  92. - Bash completion
  93. pacman -S bash-completion
  94.  
  95. # Bootloader
  96.  
  97. - Legacy bootloader:
  98. pacman -S grub-bios, os-prober
  99. grub-install --target=i386-pc --recheck /dev/sda
  100.  
  101. - UEFI:
  102. pacman -S gummiboot
  103. gummiboot install
  104. vim /boot/loader/entries/arch.conf
  105. title Arch Linux
  106. linux /vmlinuz-linux
  107. initrd /initramfs-linux.img
  108. options root=/dev/sdxx rw
  109.  
  110. - Intel:
  111. pacman -S intel-ucode
  112.  
  113. - Create a new initial RAM disk:
  114. mkinitcpio -p linux
  115.  
  116. - Grub config file
  117. grub-mkconfig -o /boot/grub/grub.cfg
  118.  
  119. # System is installed
  120.  
  121. - Unmount partitions & reboot
  122.  
  123. # System adjustments
  124.  
  125. - Install audio driver:
  126. pacman -S alsa-utils
  127. pacman -S pulseaudio
  128.  
  129. - Install graphics driver:
  130. pacman -S xf86-video-intel
  131.  
  132. - Install Window manager, OpenGL:
  133. pacman -S xorg-server xorg-xinit xorg-server-utils
  134. pacman -S mesa, ttf-dejavu, gvfs, openssh
  135.  
  136. - Install Network manager:
  137. pacman -S networkmanager networkmanager-vpnc networkmanager-pptp networkmanager-openconnect network-manager-applet
  138. systemctl enable NetworkManager
  139.  
  140. - Install DE (xfce4):
  141. pacman -S xfce4, xfce-goodies, gamin
  142.  
  143.  
  144. pacman -S firefox, flashplugin
  145. pacman -S transmission-qt
  146. pacman -S skype
  147. pacman -S gedit
  148. pacman -S gvim
  149. pacman -S vlc
  150. pacman -S evince
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement