EDIT: Convert your Fedora Silverblue to HTPC with Kodi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

after reading through comments bellow the article I decided to do a few changes to the article to make the guide simpler and better.

Changes:
1. Installation of Fedora Silverblue
- Create only the root user during the installation with some password. We will create a user for Kodi later without password.
+ Don't create any user during the installation, just set root password. We will create a user for Kodi later.

Whole second step (2. Booting to terminal) will be removed
Whole third step (3. Creation of user for Kodi) will be replaced by following
3. Creation of user for Kodi
Go through GNOME initial setup and create a kodi user. You will need to provide a password.
Created kodi user will have sudo permissions, but we will remove them at the end.

In this step I also recommend to do upgrade of the Fedora Silverblue.
Press Super key (this is the key between ALT and CTRL) and type "terminal".
Then start the upgrade.

`rpm-ostree upgrade`

And reboot the system.

`systemctl reboot`

4. Installation of Kodi from Flathub
- To install the Kodi in flatpak you first need to add a Flathub remote repository.
+ Open terminal and add a Flathub remote repository.

5. Set Kodi as autostart application
- First we need to create the autostart directory for the kodi user, this is easier if you switch to kodi user directly.
+ First we need to create the autostart directory.
- su kodi

- The last thing that will prevent for autostart to work correctly is the GNOME initial setup. To disable it just create a gnome-initial-setup-done file in .config directory of kodi user.
- echo "yes" > /home/kodi/.config/gnome-initial-setup-done
- You can now switch back to root for the next steps.
- exit

Whole seventh step (7. Enable automatic updates) will be replaced by following
7. Enable automatic updates
For HTPC automatic updates we will use systemd timers. First create a /etc/systemd/system/htpc-update.service file with following content.
```
[Unit]
Description=Update HTPC

[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c 'rpm-ostree upgrade; flatpak update -y; systemctl reboot'
```

Then create a /etc/systemd/system/htpc-update.timer file with following content.
```
[Unit]
Description=Run htpc-update.service once a week

[Timer]
OnCalendar=Wed *-*-* 04:00:00
```

Start the timer from terminal.

`systemctl start htpc-update.timer`

You can check if the timer is set by following command.

`systemctl list-timers`

This timer will run at 4 AM each Wednesday. It is recommended to set this to a time when nobody will use the HTPC.

Whole new step will be added behind 7 (7. Remove root permissions)
7. Remove root permissions
Now we don't need root permissions for kodi anymore, so we remove it from wheel group.
To do this type following command to terminal.

`sudo usermod -G kodi kodi`

8. Disable GNOME features
- To do this exit Kodi and open the terminal. Press Super key (this is the key between ALT and CTRL) and type terminal. Once the terminal will be open and you need to type the following commands.
+ To do this you need to type the following commands.

Also the numbering order needs to be changed.
I hope this is not too much changes for article update, but it removes the need to layer new package and the tricky part with grub.

Regards,
mkonecny

Sent with [ProtonMail](https://protonmail.com) Secure Email.
_______________________________________________
Fedora Magazine mailing list -- magazine@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to magazine-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/magazine@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Devel]     [EPEL Announce]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [ET Management Tools]     [Yum Users]     [Fedora Art]     [Fedora ARM]

  Powered by Linux