Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ARCH LINUX INSTALL 2016
- BASE SYSTEM INSTALL
- 1. partition hdd:
- # cfdisk or #fdisk
- sda1 = root (20G)
- 2. format patrts:
- # mkfs.ext4 /dev/sda1 -L root
- 3. mount parts:
- # mount /dev/sda1 /mnt
- # mkdir /mnt/{home,boot}
- 4. net up (wifi):
- 4.1
- # wifi-menu
- or
- 4.2
- # ip link set wlp2s0 up
- # iw dev wlp2s0 scan | less
- # wpa_supplicant -B -i wlp2s0 -c <(wpa_passphrase SSID key)
- # dhcpcd wlp2s0
- 4.2.1 check connection condition:
- # iw dev wlp2s0 link
- 5. edit mirrorlist:
- # vi /etc/pacmand/mirrorlist
- 6. update mirrorlist:
- # pacman -Syy
- 7. install base system:
- # pacstrtap /mnt base base-devel
- 8. automount:
- # genfstab -U -p /mnt >> /mnt/etc/fstab
- 9. goto new sys:
- # arch-chroot /mnt
- 10. set hostname:
- # echo newhostname >> /etc/hostname
- 11. set time:
- # ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime
- or
- # timedatectl set-timezone Europa/Moscow
- 12. set locale & system language:
- #sed -i s/^#en_US.UTF/en_US.UTF/ /etc/locale.gen
- #sed -i s/^#ru_RU.UTF/ru_RU.UTF/ /etc/locale.gen
- #echo LANG=en_US.UTF-8 > /etc/locale.conf
- #setxkbmap -layout "us,ru"
- #setxkbmap -option "grp:ctrl_shift_toggle,grp_led:scroll"
- #locale-gen
- 13.
- # mkinitcpio -p linux
- 14. GRUB:
- # pacman -S grub-bios os-prober
- (grub-utf for utf)
- # vi /etc/default/grub
- # os-prober
- # grub-mkconfig -o /boot/grub/grub.cfg
- # vi /boot/grub/grub.cfg
- # grub-install /dev/sda (sdx not sdx1)
- 15. wifi:
- # pacman -S iw dialog wpa_supplicant wpa_actiond
- 15.1.0 wifi settigs:
- autocreate profile to /etc/netctl:
- # wifi-menu -o
- # netctl start name_profile
- 15.1.2 autostart connection:
- # netctl enable name_profile
- # systemctl enable dhcpd.service
- 16. user & passwords:
- 16.1 root password:
- # passwd
- 16.2 create user & set password:
- # useradd -m -s /bin/bash username
- # echo "username ALL=(ALL):ALL" >> /ect/sudoers
- # passwd username
- 17.
- # pacman -S bash bash-comletion vim
- 18. Video drivers:
- # lspci | grep VGA
- # pacman -Ss xf86-video
- example:
- # pacman -S xf86-video-nvidia
- # pacman -S xf86-video-intel
- # pacman -S xf86-video-ati
- 19. X & wm :
- # pacman -S xorg-server xorg-utils xorg-apps
- # pacman -S xorg-xinit xterm fluxbox
- 20. Touchpad Synaptics:
- # pacman -S xf86-input-synaptics
- # cp /usr/share/X11/xorg.conf.d/50-synaptics.conf /etc/X11/xorg.conf.d/
- 21. sound:
- # pacman -S alsa-lib alsa-utils alsa-oss
- 22. fonts:
- # pacman -S ttf-dejavu
- # exit
- # umount /mnt
- # reboot
- boot like new user
- auto start X at login:
- $echo "exec startx" >> ~/.bash_profile
- $echo "exec /usr/bin/startfluxbox" >> ~/.xinitrc
- $echo "/usr/bin/fluxbox" >> ~/.fluxbox/startup
- $sudo reboot
- what install more:
- firefox vlc pcmanfm epdfview viewnior wget scrot
- rxvt-unicode mplayer rtorrent profanity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement