Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. ARCH LINUX INSTALL 2016
  2.  
  3. BASE SYSTEM INSTALL
  4.  
  5. 1. partition hdd:
  6. # cfdisk or #fdisk
  7. sda1 = root (20G)
  8.  
  9. 2. format patrts:
  10. # mkfs.ext4 /dev/sda1 -L root
  11.  
  12. 3. mount parts:
  13. # mount /dev/sda1 /mnt
  14. # mkdir /mnt/{home,boot}
  15.  
  16. 4. net up (wifi):
  17. 4.1
  18. # wifi-menu
  19. or
  20. 4.2
  21. # ip link set wlp2s0 up
  22. # iw dev wlp2s0 scan | less
  23. # wpa_supplicant -B -i wlp2s0 -c <(wpa_passphrase SSID key)
  24. # dhcpcd wlp2s0
  25.  
  26. 4.2.1 check connection condition:
  27. # iw dev wlp2s0 link
  28.  
  29. 5. edit mirrorlist:
  30. # vi /etc/pacmand/mirrorlist
  31.  
  32. 6. update mirrorlist:
  33. # pacman -Syy
  34.  
  35. 7. install base system:
  36. # pacstrtap /mnt base base-devel
  37.  
  38. 8. automount:
  39. # genfstab -U -p /mnt >> /mnt/etc/fstab
  40.  
  41. 9. goto new sys:
  42. # arch-chroot /mnt
  43.  
  44. 10. set hostname:
  45. # echo newhostname >> /etc/hostname
  46.  
  47. 11. set time:
  48. # ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime
  49. or
  50. # timedatectl set-timezone Europa/Moscow
  51.  
  52. 12. set locale & system language:
  53. #sed -i s/^#en_US.UTF/en_US.UTF/ /etc/locale.gen
  54. #sed -i s/^#ru_RU.UTF/ru_RU.UTF/ /etc/locale.gen
  55. #echo LANG=en_US.UTF-8 > /etc/locale.conf
  56. #setxkbmap -layout "us,ru"
  57. #setxkbmap -option "grp:ctrl_shift_toggle,grp_led:scroll"
  58. #locale-gen
  59.  
  60. 13.
  61. # mkinitcpio -p linux
  62.  
  63. 14. GRUB:
  64. # pacman -S grub-bios os-prober
  65. (grub-utf for utf)
  66. # vi /etc/default/grub
  67. # os-prober
  68. # grub-mkconfig -o /boot/grub/grub.cfg
  69. # vi /boot/grub/grub.cfg
  70. # grub-install /dev/sda (sdx not sdx1)
  71.  
  72. 15. wifi:
  73. # pacman -S iw dialog wpa_supplicant wpa_actiond
  74.  
  75. 15.1.0 wifi settigs:
  76. autocreate profile to /etc/netctl:
  77. # wifi-menu -o
  78. # netctl start name_profile
  79.  
  80. 15.1.2 autostart connection:
  81. # netctl enable name_profile
  82. # systemctl enable dhcpd.service
  83.  
  84. 16. user & passwords:
  85. 16.1 root password:
  86. # passwd
  87.  
  88. 16.2 create user & set password:
  89. # useradd -m -s /bin/bash username
  90. # echo "username ALL=(ALL):ALL" >> /ect/sudoers
  91. # passwd username
  92.  
  93. 17.
  94. # pacman -S bash bash-comletion vim
  95.  
  96. 18. Video drivers:
  97. # lspci | grep VGA
  98. # pacman -Ss xf86-video
  99. example:
  100. # pacman -S xf86-video-nvidia
  101. # pacman -S xf86-video-intel
  102. # pacman -S xf86-video-ati
  103.  
  104. 19. X & wm :
  105. # pacman -S xorg-server xorg-utils xorg-apps
  106. # pacman -S xorg-xinit xterm fluxbox
  107.  
  108. 20. Touchpad Synaptics:
  109. # pacman -S xf86-input-synaptics
  110. # cp /usr/share/X11/xorg.conf.d/50-synaptics.conf /etc/X11/xorg.conf.d/
  111.  
  112. 21. sound:
  113. # pacman -S alsa-lib alsa-utils alsa-oss
  114.  
  115. 22. fonts:
  116. # pacman -S ttf-dejavu
  117.  
  118. # exit
  119. # umount /mnt
  120. # reboot
  121.  
  122. boot like new user
  123.  
  124. auto start X at login:
  125. $echo "exec startx" >> ~/.bash_profile
  126. $echo "exec /usr/bin/startfluxbox" >> ~/.xinitrc
  127. $echo "/usr/bin/fluxbox" >> ~/.fluxbox/startup
  128.  
  129. $sudo reboot
  130.  
  131. what install more:
  132. firefox vlc pcmanfm epdfview viewnior wget scrot
  133. rxvt-unicode mplayer rtorrent profanity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement