Установка и первичная настройка дистрибутива Arch Linux: различия между версиями

м code
м Добавлена секция для TPM2 разблокировки
Строка 144: Строка 144:
sudo sbctl sign -s /efi/EFI/Linux/arch-linux-fallback.efi
sudo sbctl sign -s /efi/EFI/Linux/arch-linux-fallback.efi
sudo pacman -S linux</pre>
sudo pacman -S linux</pre>
=== TPM2 разблокировка ===
<pre>$ sudo systemd-cryptenroll /dev/gpt-auto-root-luks --recovery-key
Keep this key safe. Keep it hidden. Moving on, we'll now enroll our system firmware and Secure Boot state. Normally, this would allow our TPM to unlock our encrypted drive, as long as the state hasn't changed. If you're particularly paranoid, you can add --tpm2-with-pin=yes, so we get prompted for a PIN code on boot.
$ sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7  /dev/gpt-auto-root-luks
Now we need to reboot and test this. If all goes well, we should be able to unlock our encrypted root partition with just a PIN code.</pre>


=== Завершения настройки базовой системы ===
=== Завершения настройки базовой системы ===
Строка 155: Строка 163:


=== Установка требуемых пакетов и приложений ===
=== Установка требуемых пакетов и приложений ===
  pacman -S alacritty nextcloud-client android-tools android-udev filezilla gimp godot gvfs inkscape keepassxc libreoffice-fresh lib32-ncurses libreoffice-fresh-ru libva-utils mesa-demos mpv noto-fonts noto-fonts-cjk noto-fonts-emoji qbittorrent steam telegram-desktop tesseract tesseract-data-eng tesseract-data-rus blender code
  pacman -S alacritty nextcloud-client android-tools android-udev filezilla gimp godot gvfs inkscape keepassxc libreoffice-fresh lib32-ncurses libreoffice-fresh-ru libva-utils mesa-demos mpv noto-fonts noto-fonts-cjk noto-fonts-emoji qbittorrent steam telegram-desktop tesseract tesseract-data-eng tesseract-data-rus blender code vlc
  trizen -S --noedit google-chrome-dev android-studio anydesk-bin webcord gtk2-patched-filechooser-icon-view assistant
  trizen -S --noedit google-chrome-dev android-studio anydesk-bin webcord gtk2-patched-filechooser-icon-view assistant


Строка 170: Строка 178:


=== Настройка путей и монтирования в домашнем каталоге ===
=== Настройка путей и монтирования в домашнем каталоге ===
  mkdir -pv /home/$USER/{Desktop,Downloads,Documents,Pictures,Public,Sounds,Templates,VPNs,Work/Builds/ArchLinux}
Тут необходимо решить проблему с тем, что русскоязычные папки уже могут быть созданы.
 
  mkdir -pv /home/$USER/{Desktop,Databases,Downloads,Documents,Pictures,Public,Sounds,Templates,VPNs,Work/Builds/ArchLinux}
  mkdir -v /home/$USER/{Music,Videos} # Для нетбука или ноутбука
  mkdir -v /home/$USER/{Music,Videos} # Для нетбука или ноутбука
  ln -s ~/.local/share/Steam ~/Steam
  ln -s ~/.local/share/Steam ~/Steam


=== Импортирование конфигурации ===
=== Импортирование конфигурации ===
  git clone <nowiki>https://git.tmon8.ru/comminux/dotfiles.git</nowiki> ~/Work/dotfiles
  git clone <nowiki>https://git.tmon8.ru/comminux/dotfiles.git</nowiki> ~/Work/dotfiles
  cd ~/Work/dotfiles
  cd ~/Work/dotfiles