Код: Выделить всё
# dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && syncЗагрузил USB-носитель и выбрал Boot Arch Linux (x86_64) UEFI
После загрузки мы получаем консоль.
Код: Выделить всё
passwd root
useradd -m -G wheel username
passwd usernameКод: Выделить всё
systemctl start sshd.service
ip aКод: Выделить всё
ssh username@ip address
suКод: Выделить всё
setfont cyr-sun16Код: Выделить всё
nano /etc/locale.genКод: Выделить всё
locale-genКод: Выделить всё
export LANG=ru_RU.UTF-8Код: Выделить всё
ping -c3 ya.ruКод: Выделить всё
parted -a optimal /dev/sda
mklabel gpt
unit mib
mkpart ESP fat32 1 515
name 1 boot
set 1 boot on
mkpart primary linux-swap 515 4539
name 2 swap
mkpart primary 4539 -1
name 3 rootfs
print
quitКод: Выделить всё
lsblk -fКод: Выделить всё
mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.f2fs -l SSD /dev/sda3Код: Выделить всё
modprobe f2fsКод: Выделить всё
mount -t f2fs /dev/sda3 /mnt
mkdir -p /mnt/boot
mkdir -p /mnt/home
mount /dev/sda1 /mnt/bootКод: Выделить всё
pacstrap -i /mnt base base-develКод: Выделить всё
genfstab -U /mnt >> /mnt/etc/fstab
nano /mnt/etc/fstabКод: Выделить всё
arch-chroot /mnt /bin/bashКод: Выделить всё
nano /etc/locale.genКод: Выделить всё
en_US.UTF-8 UTF-8
en_US ISO-8859-1
ru_RU.KOI8-R KOI8-R
ru_RU.UTF-8 UTF-8
ru_RU ISO-8859-5Код: Выделить всё
locale-genКод: Выделить всё
echo LANG=ru_RU.UTF-8 > /etc/locale.conf
export LANG=ru_RU.UTF-8Код: Выделить всё
nano /etc/vconsole.conf
KEYMAP=ru
FONT=cyr-sun16Код: Выделить всё
echo myhostname > /etc/hostname Код: Выделить всё
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
hwclock --systohcКод: Выделить всё
pacman -S f2fs-toolsКод: Выделить всё
nano /etc/mkinitcpio.conf
MODULES="crypto-crc32 crc32c-intel crc32c-generic"Код: Выделить всё
mkinitcpio -p linuxКод: Выделить всё
lsmod | grep f2fsКод: Выделить всё
pacman -S intel-ucodeКод: Выделить всё
bootctl installКод: Выделить всё
nano /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=/dev/sda3 rwКод: Выделить всё
nano /boot/loader/loader.conf
timeout 0
default archКод: Выделить всё
ip aКод: Выделить всё
systemctl enable dhcpcd@enp3s0.serviceКод: Выделить всё
pacman -S iw wpa_supplicant dialogКод: Выделить всё
pacman -S openssh
systemctl enable sshd.serviceКод: Выделить всё
passwd rootКод: Выделить всё
useradd -m -G wheel,audio,lp,disk,power,storage,sys,network,video -s /bin/bash usernameКод: Выделить всё
passwd usernameКод: Выделить всё
EDITOR=nano visudoКод: Выделить всё
exitКод: Выделить всё
umount -R /mntКод: Выделить всё
reboot