■GZBOXにdebian bookworm版を入れてみた。 GZBOXミニPC 小型pc Windows 11 Pro搭載 https://www.amazon.co.jp/gp/product/B0CJMP4JG7/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1 ■デュアルブートしようと思ったが、搭載されていたWin11Proが、 ライセンス認証は通るが期限がついており、ボリュームライセンスにだったのでつぶすことにした。 https://na-cha.net/2019/07/14/windows_msofficial/ ■UEFIブートなので、Windows11ProからBIOS画面を出すのは以下 [設定] > [更新とセキュリティ] > [回復] を実行し、[PC の起動をカスタマイズする] の下にある [今すぐ再起動] を選択 次の画面から、[トラブルシューティング] > [詳細オプション] > [UEFI ファームウェアの設定] > [再起動] ■EFIに対応したdebian bookwormを入れてみる https://www.debian.org/releases/bookworm/debian-installer/ $ wget http://cdimage.debian.org/debian-cd/12.2.0/amd64/iso-dvd/debian-12.2.0-amd64-DVD-1.iso $ sudo fdisk -l debian-12.2.0-amd64-netinst.iso Disk debian-12.2.0-amd64-netinst.iso: 628 MiB, 658505728 bytes, 1286144 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x52bf7ba9 Device Boot Start End Sectors Size Id Type debian-12.2.0-amd64-netinst.iso1 * 0 1286143 1286144 628M 0 Empty debian-12.2.0-amd64-netinst.iso2 4476 23451 18976 9.3M ef EFI (FAT-12/16/32) $ sudo dd if=avtemp/debian-12.2.0-amd64-netinst.iso of=/dev/sdc $ sudo fdisk -l /dev/sdc Disk /dev/sdc: 7.61 GiB, 8166309888 bytes, 15949824 sectors Disk model: USB SD Reader Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x52bf7ba9 Device Boot Start End Sectors Size Id Type /dev/sdc1 * 0 1286143 1286144 628M 0 Empty /dev/sdc2 4476 23451 18976 9.3M ef EFI (FAT-12/16/32) ■taskselでは以下を選択 $ tasksel --list-tasks i desktop Debian デスクトップ環境 u gnome-desktop GNOME u xfce-desktop Xfce u gnome-flashback-desktop GNOME Flashback u kde-desktop KDE Plasma u cinnamon-desktop Cinnamon i mate-desktop MATE u lxde-desktop LXDE u lxqt-desktop LXQt u web-server Web サーバ i ssh-server SSH サーバ u laptop ノート PC ■sudo を使えるようにする $ lsb_release -d No LSB modules are available. Description: Debian GNU/Linux 12 (bookworm) $ su root -c '/usr/sbin/usermod -a -G sudo labunix' $ exit $ id | awk -F\, '{for(a=1;a<=NF;a++){if($a ~ /sudo/){print $a}}}' 27(sudo) ■「source.list」に「contrib」と「non-free」を追加する。 $ grep "^deb " /etc/apt/sources.list deb http://deb.debian.org/debian/ bookworm main contrib non-free-firmware non-free deb http://security.debian.org/debian-security bookworm-security main contrib non-free-firmware non-free deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free-firmware non-free $ sudo apt-get update ■RDP接続できるようにする $ sudo apt -y install xrdp tigervnc-standalone-server $ sudo systemctl enable xrdp Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable xrdp $ sudo gpasswd xrdp -a labunix $ sudo gpasswd ssl-cert -a labunix $ sudo systemctl start xrdp $ sudo sed -i -e 's%port=3389%port=tcp://:3389%' /etc/xrdp/xrdp.ini $ sudo systemctl restart xrdp ■GRUBメニューでEUFI設定、つまりBIOS設定画面に落ちることができるが、grubメニューを介さない方法は以下。 $ sudo systemctl reboot --firmware-setup ■起動中のefiを見ておく ※インストーラを再度起動するときなど。インストールメディアのディレクトリ構成を見ておいた方が「find」するときに区別しやすい。 $ sudo ls /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/debian/grubx64.efi $ sudo mount -o loop debian-12.2.0-amd64-netinst.iso /media/sdd1/ mount: /media/sdd1: WARNING: source write-protected, mounted read-only. $ ls /media/sdd1/EFI/boot/ bootia32.efi bootx64.efi grubia32.efi grubx64.efi $ sudo umount /media/sdd1 grub> ls root=(hd0,gpt1) find /EFI/boot/bootx64.efi chainloader /EFI/boot/bootx64.efi boot