|
|
@@ -0,0 +1,306 @@ |
|
|
1. select keymap |
|
|
2. disk partitions |
|
|
3. configure mirror list |
|
|
4. base system install |
|
|
5. configure fstab |
|
|
6. configure hostname |
|
|
7. configure locale | configure timezone |
|
|
8. configure hardclock |
|
|
9. configure network |
|
|
10. configure pacman |
|
|
11. configure mkinitcpio |
|
|
12. root password |
|
|
13. install bootloader | configure bootloader |
|
|
14. desktop environments |
|
|
15. display manager |
|
|
16. window manager |
|
|
|
|
|
|
|
|
*************************************************** |
|
|
# installation arch linux step-by-step # |
|
|
*************************************************** |
|
|
|
|
|
1. select keymap |
|
|
|
|
|
command : locadkeys us |
|
|
|
|
|
2. disk partitons | create disk |
|
|
|
|
|
command : lsblk -l |
|
|
|
|
|
command : cfdisk or cfdisk -z |
|
|
|
|
|
create disk |
|
|
|
|
|
/dev/sda1 boot |
|
|
/dev/sda2 root |
|
|
/dev/sda3 home |
|
|
/dev/sda4 swap |
|
|
|
|
|
disk size |
|
|
|
|
|
boot - 500mb, |
|
|
root - 100 gb, |
|
|
home - 50gb, |
|
|
swap - 8gb |
|
|
|
|
|
command : lsblk -l |
|
|
|
|
|
command : mkfs.ext4 /dev/sda1 |
|
|
|
|
|
command : mkswap /dev/sd2 |
|
|
|
|
|
command : mkfs.ext4 /dev/sda3 |
|
|
|
|
|
command : swapon /dev/sda2 |
|
|
|
|
|
command : mount /dev/sda1 /mnt |
|
|
|
|
|
command : mkdir -p /mnt/home |
|
|
|
|
|
command : mount /dev/sda3 /mnt/home |
|
|
|
|
|
command : ping www.google.com |
|
|
|
|
|
3. configure mirror list |
|
|
|
|
|
command : nano /etc/pacman.d/mirrorlist |
|
|
|
|
|
4. install base system |
|
|
|
|
|
command : pacstrap -i /mnt base base-devel |
|
|
|
|
|
5. configure fstab |
|
|
|
|
|
command : genfstab -U -p /mnt >> /mnt/etc/fstab |
|
|
=============================================== |
|
|
# command : nano /mnt/etc/fstab |
|
|
or |
|
|
# command : genfstab -U -p /mnt : sed `s/rw,realtime,data=ordered/defaults,realtime/` >> /mnt/etc/fstab |
|
|
**************************************************************************** |
|
|
|
|
|
6. configure hostname | add hostname |
|
|
|
|
|
command : arch-chroot /mnt /bin/bash |
|
|
|
|
|
command : echo Lh4cKg > /etc/hostname |
|
|
|
|
|
command : hostnamectl set-hostname Lh4cKg |
|
|
|
|
|
7. configure locale | configure timezone |
|
|
|
|
|
command : nano /etc/locale.gen |
|
|
|
|
|
unlock '#' |
|
|
|
|
|
en_US.UTF-8 UTF-8 |
|
|
en_US ISO-8859-1 |
|
|
|
|
|
command : locale-gen |
|
|
|
|
|
command : echo LANG=en_US.UTF-8 > /etc/locale.conf |
|
|
|
|
|
command : export LANG=en_US.UTF-8 |
|
|
|
|
|
command : ln -s /usr/share/zoneinfo/Asia/Tbilisi /etc/localtime |
|
|
|
|
|
8. configure hardclock |
|
|
|
|
|
command : hwclock --systohc --utc |
|
|
|
|
|
9. configure network |
|
|
|
|
|
command : sudo pacman -S networkmanager dnsmasq |
|
|
|
|
|
command : pacman -S network-manager-applet networkmanager-dispatcher-ntpd |
|
|
|
|
|
command : pacman -S wireless_tools wpa_supplicant wpa_actiond dialog |
|
|
|
|
|
command : systemctl enable NetworkManager.service # |
|
|
|
|
|
command : systemctl enable dhcpcd.service # locale network |
|
|
|
|
|
command : ip link |
|
|
|
|
|
10. configure pacman |
|
|
|
|
|
command : nano /etc/pacman.conf |
|
|
|
|
|
unluck '#' |
|
|
[multilib] |
|
|
Include = /etc/pacman.d/mirrorlist |
|
|
|
|
|
11. configure mkinitcpio |
|
|
|
|
|
command : mkinitcpio -p linux |
|
|
|
|
|
12. root password |
|
|
|
|
|
command : passwd |
|
|
|
|
|
*=== add user ===* |
|
|
|
|
|
command : useradd -m -g users -G wheel -s /bin/bash lh4ckg # lh4ckg is my user |
|
|
|
|
|
command : passwd lh4ckg |
|
|
|
|
|
command : pacman -Syy |
|
|
|
|
|
command : pacman -S sudo |
|
|
|
|
|
command : nano /etc/sudoers |
|
|
|
|
|
change root |
|
|
root ALL=(ALL) ALL |
|
|
|
|
|
to |
|
|
lh4ckg ALL=(ALL) ALL |
|
|
|
|
|
=========================== |
|
|
or |
|
|
uncoment "#" |
|
|
|
|
|
%wheel ALL=(ALL) ALL |
|
|
=========================== |
|
|
|
|
|
13. install bootloader | configure bootloader |
|
|
|
|
|
command : pacman -S grub-bios |
|
|
|
|
|
command : grub-install --target=i386-pc --recheck /dev/sda |
|
|
|
|
|
or |
|
|
|
|
|
command : grub-install --force /dev/sda |
|
|
|
|
|
#command : cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo |
|
|
|
|
|
command : pacman -S os-prober dosfstools syslinux |
|
|
|
|
|
command : grub-mkconfig -o /boot/grub/grub.cfg |
|
|
|
|
|
command : exit |
|
|
|
|
|
command : umount /mnt/home |
|
|
command : umount /mnt |
|
|
|
|
|
command : reboot |
|
|
|
|
|
============================================= |
|
|
choose grub arch linux and root use |
|
|
|
|
|
************************************************************************** |
|
|
# Installing Display Manager, Desktop Environment and Window Manager # |
|
|
************************************************************************** |
|
|
|
|
|
************************************************************************** |
|
|
=== XFCE 4.12 === |
|
|
************************************************************************** |
|
|
|
|
|
command : pacman -S sudo |
|
|
|
|
|
command : pacman -S xorg |
|
|
|
|
|
command : sudo pacman -S alsa-utils |
|
|
|
|
|
command : sudo pacman -S ttf-dejavu ttf-ms-fonts |
|
|
|
|
|
command : sudo pacman -S ttf-google-fonts-hg ttf-google-fonts-git |
|
|
|
|
|
command : sudo pacman -S xfce4 |
|
|
|
|
|
command : sudo pacman -S gamin |
|
|
|
|
|
command : sudo pacman -S gstreamer0.10-base-plugins |
|
|
|
|
|
command : startxfce4 #graphical interface xfce4 DE |
|
|
|
|
|
command : su |
|
|
|
|
|
command : sudo pacman -S lxdm |
|
|
|
|
|
command : systemctl enable lxdm.service # done |
|
|
or |
|
|
command : command : systemctl -f enable lxdm |
|
|
|
|
|
or |
|
|
============================== |
|
|
command : cp /etc/skel/.xinitrc ~ |
|
|
command : nano .xinitrc |
|
|
============================== |
|
|
************************************************ |
|
|
install drivers |
|
|
************************************************ |
|
|
|
|
|
command : sudo pacman -S mesa |
|
|
|
|
|
command : sudo pacman -S nvidia lib32-nvidia-utils |
|
|
|
|
|
command : sudo pacman -S xf86-input-synaptics |
|
|
|
|
|
command : reboot |
|
|
|
|
|
|
|
|
********************************************************************** |
|
|
=== pantheon === |
|
|
********************************************************************** |
|
|
docs -> https://wiki.archlinux.org/index.php/Pantheon#Installation |
|
|
|
|
|
add repo |
|
|
command : sudo vim /etc/pacman.conf: |
|
|
|
|
|
[pantheon] |
|
|
SigLevel = Optional |
|
|
Server = http://pkgbuild.com/~alucryd/$repo/$arch |
|
|
|
|
|
command : sudo pacman -S pantheon-session-bzr |
|
|
cerbere-bzr |
|
|
gala-bzr |
|
|
wingpanel-bzr |
|
|
slingshot-launcher-bzr |
|
|
plank-bzr |
|
|
|
|
|
********************************************************************** |
|
|
=== LXQT === |
|
|
********************************************************************** |
|
|
|
|
|
command : sudo sh -c 'echo "[repolxqt]" >> /etc/pacman.conf' |
|
|
|
|
|
command : sudo sh -c 'echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf' |
|
|
|
|
|
command : sudo sh -c 'echo "Server = http://esclapion.free.fr/lxqt/$arch/repolxqt/" >> /etc/pacman.conf' |
|
|
|
|
|
command : sudo pacman -Sy lxqt-desktop-git openbox |
|
|
|
|
|
command : sudo pacman -Sy pcmanfm-qt-git lximage-qt-git |
|
|
|
|
|
command : sudo pacman -S sddm-git |
|
|
|
|
|
command : sudo systemctl enable sddm |
|
|
|
|
|
*************************************************************** |
|
|
=== install package-query and yaourt === |
|
|
*************************************************************** |
|
|
|
|
|
command : curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz |
|
|
command : tar zxvf package-query.tar.gz |
|
|
command : cd package-query |
|
|
command : makepkg -si |
|
|
command : cd .. |
|
|
command : curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz |
|
|
command : tar zxvf yaourt.tar.gz |
|
|
command : cd yaourt |
|
|
command : makepkg -si |
|
|
command : cd .. |
|
|
|
|
|
or |
|
|
|
|
|
add repository |
|
|
|
|
|
[archlinuxfr] |
|
|
SigLevel = Never |
|
|
Server = http://repo.archlinux.fr/$arch |
|
|
|
|
|
to /etc/pacman.conf, and run: |
|
|
|
|
|
command : pacman -Sy yaourt |