Skip to content

Instantly share code, notes, and snippets.

@BoberMod
Last active January 9, 2021 12:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoberMod/8658e9f65743b07261c1125f315a7125 to your computer and use it in GitHub Desktop.
Save BoberMod/8658e9f65743b07261c1125f315a7125 to your computer and use it in GitHub Desktop.
pacman -Syy
pacman -S reflector
reflector -c "Ukraine" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
Смотрим диски:
fdisk -l
Разметка:
cfdisk /dev/sd*
Delete current - create new - primary - Bootable - Write - Quit
mkfs.ext4 /dev/sd*1
mount /dev/sd*1 /mnt
pacstrap -i /mnt base base-devel
genfstab -U -p /mnt >> /mnt/etc/fstab
Проверяем:
cat /mnt/etc/fstab
arch-chroot /mnt /bin/bash
nano /etc/local.gen
Раскоментируем
locale-gen
ln -sf /usr/share/zoneinfo/Europe/Kiev /etc/localtime
Задаем имя ПК:
echo home > /etc/hostname
nano /etc/hosts
Добавляем строку:
127.0.1.1 home.localdomain home
systemctl enable dhcpcd
passwd
pacman -S grub (os-prober)
grub-install /dev/sd*
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
-----------------------
Входим в систему под рутом
useradd -m -g users -G wheel -s /bin/bash bobermod
passwd bobermod
EDITOR=nano visudo
Раскоментируем
%wheel ALL=(ALL) ALL
exit
------------------------
Входим в систему под юзером
sudo pacman -S pulseaudio pulseaudio-alsa
sudo pacman -S xorg xorg-xinit
Выбираем драйвер
echo "exec startkde" > ~/.xinitrc
sudo pacman -S plasma-desktop
sudo pacman -S konsole kate dolphin firefox
startx
sduo pacman -S sddm
sudo systemctl enable sddm.service
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment