Skip to content

Instantly share code, notes, and snippets.

@miyaokamarina
Last active September 23, 2018 00:42
Show Gist options
  • Save miyaokamarina/9b465fb4c6f94ad43e5049d70632b5df to your computer and use it in GitHub Desktop.
Save miyaokamarina/9b465fb4c6f94ad43e5049d70632b5df to your computer and use it in GitHub Desktop.
su
mount /dev/nvme0n1p3 /mnt
mkdir /mnt/boot
mount /dev/nvme0n1p2 /mnt/boot
mkdir /mnt/boot/efi
mount /dev/nvme0n1p1 /mnt/boot/efi
#
echo '
Server = https://mirror.aur.rocks/$repo/os/$arch
Server = https://mirror.rol.ru/archlinux/$repo/os/$arch
Server = https://mirror.yandex.ru/archlinux/$repo/os/$arch
' > /etc/pacman.d/mirrorlist
sed -i 's/#TotalDownload/TotalDownload/' /etc/pacman.conf
sed -i 's/#Color/Color/' /etc/pacman.conf
#
pacstrap /mnt base base-devel
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
#
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
sed -i 's/#ja_JP.UTF-8 UTF-8/ja_JP.UTF-8 UTF-8/' /etc/locale.gen
sed -i 's/#ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
echo 'mm' > /etc/hostname
echo '
127.0.0.1 localhost
::1 localhost
127.0.1.1 mm.localdomain mm
' > /etc/hosts
#
mkinitcpio -p linux
#
sed -i 's/#TotalDownload/TotalDownload/' /etc/pacman.conf
sed -i 's/#Color/Color/' /etc/pacman.conf
sed -Ezi \
's/#\[multilib\]\n#Include = \/etc\/pacman\.d\/mirrorlist/[multilib]\nInclude = \/etc\/pacman.d\/mirrorlist/' \
/etc/pacman.conf
pacman -S grub efibootmgr intel-ucode
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
#
passwd
pacman -S plasma libglvnd phonon-qt5-gstreamer libx264 \
telegram-desktop dolphin krita gwenview okular spectacle kdeconnect libreoffice-fresh \
ksysguard ktorrent konsole inkscape clementine mpv \
ark kate kcharselect\
sddm \
sddm-kcm \
zsh
systemctl enable sddm.service
useradd -m -G wheel -s /bin/zsh mm
passwd mm
#
visudo
#
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment