Участник с: 08 февраля 2022
|
passwd root Phu#a2&nuT
bash
lsblk
ping -c1 google.com
cfdisk /dev/sda
dos
mkfs.ext4 -L boot /dev/sda1
mount /dev/sda1 /mnt
cd /mnt
dd if=/dev/random of=/mnt/key_a.bin bs=1 count=6291456
cryptsetup -h sha512 -c aes-xts-plain64 -s 512 luksFormat /dev/sdb -d key.bin
YES
cryptsetup -d=key_a.bin luksOpen /dev/sdb D5A
pvcreate /dev/mapper/D5A
vgcreate D5A /dev/mapper/D5A
(для диска 500 гб)
lvcreate -L20G -nswap D5A
lvcreate -L20G -ntmp D5A
lvcreate -L160G -nroot D5A
lvcreate -l 100%FREE -nhome D5A
mkfs.ext4 -L tmp /dev/mapper/D5A-tmp
mkfs.ext4 -L root /dev/mapper/D5A-root
mkfs.ext4 -L home /dev/mapper/D5A-home
mkswap -L swap /dev/mapper/D5A-swap
lsblk
cd ..
umount /mnt
mount /dev/mapper/D5A-root /mnt
cd /mnt
mkdir boot home tmp
mount /dev/mapper/D5A-home /mnt/home
mount /dev/mapper/D5A-tmp /mnt/tmp
swapon /dev/mapper/D5A-swap
mount /dev/sda1 /mnt/boot
nano /etc/pacman.d/mirrorlist
Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
nano /etc/pacman.conf
TotalDownload
pacman -Sy gpm
systemctl start gpm.service
pacstrap -i /mnt base base-devel grub os-prober bash-completion nano elinks mc netctl dialog
genfstab -p -U /mnt > /mnt/etc/fstab
arch-chroot /mnt /bin/bash
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
nano /etc/locale.gen
ru_RU.UTF-8 UTF-8
en_US.UTF-8 UTF-8
locale-gen
nano /etc/locale.conf
LANG=ru_RU.UTF-8
nano /etc/vconsole.conf
KEYMAP=ru
FONT="cyr-sun16"
nano /etc/hostname
localhost
nano /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
useradd -m -g users -G wheel -s /bin/bash sergiy
nano /etc/sudoers
#root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
passwd root Phu#a2&nuT
passwd sergiy
nano /etc/pacman.d/mirrorlist
Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
nano /etc/pacman.conf
TotalDownload
pacman -S xorg xorg-drivers xorg-xinit xfce4 xfce4-goodies lightdm lightdm-gtk-greeter ttf-dejavu
systemctl enable dhcpcd.service
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="cryptdevice=UUID=528f38c3-7ad3-4969-90e3-26ee4bd68daa:D5A
root=/dev/mapper/D5A-root cryptkey=UUID=484d042e-5c0b-4101-92ed-44b557553410:ext4:key_a.bin"
GRUB_ENABLE_CRYPTODISK=1
nano /etc/mkinicpio.conf
FILES=(/boot/key.bin)
HOOKS=(base udev autodetect modconf block keyboard encrypt lvm2 filesystems fsck shutdown)
mkinitcpio -p linux
grub-install --target=i386-pc --recheck --force /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
cd /
umount -R /mnt
reboot
(способы запуска xfce)
1.
startxfce4
2.
nano /home/sergiy/.xinitrc
exec /usr/bin/xfce4-session
startx
3.
sudo systemctl start lightdm.service
|