Simple Media Centre PC Build Using Fedora-IOT
-
Wayland-only system with Sway 1.x compositor
-
RPMFusion repository (for mpv, etc)
-
firewalld and SELinux not disabled ;)
-
transmission-daemon downloading engine
-
no login screen, boots straight into a Simple "Commander"-style app, for managing media content:
- Remote Control Android App:
- Launch new downloads by clicking on any
magnet
link whilst using the browser included in the app!
here, 200 OK response means that the pod was accepted for scheduling by the cloud service
- start with a blank USB stick, and download latest Fedora-IoT (OSTree, iso, x86_64) iso
- create GPT partition table (gdisk or fdisk)
- create FAT32 partitions: partition 1: size 500M, type 1 (EFT); parition 2: type 11 (Microsoft basic)
- format FAT32 parition (mkfs.fat -F 32 /dev/sd�1)
- mount FAT32 parition (to /mnt)
- install grub2-efi-x64-modules.noarch
- grub2-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=BOOT #(Note: Secure boot!)
- replace files in /EFI/BOOT with the one's from the ISO
- copy initrd.img and vmlinuz from /images/pxeboot/ from the iso to the /mnt
- copy and modify the Kickstart file
NEW-KS.CFG
to /mnt; things to modify:- wifi credentials (search for "REDACTED"), installation hard drive selection!, timezone, enable optional features,any other customisation (eg. kparam)
- write the Fedora-IoT .iso file (eg. Fedora-IoT-ostree-x86_64-39-20231103.1.iso) to partition 2 of usb stick: dd if=bleh.iso of=/dev/sd�2 bs=1M status=progress
- Edit the grub.cfg on new EFI partition and add something like this entry:
menuentry 'NEW-KS.CFG' --class fedora --class gnu-linux --class gnu --class os {
set root='(hd0,gpt1)'
linuxefi /vmlinuz inst.repo=hd:/dev/sda2 nomodeset inst.ks=hd:/dev/sda1:/NEW-KS.CFG
initrdefi /initrd.img
}
Finally, Boot the USB stick in the TARGET computer (by selecting the id specified in step#6) and choose the grub option from step #11 (CAUTION: Will wipe hard drive without prompting!!)