<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wirerydr</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wirerydr"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Wirerydr"/>
	<updated>2026-06-19T18:51:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=137025</id>
		<title>Archive talk:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=137025"/>
		<updated>2018-05-17T04:54:26Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To [[User:Klojum|Klojum]] ([[User talk:Klojum|talk]]) - Thank you very much for the &amp;quot;kodi.service&amp;quot; changes re: gettys and plymouth.  I did some testing with these changes, and with them I noticed I no longer get a tty login prompt when I do a &amp;quot;systemctl stop kodi&amp;quot;.  So for now I&#039;m undo&#039;ing your changes, but I will continue to look into this until I figure out what&#039;s wrong with the login prompt.  Once I&#039;ve sorted that out I will reinstate your changes accordingly.  Thanks again for your contribution!&lt;br /&gt;
&lt;br /&gt;
[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:30, 6 December 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guide rewrite==&lt;br /&gt;
I am going to be revising a few sections soon.&lt;br /&gt;
#Firewall: You can leave it enabled and just open the following ports: TCP: 1151, 8080, and UDP: 1900, 9777&lt;br /&gt;
#Pulseaudio: Kodi is fully functional with pulseaudio installed and enabled.&lt;br /&gt;
#Systemd service: If you have GDM installed (and autologin enabled) you do not need any of the service script or other changes so it makes this guide much more simple. As the old saying goes: Keep It Simple Stupid.&lt;br /&gt;
:[[User:Mooninite|Mooninite]] ([[User talk:Mooninite|talk]]) 09:05, 8 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Thanks for the firewall-related tips.  I believe the port-list that should be opened will depend on individual circumstances.  For example on my standalone setup the kodi.bin process is listening on ports TCP (8080, 1147) and UDP (9777, 1900).  Were I to utilize miniDLNA I would have to add TCP port 8200.  Airplay can potentially require TCP (80, 443, 554, 3689, 5297, 5289) and UDP (554, 5289, 5353).  Given that this is a standalone environment and making custom adjustments to the firewall as services are enabled/disabled is an advanced topic, it seems much simpler to leave the firewall disabled - with the caveats already mentioned in the wiki.&lt;br /&gt;
#Pulseaudio still has some deficiencies, such has lacking support for TrueHD or DTS-MA, preventing use of Dolby Pro Logic II, etc.  Refer to [[PulseAudio ]]for some further explanation.  Actually, the only real advantage Pulseaudio offers is non-exclusive use of the audio subsystem, in cases where you&#039;d like (for example) desktop sounds or other apps to co-exist with Kodi.  Since this guide is strongly focused on creating a standalone Kodi environment, Pulseaudio makes little sense to utilize.  Given its deficiencies and lack of countervailing advantages, there&#039;s no reason to utilize PulseAudio.&lt;br /&gt;
#Why would you want GDM to be installed?  It&#039;s just an unnecessary layer of functionality that introduces complexity but offers little/no benefit.  At the very least you&#039;d then have to set up GDM-based auto-login, which is not only extra complexity but a potential security risk.  The spirit of this guide is to create a standalone, lightweight installation of Kodi with minimal additional requirements.  You are exactly right re: KISS, and introducing a dependency on an unnecessary software layer would seem to contravene this.&lt;br /&gt;
You made some earlier edits that removed the section on disabling SELinux.  Kodi may have evolved to the point where it can properly function in an SELinux-Enforcing environment, but it used to have issues.  I will test in an enforcing environment and update the wiki accordingly.  However until I&#039;ve tested it I will revert your changes to restore the SELinux section.&lt;br /&gt;
&lt;br /&gt;
Thanks again for the tips!&lt;br /&gt;
:[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:03, 24 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hope you don&#039;t mind that I added a section for CEC, it was a feature I needed and I thought it may be useful until libcec&amp;gt;=3.0.0 is put into the fedora repos and the rpm in rpmfusion is rebuilt.&lt;br /&gt;
&lt;br /&gt;
:[[User:Slashnull|Slashnull]] ([[User talk:Slashnull|talk]]) 13:46, 15 January 2016 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don&#039;t mind at all Slashnull - TYVM for the contribution, and also for maintaining the existing look-and-feel.  I may reorder things a bit to avoid CEC users from doing a double install of the generic and then CEC-enabled RPMs, but that&#039;s trivial.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 00:20, 18 January 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi Spazticclown - thanks for the video-group contribution.  In my experience this is not actually necessary in order to run Kodi as described in this HowTo - not on any version of Fedora from F19 through to the current F23, anyway.  I believe as long as the user is in group &#039;wheel&#039; (which it is as a result of [[HOW-TO:Install Kodi on Fedora 23 using RPMFusion packages#Starting_the_Installation_and_Creating_a_Kodi_User|step 3.3]]), that is sufficient.  Just to be sure I took a look at my main kodi box running in my livingroom, and confirmed that user Kodi is not present in group &#039;video&#039; (gid 39).  As such I have reverted back to before your change, but I did want to thank you again for your contribution.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 23:51, 7 February 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It seems to me that there are two different objectives, here.  As you say, this is guide, at the moment, is about setting up a minimal dedicated Kodi machine.  However, some people are going to want a machine that can also be used as a more-or-less vanilla Fedora Workstation.  In this situation, you’d likely want to keep firewalld, PulseAudio and GDM, and I think it’s worth mentioning this in the guide if possible.  I’d welcome Mooninite’s method being written up as a separate section of the guide.&lt;br /&gt;
:[[User:Mavit|Mavit]] ([[User talk:Mavit|talk]]) 09:37, 3 May 2018 (UTC)&lt;br /&gt;
&lt;br /&gt;
== SELinux support, clean shutdown ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve been tweaking the startup on my Fedora/Kodi setup, and I have a simpler setup that:&lt;br /&gt;
* Supports shutdown/reboot etc w/o PolicyKit tweaks&lt;br /&gt;
* Allows for adding xrandr tweaks for &amp;quot;Broadcast RGB&amp;quot; etc&lt;br /&gt;
* Doesn&#039;t leave stray dbus processes&lt;br /&gt;
* Has X options for running w/o mouse and giving Kodi control of the screensaver&lt;br /&gt;
* Supported SELinux enforcing out of the box w/o any policy hacks&lt;br /&gt;
* Supports clean shutdown of Kodi on system shutdown/reboot&lt;br /&gt;
&lt;br /&gt;
I&#039;ve added this to the bottom of the page at [[HOW-TO:Install_Kodi_on_Fedora_26_using_RPMFusion_packages#ALTERNATIVE_Login_based_startup]]&lt;br /&gt;
&lt;br /&gt;
== firewalld knows about Kodi, now ==&lt;br /&gt;
&lt;br /&gt;
Kodi 18 will [https://github.com/xbmc/xbmc/pull/13845 include] service definitions for &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, which will allow the instructions for opening the firewall to be simplified slightly.&lt;br /&gt;
:[[User:Mavit|Mavit]] ([[User talk:Mavit|talk]]) 09:47, 3 May 2018 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t had the chance to test them yet, Mavit, but I like pretty-much all of the Alternative Startup aspects that you have added - thank you very much for investing in this Wiki.  I&#039;m especially interested to hear that Kodi v18 ships with Firewalld definitions - I&#039;ve never been totally comfortable with disabling the firewall even on minimalistic installations.  At this moment I do not see Kodi v18 (alpha) in the RPMFusion repositories.  However as it happens I have a setup which utilizes Kodi built directly from the Master branch of the [https://github.com/xbmc/xbmc Kodi GitHub repo].  So I will test your alternative setup with Kodi 18, and prepare some Wiki changes to be rolled in whenever Kodi v18 gets released and appears in RPMFusion.&lt;br /&gt;
&lt;br /&gt;
I personally lean towards the approach of presenting two separate guides:  This (minimalistic) approach, and a separate guide explaining how to install/configure Kodi on a more regularized workstation-based installation of Fedora.  That 2nd guide would presumably be much more straightforward in that most of the audio/visual things would have already been prepared for the user&#039;s specific environment at installation time.  Crosslinks to each other could be added near the beginning of each guide enabling choice, and also to [[HOW-TO:Install Kodi for Linux#Fedora]] for the sake of completeness.&lt;br /&gt;
&lt;br /&gt;
However, someone else (other than me) will have to step forward to create and maintain that 2nd guide, as I do not have any non-minimalistic Fedora installations with which to develop this guide.&lt;br /&gt;
:[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 04:53, 17 May 2018 (UTC)&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130562</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130562"/>
		<updated>2017-08-31T00:10:16Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated Kodi from 17.3 to 17.4&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 26 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 26 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 26 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [https://download1.rpmfusion.org/free/fedora/updates/26/x86_64/repoview/kodi.html Kodi v17.4 (Krypton)] from the [https://download1.rpmfusion.org/free/fedora/updates/26/x86_64/repoview/index.html rpmfusion-free] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [https://www.gigabyte.com/Motherboard/GA-F2A88XM-D3H-rev-30#ov Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [https://www.amd.com/en-us/products/processors/desktop/a-series-apu# AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 460 SuperClocked 1024MB PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [https://www.wdc.com/en-um/products/internal-storage/wd-black-desktop.html Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [https://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [https://usa.denon.com/us/product/hometheater/receivers/avr3808ci Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [https://shop.panasonic.com/support-only/TH-50PZ800U.html Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 26 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# This guide shows how to either enable TCP port 8080 (for Kodi Remote Control), or fully disable the local Firewalld daemon.  It also shows how to disable SELinux.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 26, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 26 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 26 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 26 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download (64-bit 2.2GB iso image). Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 26.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adjusting or Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  It greatly enhances security, but it can interfere with certain networking features of Kodi such as uPnP, file-sharing, remote-control apps, etc.  Because of this, two steps are shown below.  One step opens TCP port 8080, which allows Kodi to be remotely controlled and for remote-control apps such as [[Kore]] or [https://yatse.tv/redmine/projects/yatse Yatse] to work properly.  The second step completely disables Firewalld, and is intended for situations where other network connectivity is required (e.g. uPnP, file-sharing, AirPlay, Bonjour, etc.).  Only one or the other of these steps should be performed depending on your needs.  If you have no need for this kind of network connectivity, then it is probably better to skip both steps and leave Firewalld running as-is.&lt;br /&gt;
&lt;br /&gt;
==== Enable TCP Port 8080 to Enable Kodi Remote-Control ====&lt;br /&gt;
The following command adds a new permanent rule to Firewalld that allows access via TCP port 8080.  This step assumes that your local network is 192.168.0.0/24.  If it is something else, then adjust the command accordingly.&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you &#039;&#039;&#039;just &#039;&#039;&#039; want open TCP port 8080 to enable remote control of Kodi.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo firewallctl zone --permanent FedoraServer add rich-rule &#039;rule family=&amp;quot;ipv4&amp;quot; source address=&amp;quot;192.168.0.0/24&amp;quot; port port=&amp;quot;8080&amp;quot; protocol=&amp;quot;tcp&amp;quot; accept&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Disable Firewalld Entirely ====&lt;br /&gt;
The following commands fully disable and uninstall Firewalld.  This may also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|Only perform these steps if you need network-based connectivity beyond Kodi remote-control.  If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[https://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 26 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [https://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo https://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE concerning X-Windows vs Wayland:&#039;&#039;&#039;|At the time of writing (August 2017), native Wayland support in Fedora 26 for nVidia GPUs is very-much a moving target (it appears to be a bit more stable for AMD / Intel based GPUs).  nVidia Drivers are undergoing enhancement, compositors being made more compatible with nVidia drivers, and issues with things like KMS (kernel mode-setting) are being hashed out.  This Wiki will continue to use X-Windows instead of native Wayland (or XWayland within X-Windows) until the landscape becomes a bit less turbulent and a bit more stable.}}&lt;br /&gt;
&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [https://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 26 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv https://download1.rpmfusion.org/free/fedora/updates/26/SRPMS/k/kodi-17.4-1.fc26.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-08-30 19:57:26.794695552 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-08-30 19:57:04.246018991 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.4&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 26 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130506</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130506"/>
		<updated>2017-08-22T05:21:05Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Added mention of new Firewalld steps into Assumptions section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 26 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 26 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 26 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/kodi.html Kodi v17.3 (Krypton)] from the [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/index.html rpmfusion-free] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [https://www.gigabyte.com/Motherboard/GA-F2A88XM-D3H-rev-30#ov Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [https://www.amd.com/en-us/products/processors/desktop/a-series-apu# AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 460 SuperClocked 1024MB PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [https://www.wdc.com/en-um/products/internal-storage/wd-black-desktop.html Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [https://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [https://usa.denon.com/us/product/hometheater/receivers/avr3808ci Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [https://shop.panasonic.com/support-only/TH-50PZ800U.html Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 26 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# This guide shows how to either enable TCP port 8080 (for Kodi Remote Control), or fully disable the local Firewalld daemon.  It also shows how to disable SELinux.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 26, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 26 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 26 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 26 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download (64-bit 2.2GB iso image). Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 26.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adjusting or Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  It greatly enhances security, but it can interfere with certain networking features of Kodi such as uPnP, file-sharing, remote-control apps, etc.  Because of this, two steps are shown below.  One step opens TCP port 8080, which allows Kodi to be remotely controlled and for remote-control apps such as [[Kore]] or [https://yatse.tv/redmine/projects/yatse Yatse] to work properly.  The second step completely disables Firewalld, and is intended for situations where other network connectivity is required (e.g. uPnP, file-sharing, AirPlay, Bonjour, etc.).  Only one or the other of these steps should be performed depending on your needs.  If you have no need for this kind of network connectivity, then it is probably better to skip both steps and leave Firewalld running as-is.&lt;br /&gt;
&lt;br /&gt;
==== Enable TCP Port 8080 to Enable Kodi Remote-Control ====&lt;br /&gt;
The following command adds a new permanent rule to Firewalld that allows access via TCP port 8080.  This step assumes that your local network is 192.168.0.0/24.  If it is something else, then adjust the command accordingly.&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you &#039;&#039;&#039;just &#039;&#039;&#039; want open TCP port 8080 to enable remote control of Kodi.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo firewallctl zone --permanent FedoraServer add rich-rule &#039;rule family=&amp;quot;ipv4&amp;quot; source address=&amp;quot;192.168.0.0/24&amp;quot; port port=&amp;quot;8080&amp;quot; protocol=&amp;quot;tcp&amp;quot; accept&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Disable Firewalld Entirely ====&lt;br /&gt;
The following commands fully disable and uninstall Firewalld.  This may also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|Only perform these steps if you need network-based connectivity beyond Kodi remote-control.  If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[https://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 26 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [https://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo https://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE concerning X-Windows vs Wayland:&#039;&#039;&#039;|At the time of writing (August 2017), native Wayland support in Fedora 26 for nVidia GPUs is very-much a moving target (it appears to be a bit more stable for AMD / Intel based GPUs).  nVidia Drivers are undergoing enhancement, compositors being made more compatible with nVidia drivers, and issues with things like KMS (kernel mode-setting) are being hashed out.  This Wiki will continue to use X-Windows instead of native Wayland (or XWayland within X-Windows) until the landscape becomes a bit less turbulent and a bit more stable.}}&lt;br /&gt;
&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [https://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 26 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv https://download1.rpmfusion.org/free/fedora/releases/26/Everything/source/SRPMS/k/kodi-17.3-1.fc26.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-08-20 20:33:00.312714969 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-08-20 20:30:27.948942696 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 26 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130504</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130504"/>
		<updated>2017-08-22T05:07:42Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated Firewalld section to include optional opening of 8080 only, instead of fully disabling Firewalld&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 26 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 26 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 26 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/kodi.html Kodi v17.3 (Krypton)] from the [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/index.html rpmfusion-free] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [https://www.gigabyte.com/Motherboard/GA-F2A88XM-D3H-rev-30#ov Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [https://www.amd.com/en-us/products/processors/desktop/a-series-apu# AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 460 SuperClocked 1024MB PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [https://www.wdc.com/en-um/products/internal-storage/wd-black-desktop.html Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [https://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [https://usa.denon.com/us/product/hometheater/receivers/avr3808ci Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [https://shop.panasonic.com/support-only/TH-50PZ800U.html Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 26 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 26, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 26 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 26 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 26 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download (64-bit 2.2GB iso image). Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 26.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adjusting or Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  It greatly enhances security, but it can interfere with certain networking features of Kodi such as uPnP, file-sharing, remote-control apps, etc.  Because of this, two steps are shown below.  One step opens TCP port 8080, which allows Kodi to be remotely controlled and for remote-control apps such as [[Kore]] or [https://yatse.tv/redmine/projects/yatse Yatse] to work properly.  The second step completely disables Firewalld, and is intended for situations where other network connectivity is required (e.g. uPnP, file-sharing, AirPlay, Bonjour, etc.).  Only one or the other of these steps should be performed depending on your needs.  If you have no need for this kind of network connectivity, then it is probably better to skip both steps and leave Firewalld running as-is.&lt;br /&gt;
&lt;br /&gt;
==== Enable TCP Port 8080 to Enable Kodi Remote-Control ====&lt;br /&gt;
The following command adds a new permanent rule to Firewalld that allows access via TCP port 8080.  This step assumes that your local network is 192.168.0.0/24.  If it is something else, then adjust the command accordingly.&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you &#039;&#039;&#039;just &#039;&#039;&#039; want open TCP port 8080 to enable remote control of Kodi.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo firewallctl zone --permanent FedoraServer add rich-rule &#039;rule family=&amp;quot;ipv4&amp;quot; source address=&amp;quot;192.168.0.0/24&amp;quot; port port=&amp;quot;8080&amp;quot; protocol=&amp;quot;tcp&amp;quot; accept&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Disable Firewalld Entirely ====&lt;br /&gt;
The following commands fully disable and uninstall Firewalld.  This may also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|Only perform these steps if you need network-based connectivity beyond Kodi remote-control.  If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[https://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 26 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [https://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo https://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE concerning X-Windows vs Wayland:&#039;&#039;&#039;|At the time of writing (August 2017), native Wayland support in Fedora 26 for nVidia GPUs is very-much a moving target (it appears to be a bit more stable for AMD / Intel based GPUs).  nVidia Drivers are undergoing enhancement, compositors being made more compatible with nVidia drivers, and issues with things like KMS (kernel mode-setting) are being hashed out.  This Wiki will continue to use X-Windows instead of native Wayland (or XWayland within X-Windows) until the landscape becomes a bit less turbulent and a bit more stable.}}&lt;br /&gt;
&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [https://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 26 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv https://download1.rpmfusion.org/free/fedora/releases/26/Everything/source/SRPMS/k/kodi-17.3-1.fc26.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-08-20 20:33:00.312714969 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-08-20 20:30:27.948942696 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 26 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=130503</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=130503"/>
		<updated>2017-08-22T04:06:17Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated Fedora link for Fedora 26&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Linux]] {{l2| [[Installation]] }} }}&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions ==&lt;br /&gt;
{{warning|Some (later) Ubuntu versions include Kodi built by Ubuntu themselves. If you have installed Ubuntu Kodi, please remove the packages &amp;quot;kodi kodi-bin kodi-data&amp;quot; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
See [[SSH]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install software-properties-common&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Team XBMC PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but not for Ubuntu armhf, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{see|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{see also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SSH]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|In some cases where additional packages are required, Kodi will fail to upgrade when using the upgrade commands as above. To install additional packages use the command below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Find the current PPA you are using:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache policy | grep team-xbmc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA where it says &#039;&#039;&#039;PPAHERE&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -r ppa:PPAHERE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-bin&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the previous stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the old stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi*&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website.&lt;br /&gt;
Visit https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter=&lt;br /&gt;
&lt;br /&gt;
You will then have to download the appropiate .deb file and manually install it.&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to remove and purge an application and finally removing/purging also the application configurations files, do so by using the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi*&lt;br /&gt;
sudo apt-get purge kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then remove the settings folder to remove all settings and library data. This will not delete any videos or music, but just the settings and library data itself:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rm -r ~/.kodi/ &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
rm -r ~/.xbmc/ # for older versions before 14.0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
&lt;br /&gt;
The installation if you are using Debian (Jessie), you can use the debian-backports repository.&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your /etc/apt/sources.list file, as superuser (sudo)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# kodi repos&lt;br /&gt;
# starting with debian jessie, debian provides kodi via its backports repository&lt;br /&gt;
# remember: those packages are not supported by team kodi&lt;br /&gt;
deb http://http.debian.net/debian jessie-backports main&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And then, update APT and install Kodi.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy your new Kodi.&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
Refer to [[HOW-TO:Install Kodi on Fedora 26 using RPMFusion packages]] for a guide showing how to install Fedora 26 and Kodi to create a quick-booting, standalone style of media player.&lt;br /&gt;
&lt;br /&gt;
=== Raspbian ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspbian is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspbian is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. While compiling from source does not differ very much between distributions (except for installation of build dependencies), a few different guides are available in this wiki.&lt;br /&gt;
&lt;br /&gt;
* [[HOW-TO compile XBMC for Linux from source code]]&lt;br /&gt;
* [[HOW-TO compile XBMC for Linux on Debian/Ubuntu]] - This is a tutorial on how to compile and install {{kodi}} on Debian and Ubuntu.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Linux]]&lt;br /&gt;
* [[HOW-TO:Autostart XBMC for Linux]]&lt;br /&gt;
*[[JeOS implementations for Kodi]]&lt;br /&gt;
&amp;lt;!--{{mininav| [[Installing]] {{l2| [[Linux]] }} }}--&amp;gt;&lt;br /&gt;
* [[Linux FAQ]]&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130502</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130502"/>
		<updated>2017-08-22T04:04:28Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Minor update to X11 vs Wayland verbage&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 26 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 26 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 26 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/kodi.html Kodi v17.3 (Krypton)] from the [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/index.html rpmfusion-free] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [https://www.gigabyte.com/Motherboard/GA-F2A88XM-D3H-rev-30#ov Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [https://www.amd.com/en-us/products/processors/desktop/a-series-apu# AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 460 SuperClocked 1024MB PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [https://www.wdc.com/en-um/products/internal-storage/wd-black-desktop.html Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [https://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [https://usa.denon.com/us/product/hometheater/receivers/avr3808ci Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [https://shop.panasonic.com/support-only/TH-50PZ800U.html Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 26 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 26, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 26 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 26 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 26 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download (64-bit 2.2GB iso image). Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 26.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[https://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 26 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [https://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo https://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE concerning X-Windows vs Wayland:&#039;&#039;&#039;|At the time of writing (August 2017), native Wayland support in Fedora 26 for nVidia GPUs is very-much a moving target (it appears to be a bit more stable for AMD / Intel based GPUs).  nVidia Drivers are undergoing enhancement, compositors being made more compatible with nVidia drivers, and issues with things like KMS (kernel mode-setting) are being hashed out.  This Wiki will continue to use X-Windows instead of native Wayland (or XWayland within X-Windows) until the landscape becomes a bit less turbulent and a bit more stable.}}&lt;br /&gt;
&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [https://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 26 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv https://download1.rpmfusion.org/free/fedora/releases/26/Everything/source/SRPMS/k/kodi-17.3-1.fc26.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-08-20 20:33:00.312714969 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-08-20 20:30:27.948942696 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 26 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130501</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130501"/>
		<updated>2017-08-22T04:02:08Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated for Fedora 26;  Upgrade most http:// URLs to https://;  Updated X11 vs Wayland verbage&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 26 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 26 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 26 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/kodi.html Kodi v17.3 (Krypton)] from the [https://download1.rpmfusion.org/free/fedora/releases/26/Everything/x86_64/os/repoview/index.html rpmfusion-free] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [https://www.gigabyte.com/Motherboard/GA-F2A88XM-D3H-rev-30#ov Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [https://www.amd.com/en-us/products/processors/desktop/a-series-apu# AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 460 SuperClocked 1024MB PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [https://www.wdc.com/en-um/products/internal-storage/wd-black-desktop.html Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [https://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [https://usa.denon.com/us/product/hometheater/receivers/avr3808ci Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [https://shop.panasonic.com/support-only/TH-50PZ800U.html Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 26 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 26, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 26 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 26 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 26 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download (64-bit 2.2GB iso image). Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 26 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 26.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[https://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 26 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [https://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo https://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE concerning X-Windows vs Wayland:&#039;&#039;&#039;|At the time of writing (August 2017), native Wayland support in Fedora 26 for nVidia GPUs is very-much a moving target (it appears to be a bit more stable for AMD / Intel based GPUs).  nVidia Drivers are undergoing enhancement, compositors being made more compatible with nVidia drivers, and issues with things like KMS (kernel mode-setting) are being hashed out.  This Wiki will continue to use X-Windows instead of native Wayland (and XWayland within X-Windows) until the landscape becomes a bit less turbulent and stable.}}&lt;br /&gt;
&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [https://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 26 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv https://download1.rpmfusion.org/free/fedora/releases/26/Everything/source/SRPMS/k/kodi-17.3-1.fc26.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-08-20 20:33:00.312714969 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-08-20 20:30:27.948942696 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 26 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_005_-_Console_Login.png&amp;diff=130500</id>
		<title>File:Fedora 26 Kodi 17 Install 005 - Console Login.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_005_-_Console_Login.png&amp;diff=130500"/>
		<updated>2017-08-22T03:59:15Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_004_-_Install_In_Progress.png&amp;diff=130499</id>
		<title>File:Fedora 26 Kodi 17 Install 004 - Install In Progress.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_004_-_Install_In_Progress.png&amp;diff=130499"/>
		<updated>2017-08-22T03:58:58Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_003_-_User_Creation.png&amp;diff=130498</id>
		<title>File:Fedora 26 Kodi 17 Install 003 - User Creation.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_003_-_User_Creation.png&amp;diff=130498"/>
		<updated>2017-08-22T03:58:36Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_002_-_Software_Selection.png&amp;diff=130497</id>
		<title>File:Fedora 26 Kodi 17 Install 002 - Software Selection.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_002_-_Software_Selection.png&amp;diff=130497"/>
		<updated>2017-08-22T03:57:31Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_001_-_Main_Screen.png&amp;diff=130496</id>
		<title>File:Fedora 26 Kodi 17 Install 001 - Main Screen.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_26_Kodi_17_Install_001_-_Main_Screen.png&amp;diff=130496"/>
		<updated>2017-08-22T03:56:54Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130494</id>
		<title>Archive talk:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130494"/>
		<updated>2017-08-22T03:52:19Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Wirerydr moved page HOW-TO talk:Install Kodi on Fedora 25 using RPMFusion packages to HOW-TO talk:Install Kodi on Fedora 26 using RPMFusion packages: Updated from Fedora 25 to Fedora 26&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To [[User:Klojum|Klojum]] ([[User talk:Klojum|talk]]) - Thank you very much for the &amp;quot;kodi.service&amp;quot; changes re: gettys and plymouth.  I did some testing with these changes, and with them I noticed I no longer get a tty login prompt when I do a &amp;quot;systemctl stop kodi&amp;quot;.  So for now I&#039;m undo&#039;ing your changes, but I will continue to look into this until I figure out what&#039;s wrong with the login prompt.  Once I&#039;ve sorted that out I will reinstate your changes accordingly.  Thanks again for your contribution!&lt;br /&gt;
&lt;br /&gt;
[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:30, 6 December 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guide rewrite==&lt;br /&gt;
I am going to be revising a few sections soon.&lt;br /&gt;
#Firewall: You can leave it enabled and just open the following ports: TCP: 1151, 8080, and UDP: 1900, 9777&lt;br /&gt;
#Pulseaudio: Kodi is fully functional with pulseaudio installed and enabled.&lt;br /&gt;
#Systemd service: If you have GDM installed (and autologin enabled) you do not need any of the service script or other changes so it makes this guide much more simple. As the old saying goes: Keep It Simple Stupid.&lt;br /&gt;
:[[User:Mooninite|Mooninite]] ([[User talk:Mooninite|talk]]) 09:05, 8 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Thanks for the firewall-related tips.  I believe the port-list that should be opened will depend on individual circumstances.  For example on my standalone setup the kodi.bin process is listening on ports TCP (8080, 1147) and UDP (9777, 1900).  Were I to utilize miniDLNA I would have to add TCP port 8200.  Airplay can potentially require TCP (80, 443, 554, 3689, 5297, 5289) and UDP (554, 5289, 5353).  Given that this is a standalone environment and making custom adjustments to the firewall as services are enabled/disabled is an advanced topic, it seems much simpler to leave the firewall disabled - with the caveats already mentioned in the wiki.&lt;br /&gt;
#Pulseaudio still has some deficiencies, such has lacking support for TrueHD or DTS-MA, preventing use of Dolby Pro Logic II, etc.  Refer to [[PulseAudio ]]for some further explanation.  Actually, the only real advantage Pulseaudio offers is non-exclusive use of the audio subsystem, in cases where you&#039;d like (for example) desktop sounds or other apps to co-exist with Kodi.  Since this guide is strongly focused on creating a standalone Kodi environment, Pulseaudio makes little sense to utilize.  Given its deficiencies and lack of countervailing advantages, there&#039;s no reason to utilize PulseAudio.&lt;br /&gt;
#Why would you want GDM to be installed?  It&#039;s just an unnecessary layer of functionality that introduces complexity but offers little/no benefit.  At the very least you&#039;d then have to set up GDM-based auto-login, which is not only extra complexity but a potential security risk.  The spirit of this guide is to create a standalone, lightweight installation of Kodi with minimal additional requirements.  You are exactly right re: KISS, and introducing a dependency on an unnecessary software layer would seem to contravene this.&lt;br /&gt;
You made some earlier edits that removed the section on disabling SELinux.  Kodi may have evolved to the point where it can properly function in an SELinux-Enforcing environment, but it used to have issues.  I will test in an enforcing environment and update the wiki accordingly.  However until I&#039;ve tested it I will revert your changes to restore the SELinux section.&lt;br /&gt;
&lt;br /&gt;
Thanks again for the tips!&lt;br /&gt;
:[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:03, 24 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hope you don&#039;t mind that I added a section for CEC, it was a feature I needed and I thought it may be useful until libcec&amp;gt;=3.0.0 is put into the fedora repos and the rpm in rpmfusion is rebuilt.&lt;br /&gt;
&lt;br /&gt;
:[[User:Slashnull|Slashnull]] ([[User talk:Slashnull|talk]]) 13:46, 15 January 2016 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don&#039;t mind at all Slashnull - TYVM for the contribution, and also for maintaining the existing look-and-feel.  I may reorder things a bit to avoid CEC users from doing a double install of the generic and then CEC-enabled RPMs, but that&#039;s trivial.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 00:20, 18 January 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi Spazticclown - thanks for the video-group contribution.  In my experience this is not actually necessary in order to run Kodi as described in this HowTo - not on any version of Fedora from F19 through to the current F23, anyway.  I believe as long as the user is in group &#039;wheel&#039; (which it is as a result of [[HOW-TO:Install Kodi on Fedora 23 using RPMFusion packages#Starting_the_Installation_and_Creating_a_Kodi_User|step 3.3]]), that is sufficient.  Just to be sure I took a look at my main kodi box running in my livingroom, and confirmed that user Kodi is not present in group &#039;video&#039; (gid 39).  As such I have reverted back to before your change, but I did want to thank you again for your contribution.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 23:51, 7 February 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
== SELinux support, clean shutdown ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve been tweaking the startup on my Fedora/Kodi setup, and I have a simpler setup that:&lt;br /&gt;
* Supports shutdown/reboot etc w/o PolicyKit tweaks&lt;br /&gt;
* Allows for adding xrandr tweaks for &amp;quot;Broadcast RGB&amp;quot; etc&lt;br /&gt;
* Doesn&#039;t leave stray dbus processes&lt;br /&gt;
* Has X options for running w/o mouse and giving Kodi control of the screensaver&lt;br /&gt;
* Supported SELinux enforcing out of the box w/o any policy hacks&lt;br /&gt;
* Supports clean shutdown of Kodi on system shutdown/reboot&lt;br /&gt;
&lt;br /&gt;
I feel it prudent to ask if I should add a new section for this alternate setup, or replace the current startup scripts; I&#039;ll be happy to do either...&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130492</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=130492"/>
		<updated>2017-08-22T03:52:18Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Wirerydr moved page HOW-TO:Install Kodi on Fedora 25 using RPMFusion packages to HOW-TO:Install Kodi on Fedora 26 using RPMFusion packages: Updated from Fedora 25 to Fedora 26&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 25 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.3 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.3-1.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-06-19 23:09:08.530340121 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-06-19 23:02:33.844321732 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=129899</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=129899"/>
		<updated>2017-06-22T05:14:49Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated reference to author&amp;#039;s graphics card&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 25 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.3 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [https://www.evga.com/Products/Specs/GPU.aspx?pn=3533A3B0-18D0-4D86-8DD7-27904C44E042 EVGA GeForce GTX 450 SuperClocked 1024MB PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.3-1.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-06-19 23:09:08.530340121 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-06-19 23:02:33.844321732 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=129886</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=129886"/>
		<updated>2017-06-21T01:35:28Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Minimzed list of packages installed during nVidia driver installation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 25 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.3 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.3-1.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-06-19 23:09:08.530340121 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-06-19 23:02:33.844321732 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=129812</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=129812"/>
		<updated>2017-06-20T04:18:35Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated Kodi from 17.1 to 17.3; Deprecated nVidia 340.x legacy driver coverage; Fixed small section-heading typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 25 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.3 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [https://negativo17.org/nvidia-driver-improvements-for-fedora-25/ Negativo17 fedora-nvidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several categories of nVidia drivers releases, covering different eras of nVidia-based graphics.  Formerly, this guide covered both the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; drivers (for older G8x, G9x, and GT2xx GPUs), as well as the current &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; drivers for more modern GPUs.  However the &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039; repository at Negativo17 has been discontinued, and as-such this guide now only covers current nVidia GPUs and motherboards based on them.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers.  If so, then you may be able to get them successfully installed from the RPMFusion repository using [https://rpmfusion.org/Howto/NVIDIA their HOWTO].  You can then continue on with the remainder of this guide.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Negativo17 fedora-nvidia Driver Repository ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the nVidia Drivers ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.3-1.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-06-19 23:09:08.530340121 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-06-19 23:02:33.844321732 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.3&lt;br /&gt;
@@ -38,7 +38,9 @@&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Build Dependencies ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=128968</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=128968"/>
		<updated>2017-04-11T17:58:56Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated Kodi from 17.0 to 17.1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 25 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.1 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.1-1.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-04-11 12:50:07.790160089 -0400&lt;br /&gt;
+++ kodi.spec.patched   2017-04-11 12:57:23.121705633 -0400&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.1&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
@@ -256,10 +260,13 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -290,7 +297,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127292</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127292"/>
		<updated>2017-02-10T16:33:10Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated Kodi from 17.x RC to 17.x Final&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2017, this guide was updated to cover Fedora 25 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.0-1.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-02-10 10:47:58.888201410 -0500&lt;br /&gt;
+++ kodi.spec.patched   2017-02-10 10:52:16.218891454 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
@@ -256,10 +260,13 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -290,7 +297,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127291</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127291"/>
		<updated>2017-02-10T15:55:52Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of February 10th, 2016, this guide was updated to cover Fedora 25 and to Kodi 17.x Krypton.  It is ready for mainstream use.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039; and &#039;&#039;&#039;updates&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.0-1.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-02-10 10:47:58.888201410 -0500&lt;br /&gt;
+++ kodi.spec.patched   2017-02-10 10:52:16.218891454 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 #global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
@@ -256,10 +260,13 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -290,7 +297,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127037</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127037"/>
		<updated>2017-01-18T16:00:14Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Added step disabling optical drive auto-closing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Jan. 10th, 2016), Kodi 17.x Krypton is in RELEASE-CANDIDATE status.  As such this guide utilizes the latest Kodi RC available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|The Source RPM for Kodi is what was available from RPMFusion at the time of writing (Kodi 17.0-0.12 RC2 as of Jan. 10th).  Once Kodi Final has been released and made available by RPMFusion, this guide will be updated.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/testing/25/SRPMS/k/kodi-17.0-0.12.rc3.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-01-18 01:13:16.224851760 -0500&lt;br /&gt;
+++ kodi.spec.patched   2017-01-18 01:21:02.841865498 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 %global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Build issue, fixed upstream&lt;br /&gt;
 Patch3: kodi-17.0rc3-AEDefines.patch&lt;br /&gt;
@@ -259,11 +263,14 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %patch3 -p1 -b.aedefines&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -294,7 +301,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
~&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Configure Optical Drive to Not Automatically Close ===&lt;br /&gt;
Sometimes you will find that when you eject your optical drive tray, it will try to immediately close again, giving you little time to insert/remove a disc.  If this is a problem for you then apply the following steps to configure a Kernel parameter to disable optical drive auto-closing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;dev.cdrom.autoclose = 0&amp;quot; &amp;gt;&amp;gt;/etc/sysctl.d/50-cdrom_autoclose.conf&#039;&lt;br /&gt;
sudo sysctl -p /etc/sysctl.d/50-cdrom_autoclose.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127036</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127036"/>
		<updated>2017-01-18T15:49:06Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Added step preventing Kodi from being auto-updated from repo when locally-built version is used&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Jan. 10th, 2016), Kodi 17.x Krypton is in RELEASE-CANDIDATE status.  As such this guide utilizes the latest Kodi RC available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|The Source RPM for Kodi is what was available from RPMFusion at the time of writing (Kodi 17.0-0.12 RC2 as of Jan. 10th).  Once Kodi Final has been released and made available by RPMFusion, this guide will be updated.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/testing/25/SRPMS/k/kodi-17.0-0.12.rc3.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-01-18 01:13:16.224851760 -0500&lt;br /&gt;
+++ kodi.spec.patched   2017-01-18 01:21:02.841865498 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 %global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Build issue, fixed upstream&lt;br /&gt;
 Patch3: kodi-17.0rc3-AEDefines.patch&lt;br /&gt;
@@ -259,11 +263,14 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %patch3 -p1 -b.aedefines&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -294,7 +301,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
~&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Prevent Kodi From Being Updated Automatically ====&lt;br /&gt;
Now that you are using your own build of Kodi, you will probably want to prevent it from being automatically updated whenever new installation RPMs become available in the RPMFusion repository (because they would remove your ability to playback DVD content).  The following step prevents Kodi from being automatically updated.  You will now be able to choose when to grab a new source release, and build/install it yourself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;echo &amp;quot;exclude=kodi*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127035</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=127035"/>
		<updated>2017-01-18T15:35:58Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Update rebuilding-kodi section to utilize RC3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Jan. 10th, 2016), Kodi 17.x Krypton is in RELEASE-CANDIDATE status.  As such this guide utilizes the latest Kodi RC available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|The Source RPM for Kodi is what was available from RPMFusion at the time of writing (Kodi 17.0-0.12 RC2 as of Jan. 10th).  Once Kodi Final has been released and made available by RPMFusion, this guide will be updated.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/testing/25/SRPMS/k/kodi-17.0-0.12.rc3.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- kodi.spec   2017-01-18 01:13:16.224851760 -0500&lt;br /&gt;
+++ kodi.spec.patched   2017-01-18 01:21:02.841865498 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 %global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Build issue, fixed upstream&lt;br /&gt;
 Patch3: kodi-17.0rc3-AEDefines.patch&lt;br /&gt;
@@ -259,11 +263,14 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %patch3 -p1 -b.aedefines&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -294,7 +301,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
~&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126985</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126985"/>
		<updated>2017-01-12T19:46:19Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated URL for Kodi SRPM from &amp;#039;updates-testing&amp;#039; to &amp;#039;updates&amp;#039; repo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Jan. 10th, 2016), Kodi 17.x Krypton is in RELEASE-CANDIDATE status.  As such this guide utilizes the latest Kodi RC available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|The Source RPM for Kodi is what was available from RPMFusion at the time of writing (Kodi 17.0-0.12 RC2 as of Jan. 10th).  Once Kodi Final has been released and made available by RPMFusion, this guide will be updated.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/25/SRPMS/k/kodi-17.0-0.12.rc2.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- /home/kodi/orig/kodi.spec   2017-01-09 21:27:17.288275582 -0500&lt;br /&gt;
+++ kodi.spec   2017-01-12 00:04:31.463223839 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 %global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
@@ -256,10 +260,13 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -290,7 +297,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126975</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126975"/>
		<updated>2017-01-12T05:09:58Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Fix SOURCE4 path typo in the dvd-enabling patch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Jan. 10th, 2016), Kodi 17.x Krypton is in RELEASE-CANDIDATE status.  As such this guide utilizes the latest Kodi RC available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|The Source RPM for Kodi is what was available from RPMFusion at the time of writing (Kodi 17.0-0.12 RC2 as of Jan. 10th).  Once Kodi Final has been released and made available by RPMFusion, this guide will be updated.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/testing/25/SRPMS/k/kodi-17.0-0.12.rc2.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- /home/kodi/orig/kodi.spec   2017-01-09 21:27:17.288275582 -0500&lt;br /&gt;
+++ kodi.spec   2017-01-12 00:04:31.463223839 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 %global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
@@ -256,10 +260,13 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -290,7 +297,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126963</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126963"/>
		<updated>2017-01-10T17:02:52Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Added section showing how to rebuild Kodi with DVD Playback enabled&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Jan. 10th, 2016), Kodi 17.x Krypton is in RELEASE-CANDIDATE status.  As such this guide utilizes the latest Kodi RC available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi ==&lt;br /&gt;
The simplest way to install Kodi is to use the pre-built packages provided by RPMFusion.  However at present these pre-built packages do not provide DVD playback capability (including TS_VIDEO folders).  If you require DVD playback capability, then see below for a series of steps that recreate your own Kodi packages with DVD playback capability enabled.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Installing Kodi Using Pre-Built RPMFusion Packages (No DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want to use the pre-built packages from RPMFusion.}}&lt;br /&gt;
The following command installs the pre-build Kodi packages from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Rebuilding Kodi Packages (Includes DVD Playback) ===&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform these steps if you want to rebuild Kodi yourself to enable DVD Playback capability.}}&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|These steps cause you to obtain and use [http://www.videolan.org/developers/libdvdcss.html libdvdcss] for encrypted DVD playback.  Ensure that obtaining/using libdvdcss is legal in your jurisdiction before proceeding.}}&lt;br /&gt;
The following steps first set up a development environment, and then build Kodi from the RPMFusion Source package, after enabling DVD Playback.  The resulting RPMs may then be installed either on this system, or another Fedora 25 system intended to run Kodi.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
==== Set-Up Build Environment and Toolchain ====&lt;br /&gt;
These steps create an RPM build tree within your user&#039;s home environment, and install some tools used by the build process.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install rpmdevtools rpmlint gcc-c++&lt;br /&gt;
rpmdev-setuptree&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install the RPMFusion Source RPM for Kodi, which will be used to reproduce the Kodi packages.  They also install the source-trees for libdvdcss, libdvdnav, and libdvdread, which collectively provide DVD playback capability.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|The Source RPM for Kodi is what was available from RPMFusion at the time of writing (Kodi 17.0-0.12 RC2 as of Jan. 10th).  Once Kodi Final has been released and made available by RPMFusion, this guide will be updated.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rpm -iv http://download1.rpmfusion.org/free/fedora/updates/testing/25/SRPMS/k/kodi-17.0-0.12.rc2.fc25.src.rpm&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
curl -Lo ~/rpmbuild/SOURCES/kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Enable DVD Playback Capability ====&lt;br /&gt;
This step creates a patch that re-enables libdvdcss/libdvdnav/libdvdread as well as optical-drive support.  It then applies the patch to the Kodi Source RPM SPEC file.  The original SPEC file is saved as &#039;&#039;&#039;*.orig&#039;&#039;&#039;.  Cut-and-paste this step in its entirety.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
--- /home/kodi/orig/kodi.spec   2017-01-09 21:27:17.288275582 -0500&lt;br /&gt;
+++ kodi.spec   2017-01-09 21:51:52.049916449 -0500&lt;br /&gt;
@@ -4,7 +4,7 @@&lt;br /&gt;
 # use the line below for pre-releases&lt;br /&gt;
 %global DIRVERSION %{version}%{PRERELEASE}&lt;br /&gt;
 %global _hardened_build 1&lt;br /&gt;
-%global _with_dvd 0&lt;br /&gt;
+%global _with_dvd 1&lt;br /&gt;
&lt;br /&gt;
 Name: kodi&lt;br /&gt;
 Version: 17.0&lt;br /&gt;
@@ -25,18 +25,22 @@&lt;br /&gt;
 Source1: kodi-generate-tarball-xz.sh&lt;br /&gt;
&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
-# kodi uses modified libdvd{nav,read} source and downloads at build time&lt;br /&gt;
+# kodi uses modified libdvd{css,nav,read} source and downloads at build time&lt;br /&gt;
 # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz&lt;br /&gt;
 Source2: kodi-libdvdnav-master.tar.gz&lt;br /&gt;
 # wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz&lt;br /&gt;
 Source3: kodi-libdvdread-master.tar.gz&lt;br /&gt;
+# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz&lt;br /&gt;
+Source4: kodi-libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
 # Set program version parameters&lt;br /&gt;
 Patch1: kodi-16.0-versioning.patch&lt;br /&gt;
&lt;br /&gt;
 # Drop DVD library support&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 Patch2: kodi-17a2-libdvd.patch&lt;br /&gt;
+%endif&lt;br /&gt;
&lt;br /&gt;
 # Optional deps (not in EPEL)&lt;br /&gt;
 %if 0%{?fedora}&lt;br /&gt;
@@ -256,10 +260,13 @@&lt;br /&gt;
 %prep&lt;br /&gt;
 %setup -q -n %{name}-%{DIRVERSION}&lt;br /&gt;
 %patch1 -p1 -b.versioning&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 %patch2 -p1 -b.libdvd&lt;br /&gt;
+%endif&lt;br /&gt;
 %if 0%{?_with_dvd}&lt;br /&gt;
 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz&lt;br /&gt;
 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz&lt;br /&gt;
+cp -p %{SOURCE4} tools/depends/target/libdvdread/libdvdcss-master.tar.gz&lt;br /&gt;
 %endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ -290,7 +297,9 @@&lt;br /&gt;
 %else&lt;br /&gt;
 --disable-ssh \&lt;br /&gt;
 %endif&lt;br /&gt;
+%if ! 0%{?_with_dvd}&lt;br /&gt;
 --disable-optical-drive \&lt;br /&gt;
+%endif&lt;br /&gt;
 --disable-optimizations --disable-debug \&lt;br /&gt;
 %ifnarch %{arm}&lt;br /&gt;
 --enable-gl \&lt;br /&gt;
ENDcat&lt;br /&gt;
cd ~/rpmbuild/SPECS&lt;br /&gt;
patch -b &amp;lt;/tmp/re-enable_dvd_spec.patch&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi Source RPM, and libdvdcss / libdvdnav / libdvdread Modules ====&lt;br /&gt;
These steps install dependencies required to build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf builddep kodi&lt;br /&gt;
sudo dnf install doxygen giflib-devel&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Generate the Patched Source Tree ====&lt;br /&gt;
These steps create the final patched source-tree that will be used to actually build Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/rpmbuild/SOURCES&lt;br /&gt;
./kodi-generate-tarball-xz.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Build Kodi RPMs ====&lt;br /&gt;
This step builds Kodi, and packages it in several installable RPMs.  A summary of how long things took will be shown at the end.  A log of the build process will be saved as &#039;&#039;&#039;~/build_kodi.log&#039;&#039;&#039; .&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This step will probably take a LONG time - potentially an hour or longer.  It&#039;s a good time to grab a coffee, wash some dishes, &#039;&#039;etc.&#039;&#039;}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
time rpmbuild -ba ~/rpmbuild/SPECS/kodi.spec 2&amp;gt;&amp;amp;1 | tee ~/build_kodi.log&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Install Kodi From Your Rebuilt RPM ====&lt;br /&gt;
The resulting installable RPMs are saved inside &#039;&#039;&#039;~/rpmbuild/RPMS/x86_64&#039;&#039;&#039; .  These can either be installed on the local system, or any other Fedora 25 system that has been prepared to run Kodi.  The following step installs Kodi onto the local system, along with any dependencies it has.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install ~/rpmbuild/RPMS/x86_64/kodi-17*x86_64.rpm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Post-Installation Configuration ==&lt;br /&gt;
The following steps enable Kodi to be started automatically, and enable things like power management (&#039;&#039;e.g.&#039;&#039; so Kodi can properly shutdown the system).&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126962</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126962"/>
		<updated>2017-01-10T15:43:12Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Update status section; remove xorg un-downgrade; add some addt&amp;#039;l nVidia tags&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  The guide shows how to install pre-built packages from RPMFusion (which do not support DVD playback), and alternatively shows how to rebuild the RPMFusion packages with DVD-playback capability enabled.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Jan. 10th, 2016), Kodi 17.x Krypton is in RELEASE-CANDIDATE status.  As such this guide utilizes the latest Kodi RC available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126792</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126792"/>
		<updated>2016-12-17T15:27:08Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Added missing link to Fedora Wayland Changes wiki&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Nov. 30th, 2016), Kodi 17.x Krypton is in BETA status.  As such this guide utilizes the latest Kodi beta available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See [https://fedoraproject.org/wiki/Changes/WaylandByDefault this Fedora Wiki page] for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Reversing Any Previous Xorg Downgrade ====&lt;br /&gt;
When Fedora 25 was initially released, the latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) was incompatible with version 1.19 of the Xorg X11 X-Windows server that came packaged with Fedora.  In order to make things work, this guide originally showed how to downgrade the Xorg X11 X-Windows server to version 1.18 (from Fedora 24).  nVidia subsequently released an updated driver (340.101, released Dec. 15th, 2016) that works properly with Xorg 1.19.  The following steps will ensure that you are now using the latest Xorg X11 X-Windows server version:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then sed --in-place=.bak &amp;quot;s/^exclude\=xorg-x11\*//g&amp;quot; /etc/dnf/dnf.conf; fi&#039;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126786</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126786"/>
		<updated>2016-12-16T16:40:51Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Minor Restructuring of the X-Windows / Nouveau sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Nov. 30th, 2016), Kodi 17.x Krypton is in BETA status.  As such this guide utilizes the latest Kodi beta available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
==== Installing the base X-Windows Group ====&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Reversing Any Previous Xorg Downgrade ====&lt;br /&gt;
When Fedora 25 was initially released, the latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) was incompatible with version 1.19 of the Xorg X11 X-Windows server that came packaged with Fedora.  In order to make things work, this guide originally showed how to downgrade the Xorg X11 X-Windows server to version 1.18 (from Fedora 24).  nVidia subsequently released an updated driver (340.101, released Dec. 15th, 2016) that works properly with Xorg 1.19.  The following steps will ensure that you are now using the latest Xorg X11 X-Windows server version:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then sed --in-place=.bak &amp;quot;s/^exclude\=xorg-x11\*//g&amp;quot; /etc/dnf/dnf.conf; fi&#039;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Removing the Nouveau Driver ===&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126785</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126785"/>
		<updated>2016-12-16T16:18:08Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Removed Xorg 1.19 -&amp;gt; 1.18 downgrade step (for nVidia 340.x drivers); Added step to upgrade back to 1.19&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Nov. 30th, 2016), Kodi 17.x Krypton is in BETA status.  As such this guide utilizes the latest Kodi beta available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Reversing Any Previous Xorg Downgrade ====&lt;br /&gt;
When Fedora 25 was initially released, the latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) was incompatible with version 1.19 of the Xorg X11 X-Windows server that came packaged with Fedora.  In order to make things work, this guide originally showed how to downgrade the Xorg X11 X-Windows server to version 1.18 (from Fedora 24).  nVidia subsequently released an updated driver (340.101, released Dec. 15th, 2016) that works properly with Xorg 1.19.  The following steps will ensure that you are now using the latest Xorg X11 X-Windows server version:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then sed --in-place=.bak &amp;quot;s/^exclude\=xorg-x11\*//g&amp;quot; /etc/dnf/dnf.conf; fi&#039;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User_talk:Mooninite&amp;diff=126750</id>
		<title>User talk:Mooninite</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User_talk:Mooninite&amp;diff=126750"/>
		<updated>2016-12-06T19:57:01Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Undo revision 126746 by Wirerydr (talk) Oops - wrong user&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to &#039;&#039;Kodi&#039;&#039;!&#039;&#039;&#039;&lt;br /&gt;
We hope you will contribute much and well.&lt;br /&gt;
You will probably want to read the [[Help:Contents|help pages]].&lt;br /&gt;
Again, welcome and have fun! [[User:Ned Scott|Ned Scott]] ([[User talk:Ned Scott|talk]]) 01:09, 8 April 2015 (EDT)&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User_talk:Klojum&amp;diff=126749</id>
		<title>User talk:Klojum</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User_talk:Klojum&amp;diff=126749"/>
		<updated>2016-12-06T19:56:21Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To [[User:Klojum|Klojum]] ([[User talk:Klojum|talk]]) - Thank you very much for the &amp;quot;kodi.service&amp;quot; changes re: gettys and plymouth.  I did some testing with these changes, and with them I noticed I no longer get a tty login prompt when I do a &amp;quot;systemctl stop kodi&amp;quot;.  So for now I&#039;m undo&#039;ing your changes, but I will continue to look into this until I figure out what&#039;s wrong with the login prompt.  Once I&#039;ve sorted that out I will reinstate your changes accordingly.  Thanks again for your contribution!&lt;br /&gt;
&lt;br /&gt;
- [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:30, 6 December 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Welcome to &#039;&#039;Kodi&#039;&#039;!&#039;&#039;&#039;&lt;br /&gt;
We hope you will contribute much and well.&lt;br /&gt;
You will probably want to read the [[Help:Contents|help pages]].&lt;br /&gt;
Again, welcome and have fun! [[User:Ned Scott|Ned Scott]] ([[User talk:Ned Scott|talk]]) 14:52, 25 December 2014 (EST)&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126748</id>
		<title>Archive talk:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126748"/>
		<updated>2016-12-06T19:54:58Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To [[User:Klojum|Klojum]] ([[User talk:Klojum|talk]]) - Thank you very much for the &amp;quot;kodi.service&amp;quot; changes re: gettys and plymouth.  I did some testing with these changes, and with them I noticed I no longer get a tty login prompt when I do a &amp;quot;systemctl stop kodi&amp;quot;.  So for now I&#039;m undo&#039;ing your changes, but I will continue to look into this until I figure out what&#039;s wrong with the login prompt.  Once I&#039;ve sorted that out I will reinstate your changes accordingly.  Thanks again for your contribution!&lt;br /&gt;
&lt;br /&gt;
[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:30, 6 December 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guide rewrite==&lt;br /&gt;
I am going to be revising a few sections soon.&lt;br /&gt;
#Firewall: You can leave it enabled and just open the following ports: TCP: 1151, 8080, and UDP: 1900, 9777&lt;br /&gt;
#Pulseaudio: Kodi is fully functional with pulseaudio installed and enabled.&lt;br /&gt;
#Systemd service: If you have GDM installed (and autologin enabled) you do not need any of the service script or other changes so it makes this guide much more simple. As the old saying goes: Keep It Simple Stupid.&lt;br /&gt;
:[[User:Mooninite|Mooninite]] ([[User talk:Mooninite|talk]]) 09:05, 8 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Thanks for the firewall-related tips.  I believe the port-list that should be opened will depend on individual circumstances.  For example on my standalone setup the kodi.bin process is listening on ports TCP (8080, 1147) and UDP (9777, 1900).  Were I to utilize miniDLNA I would have to add TCP port 8200.  Airplay can potentially require TCP (80, 443, 554, 3689, 5297, 5289) and UDP (554, 5289, 5353).  Given that this is a standalone environment and making custom adjustments to the firewall as services are enabled/disabled is an advanced topic, it seems much simpler to leave the firewall disabled - with the caveats already mentioned in the wiki.&lt;br /&gt;
#Pulseaudio still has some deficiencies, such has lacking support for TrueHD or DTS-MA, preventing use of Dolby Pro Logic II, etc.  Refer to [[PulseAudio ]]for some further explanation.  Actually, the only real advantage Pulseaudio offers is non-exclusive use of the audio subsystem, in cases where you&#039;d like (for example) desktop sounds or other apps to co-exist with Kodi.  Since this guide is strongly focused on creating a standalone Kodi environment, Pulseaudio makes little sense to utilize.  Given its deficiencies and lack of countervailing advantages, there&#039;s no reason to utilize PulseAudio.&lt;br /&gt;
#Why would you want GDM to be installed?  It&#039;s just an unnecessary layer of functionality that introduces complexity but offers little/no benefit.  At the very least you&#039;d then have to set up GDM-based auto-login, which is not only extra complexity but a potential security risk.  The spirit of this guide is to create a standalone, lightweight installation of Kodi with minimal additional requirements.  You are exactly right re: KISS, and introducing a dependency on an unnecessary software layer would seem to contravene this.&lt;br /&gt;
You made some earlier edits that removed the section on disabling SELinux.  Kodi may have evolved to the point where it can properly function in an SELinux-Enforcing environment, but it used to have issues.  I will test in an enforcing environment and update the wiki accordingly.  However until I&#039;ve tested it I will revert your changes to restore the SELinux section.&lt;br /&gt;
&lt;br /&gt;
Thanks again for the tips!&lt;br /&gt;
:[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:03, 24 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hope you don&#039;t mind that I added a section for CEC, it was a feature I needed and I thought it may be useful until libcec&amp;gt;=3.0.0 is put into the fedora repos and the rpm in rpmfusion is rebuilt.&lt;br /&gt;
&lt;br /&gt;
:[[User:Slashnull|Slashnull]] ([[User talk:Slashnull|talk]]) 13:46, 15 January 2016 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don&#039;t mind at all Slashnull - TYVM for the contribution, and also for maintaining the existing look-and-feel.  I may reorder things a bit to avoid CEC users from doing a double install of the generic and then CEC-enabled RPMs, but that&#039;s trivial.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 00:20, 18 January 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi Spazticclown - thanks for the video-group contribution.  In my experience this is not actually necessary in order to run Kodi as described in this HowTo - not on any version of Fedora from F19 through to the current F23, anyway.  I believe as long as the user is in group &#039;wheel&#039; (which it is as a result of [[HOW-TO:Install Kodi on Fedora 23 using RPMFusion packages#Starting_the_Installation_and_Creating_a_Kodi_User|step 3.3]]), that is sufficient.  Just to be sure I took a look at my main kodi box running in my livingroom, and confirmed that user Kodi is not present in group &#039;video&#039; (gid 39).  As such I have reverted back to before your change, but I did want to thank you again for your contribution.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 23:51, 7 February 2016 (EST)&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126747</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126747"/>
		<updated>2016-12-06T19:54:17Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Undo revision 126740 by Klojum (talk) Undone until issues with tty login prompt (after running &amp;quot;systemctl stop kodi&amp;quot;) can be resolved&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Nov. 30th, 2016), Kodi 17.x Krypton is in BETA status.  As such this guide utilizes the latest Kodi beta available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|The latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) is incompatible with the newly-released version 1.19 of the Xorg X11 X-Windows server that comes packaged with Fedora.  In order to resolve this incompatibility, when the 340.x drivers are present the Xorg X11 X-Windows server will be downgraded to the 1.18 version from Fedora 24.  Once nVidia releases a new and working 340.x driver, this Wiki will be updated accordingly.}}&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then dnf --releasever=24 downgrade xorg-x11-server-Xorg --allowerasing; echo &amp;quot;exclude=xorg-x11*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf; fi&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User_talk:Mooninite&amp;diff=126746</id>
		<title>User talk:Mooninite</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User_talk:Mooninite&amp;diff=126746"/>
		<updated>2016-12-06T17:31:28Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
To [[User:Klojum|Klojum]] ([[User talk:Mooninite|talk]]) - Thank you very much for the &amp;quot;kodi.service&amp;quot; changes re: gettys and plymouth.  I did some testing with these changes, and with them I noticed I no longer get a tty login prompt when I do a &amp;quot;systemctl stop kodi&amp;quot;.  So for now I&#039;m undo&#039;ing your changes, but I will continue to look into this until I figure out what&#039;s wrong with the login prompt.  Once I&#039;ve sorted that out I will reinstate your changes accordingly.  Thanks again for your contribution!&lt;br /&gt;
&lt;br /&gt;
[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:31, 6 December 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Welcome to &#039;&#039;Kodi&#039;&#039;!&#039;&#039;&#039;&lt;br /&gt;
We hope you will contribute much and well.&lt;br /&gt;
You will probably want to read the [[Help:Contents|help pages]].&lt;br /&gt;
Again, welcome and have fun! [[User:Ned Scott|Ned Scott]] ([[User talk:Ned Scott|talk]]) 01:09, 8 April 2015 (EDT)&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126745</id>
		<title>Archive talk:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126745"/>
		<updated>2016-12-06T17:30:52Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Undid Klojum&amp;#039;s changes until it can be figured out why they cause a tty login to no-longer appear after &amp;quot;systemctl stop kodi&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To [[User:Klojum|Klojum]] ([[User talk:Mooninite|talk]]) - Thank you very much for the &amp;quot;kodi.service&amp;quot; changes re: gettys and plymouth.  I did some testing with these changes, and with them I noticed I no longer get a tty login prompt when I do a &amp;quot;systemctl stop kodi&amp;quot;.  So for now I&#039;m undo&#039;ing your changes, but I will continue to look into this until I figure out what&#039;s wrong with the login prompt.  Once I&#039;ve sorted that out I will reinstate your changes accordingly.  Thanks again for your contribution!&lt;br /&gt;
&lt;br /&gt;
[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:30, 6 December 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guide rewrite==&lt;br /&gt;
I am going to be revising a few sections soon.&lt;br /&gt;
#Firewall: You can leave it enabled and just open the following ports: TCP: 1151, 8080, and UDP: 1900, 9777&lt;br /&gt;
#Pulseaudio: Kodi is fully functional with pulseaudio installed and enabled.&lt;br /&gt;
#Systemd service: If you have GDM installed (and autologin enabled) you do not need any of the service script or other changes so it makes this guide much more simple. As the old saying goes: Keep It Simple Stupid.&lt;br /&gt;
:[[User:Mooninite|Mooninite]] ([[User talk:Mooninite|talk]]) 09:05, 8 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Thanks for the firewall-related tips.  I believe the port-list that should be opened will depend on individual circumstances.  For example on my standalone setup the kodi.bin process is listening on ports TCP (8080, 1147) and UDP (9777, 1900).  Were I to utilize miniDLNA I would have to add TCP port 8200.  Airplay can potentially require TCP (80, 443, 554, 3689, 5297, 5289) and UDP (554, 5289, 5353).  Given that this is a standalone environment and making custom adjustments to the firewall as services are enabled/disabled is an advanced topic, it seems much simpler to leave the firewall disabled - with the caveats already mentioned in the wiki.&lt;br /&gt;
#Pulseaudio still has some deficiencies, such has lacking support for TrueHD or DTS-MA, preventing use of Dolby Pro Logic II, etc.  Refer to [[PulseAudio ]]for some further explanation.  Actually, the only real advantage Pulseaudio offers is non-exclusive use of the audio subsystem, in cases where you&#039;d like (for example) desktop sounds or other apps to co-exist with Kodi.  Since this guide is strongly focused on creating a standalone Kodi environment, Pulseaudio makes little sense to utilize.  Given its deficiencies and lack of countervailing advantages, there&#039;s no reason to utilize PulseAudio.&lt;br /&gt;
#Why would you want GDM to be installed?  It&#039;s just an unnecessary layer of functionality that introduces complexity but offers little/no benefit.  At the very least you&#039;d then have to set up GDM-based auto-login, which is not only extra complexity but a potential security risk.  The spirit of this guide is to create a standalone, lightweight installation of Kodi with minimal additional requirements.  You are exactly right re: KISS, and introducing a dependency on an unnecessary software layer would seem to contravene this.&lt;br /&gt;
You made some earlier edits that removed the section on disabling SELinux.  Kodi may have evolved to the point where it can properly function in an SELinux-Enforcing environment, but it used to have issues.  I will test in an enforcing environment and update the wiki accordingly.  However until I&#039;ve tested it I will revert your changes to restore the SELinux section.&lt;br /&gt;
&lt;br /&gt;
Thanks again for the tips!&lt;br /&gt;
:[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:03, 24 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hope you don&#039;t mind that I added a section for CEC, it was a feature I needed and I thought it may be useful until libcec&amp;gt;=3.0.0 is put into the fedora repos and the rpm in rpmfusion is rebuilt.&lt;br /&gt;
&lt;br /&gt;
:[[User:Slashnull|Slashnull]] ([[User talk:Slashnull|talk]]) 13:46, 15 January 2016 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don&#039;t mind at all Slashnull - TYVM for the contribution, and also for maintaining the existing look-and-feel.  I may reorder things a bit to avoid CEC users from doing a double install of the generic and then CEC-enabled RPMs, but that&#039;s trivial.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 00:20, 18 January 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi Spazticclown - thanks for the video-group contribution.  In my experience this is not actually necessary in order to run Kodi as described in this HowTo - not on any version of Fedora from F19 through to the current F23, anyway.  I believe as long as the user is in group &#039;wheel&#039; (which it is as a result of [[HOW-TO:Install Kodi on Fedora 23 using RPMFusion packages#Starting_the_Installation_and_Creating_a_Kodi_User|step 3.3]]), that is sufficient.  Just to be sure I took a look at my main kodi box running in my livingroom, and confirmed that user Kodi is not present in group &#039;video&#039; (gid 39).  As such I have reverted back to before your change, but I did want to thank you again for your contribution.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 23:51, 7 February 2016 (EST)&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126704</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126704"/>
		<updated>2016-11-30T20:04:42Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Added step to stop DNF updates from upgrading Xorg X11 server up past 1.18 with 340.x series nVidia drivers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Nov. 30th, 2016), Kodi 17.x Krypton is in BETA status.  As such this guide utilizes the latest Kodi beta available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|The latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) is incompatible with the newly-released version 1.19 of the Xorg X11 X-Windows server that comes packaged with Fedora.  In order to resolve this incompatibility, when the 340.x drivers are present the Xorg X11 X-Windows server will be downgraded to the 1.18 version from Fedora 24.  Once nVidia releases a new and working 340.x driver, this Wiki will be updated accordingly.}}&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then dnf --releasever=24 downgrade xorg-x11-server-Xorg --allowerasing; echo &amp;quot;exclude=xorg-x11*&amp;quot; &amp;gt;&amp;gt;/etc/dnf/dnf.conf; fi&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126703</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126703"/>
		<updated>2016-11-30T18:41:17Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Nov. 30th, 2016), Kodi 17.x Krypton is in BETA status.  As such this guide utilizes the latest Kodi beta available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Krypton)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039;&#039;&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|The latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) is incompatible with the newly-released version 1.19 of the Xorg X11 X-Windows server that comes packaged with Fedora.  In order to resolve this incompatibility, when the 340.x drivers are present the Xorg X11 X-Windows server will be downgraded to the 1.18 version from Fedora 24.  Once nVidia releases a new and working 340.x driver, this Wiki will be updated accordingly.}}&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then dnf --releasever=24 downgrade xorg-x11-server-Xorg --allowerasing; fi&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126702</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126702"/>
		<updated>2016-11-30T16:14:15Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Add notice re: Kodi&amp;#039;s beta status; update kodi.service file to include required dependency on systemd-user-sessions.service&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|At present (as of Nov. 30th, 2016), Kodi 17.x Krypton is in BETA status.  As such this guide utilizes the latest Kodi beta available from the RPMFusion repository.  When Kodi 17.x final has been released and made available in the RPMFusion repository, this guide will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
As of November 30th, 2016, this guide was recently updated (to Fedora 25 and to Kodi 17.x Krypton).  It works on the author&#039;s system, but more widespread testing by the community is desired before the guide can be labeled &amp;quot;complete&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide has been author-tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Isengard)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== (nVidia) Install Closed-Source Binary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|The latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) is incompatible with the newly-released version 1.19 of the Xorg X11 X-Windows server that comes packaged with Fedora.  In order to resolve this incompatibility, when the 340.x drivers are present the Xorg X11 X-Windows server will be downgraded to the 1.18 version from Fedora 24.  Once nVidia releases a new and working 340.x driver, this Wiki will be updated accordingly.}}&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then dnf --releasever=24 downgrade xorg-x11-server-Xorg --allowerasing; fi&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== (nVidia) Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver, now that it has been superceded by the closed-source binary nVidia driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target systemd-user-sessions.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126701</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126701"/>
		<updated>2016-11-30T04:52:27Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Removed references to the RPMFusion &amp;#039;nonfree&amp;#039; repsitories&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
This guide is in the middle of being actively re-written (as of Nov. 29th, 2016), and should only be used with caution.  In particular, the following version upgrades are being done:&lt;br /&gt;
* The reference version of Fedora is being upgraded from 23 to 25.&lt;br /&gt;
* The reference version of Kodi is being upgraded from 15.x (Isengard) to 17.x (Krypton).&lt;br /&gt;
Once the rewrite is completed, this wiki will be marked as &amp;quot;in-testing&amp;quot; for a period of time to allow for any potential errors to be corrected, after-which it will be marked as &amp;quot;ready-for-use&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide is being tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Isengard)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Replace Open-Source Nouveau Video Drivers with Proprietary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|The latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) is incompatible with the newly-released version 1.19 of the Xorg X11 X-Windows server that comes packaged with Fedora.  In order to resolve this incompatibility, when the 340.x drivers are present the Xorg X11 X-Windows server will be downgraded to the 1.18 version from Fedora 24.  Once nVidia releases a new and working 340.x driver, this Wiki will be updated accordingly.}}&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then dnf --releasever=24 downgrade xorg-x11-server-Xorg --allowerasing; fi&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_005_-_Console_Login.png&amp;diff=126700</id>
		<title>File:Fedora 25 Kodi 17 Install 005 - Console Login.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_005_-_Console_Login.png&amp;diff=126700"/>
		<updated>2016-11-30T04:48:57Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Wirerydr uploaded a new version of &amp;amp;quot;File:Fedora 25 Kodi 17 Install 005 - Console Login.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_002_-_Software_Selection.png&amp;diff=126699</id>
		<title>File:Fedora 25 Kodi 17 Install 002 - Software Selection.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_002_-_Software_Selection.png&amp;diff=126699"/>
		<updated>2016-11-30T04:48:46Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Wirerydr uploaded a new version of &amp;amp;quot;File:Fedora 25 Kodi 17 Install 002 - Software Selection.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_005_-_Console_Login.png&amp;diff=126698</id>
		<title>File:Fedora 25 Kodi 17 Install 005 - Console Login.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_005_-_Console_Login.png&amp;diff=126698"/>
		<updated>2016-11-30T04:47:50Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_004_-_Install_In_Progress.png&amp;diff=126697</id>
		<title>File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_004_-_Install_In_Progress.png&amp;diff=126697"/>
		<updated>2016-11-30T04:47:34Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_003_-_User_Creation.png&amp;diff=126696</id>
		<title>File:Fedora 25 Kodi 17 Install 003 - User Creation.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_003_-_User_Creation.png&amp;diff=126696"/>
		<updated>2016-11-30T04:47:22Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_002_-_Software_Selection.png&amp;diff=126695</id>
		<title>File:Fedora 25 Kodi 17 Install 002 - Software Selection.png</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=File:Fedora_25_Kodi_17_Install_002_-_Software_Selection.png&amp;diff=126695"/>
		<updated>2016-11-30T04:47:07Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=126694</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=126694"/>
		<updated>2016-11-30T04:42:37Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Updated Fedora Howto link to point to new (Fedora 25) version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Linux]] {{l2| [[Installation]] }} }}&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions ==&lt;br /&gt;
{{warning|Some (later) Ubuntu versions include Kodi built by Ubuntu themselves. If you have installed Ubuntu Kodi, please remove the packages &amp;quot;kodi kodi-bin kodi-data&amp;quot; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
See [[SSH]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install software-properties-common&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Team XBMC PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but not for Ubuntu armhf, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{see|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{see also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SSH]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|In some cases where additional packages are required, Kodi will fail to upgrade when using the upgrade commands as above. To install additional packages use the command below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get dist-upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Find the current PPA you are using:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache policy | grep team-xbmc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA where it says &#039;&#039;&#039;PPAHERE&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -r ppa:PPAHERE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-bin&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
{{incomplete}}&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to remove and purge an application and finally removing/purging also the application configurations files, do so by using the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi*&lt;br /&gt;
sudo apt-get purge kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then remove the settings folder to remove all settings and library data. This will not delete any videos or music, but just the settings and library data itself:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rm -r ~/.kodi/ &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
rm -r ~/.xbmc/ # for older versions before 14.0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
&lt;br /&gt;
The installation if you are using Debian (Jessie), you can use the debian-backports repository.&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your /etc/apt/sources.list file, as superuser (sudo)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# kodi repos&lt;br /&gt;
# starting with debian jessie, debian provides kodi via its backports repository&lt;br /&gt;
# remember: those packages are not supported by team kodi&lt;br /&gt;
deb http://http.debian.net/debian jessie-backports main&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And then, update APT and install Kodi.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy your new Kodi.&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
Refer to [[HOW-TO:Install Kodi on Fedora 25 using RPMFusion packages]] for a guide showing how to install Fedora 25 and Kodi to create a quick-booting, standalone style of media player.&lt;br /&gt;
&lt;br /&gt;
=== OpenELEC ===&lt;br /&gt;
{{main|OpenELEC}}&lt;br /&gt;
{{#lst:OpenELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
=== KodiBuntu ===&lt;br /&gt;
The installation instructions on this page are intended for people who already have a Linux-based OS setup, or wish to do their own installation of Linux. Alternatively you can try out [[KodiBuntu]], which will install both an OS and {{kodi}} with an easy installer.&lt;br /&gt;
&lt;br /&gt;
{{main|KodiBuntu}}&lt;br /&gt;
{{#lst:KodiBuntu|intro}}&lt;br /&gt;
&lt;br /&gt;
=== Raspbian ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspbian is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspbian is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At the moment the build in Raspbian are outdated. At the moment only http://michael.gorven.za.net offers prebuild packages.&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. While compiling from source does not differ very much between distributions (except for installation of build dependencies), a few different guides are available in this wiki.&lt;br /&gt;
&lt;br /&gt;
* [[HOW-TO compile XBMC for Linux from source code]]&lt;br /&gt;
* [[HOW-TO compile XBMC for Linux on Debian/Ubuntu]] - This is a tutorial on how to compile and install {{kodi}} on Debian and Ubuntu.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Linux]]&lt;br /&gt;
* [[HOW-TO:Autostart XBMC for Linux]]&lt;br /&gt;
*[[JeOS implementations for Kodi]]&lt;br /&gt;
&amp;lt;!--{{mininav| [[Installing]] {{l2| [[Linux]] }} }}--&amp;gt;&lt;br /&gt;
* [[Linux FAQ]]&lt;br /&gt;
&lt;br /&gt;
{{Updated|16}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126692</id>
		<title>Archive talk:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive_talk:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126692"/>
		<updated>2016-11-30T04:39:11Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Wirerydr moved page HOW-TO talk:Install Kodi on Fedora 23 using RPMFusion packages to HOW-TO talk:Install Kodi on Fedora 25 using RPMFusion packages: Updated to reference Fedora 25 (previously referenced Fedora 23)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Guide rewrite==&lt;br /&gt;
I am going to be revising a few sections soon.&lt;br /&gt;
#Firewall: You can leave it enabled and just open the following ports: TCP: 1151, 8080, and UDP: 1900, 9777&lt;br /&gt;
#Pulseaudio: Kodi is fully functional with pulseaudio installed and enabled.&lt;br /&gt;
#Systemd service: If you have GDM installed (and autologin enabled) you do not need any of the service script or other changes so it makes this guide much more simple. As the old saying goes: Keep It Simple Stupid.&lt;br /&gt;
:[[User:Mooninite|Mooninite]] ([[User talk:Mooninite|talk]]) 09:05, 8 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Thanks for the firewall-related tips.  I believe the port-list that should be opened will depend on individual circumstances.  For example on my standalone setup the kodi.bin process is listening on ports TCP (8080, 1147) and UDP (9777, 1900).  Were I to utilize miniDLNA I would have to add TCP port 8200.  Airplay can potentially require TCP (80, 443, 554, 3689, 5297, 5289) and UDP (554, 5289, 5353).  Given that this is a standalone environment and making custom adjustments to the firewall as services are enabled/disabled is an advanced topic, it seems much simpler to leave the firewall disabled - with the caveats already mentioned in the wiki.&lt;br /&gt;
#Pulseaudio still has some deficiencies, such has lacking support for TrueHD or DTS-MA, preventing use of Dolby Pro Logic II, etc.  Refer to [[PulseAudio ]]for some further explanation.  Actually, the only real advantage Pulseaudio offers is non-exclusive use of the audio subsystem, in cases where you&#039;d like (for example) desktop sounds or other apps to co-exist with Kodi.  Since this guide is strongly focused on creating a standalone Kodi environment, Pulseaudio makes little sense to utilize.  Given its deficiencies and lack of countervailing advantages, there&#039;s no reason to utilize PulseAudio.&lt;br /&gt;
#Why would you want GDM to be installed?  It&#039;s just an unnecessary layer of functionality that introduces complexity but offers little/no benefit.  At the very least you&#039;d then have to set up GDM-based auto-login, which is not only extra complexity but a potential security risk.  The spirit of this guide is to create a standalone, lightweight installation of Kodi with minimal additional requirements.  You are exactly right re: KISS, and introducing a dependency on an unnecessary software layer would seem to contravene this.&lt;br /&gt;
You made some earlier edits that removed the section on disabling SELinux.  Kodi may have evolved to the point where it can properly function in an SELinux-Enforcing environment, but it used to have issues.  I will test in an enforcing environment and update the wiki accordingly.  However until I&#039;ve tested it I will revert your changes to restore the SELinux section.&lt;br /&gt;
&lt;br /&gt;
Thanks again for the tips!&lt;br /&gt;
:[[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 12:03, 24 April 2015 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hope you don&#039;t mind that I added a section for CEC, it was a feature I needed and I thought it may be useful until libcec&amp;gt;=3.0.0 is put into the fedora repos and the rpm in rpmfusion is rebuilt.&lt;br /&gt;
&lt;br /&gt;
:[[User:Slashnull|Slashnull]] ([[User talk:Slashnull|talk]]) 13:46, 15 January 2016 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don&#039;t mind at all Slashnull - TYVM for the contribution, and also for maintaining the existing look-and-feel.  I may reorder things a bit to avoid CEC users from doing a double install of the generic and then CEC-enabled RPMs, but that&#039;s trivial.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 00:20, 18 January 2016 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi Spazticclown - thanks for the video-group contribution.  In my experience this is not actually necessary in order to run Kodi as described in this HowTo - not on any version of Fedora from F19 through to the current F23, anyway.  I believe as long as the user is in group &#039;wheel&#039; (which it is as a result of [[HOW-TO:Install Kodi on Fedora 23 using RPMFusion packages#Starting_the_Installation_and_Creating_a_Kodi_User|step 3.3]]), that is sufficient.  Just to be sure I took a look at my main kodi box running in my livingroom, and confirmed that user Kodi is not present in group &#039;video&#039; (gid 39).  As such I have reverted back to before your change, but I did want to thank you again for your contribution.&lt;br /&gt;
:Cheers... [[User:Wirerydr|Wirerydr]] ([[User talk:Wirerydr|talk]]) 23:51, 7 February 2016 (EST)&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126690</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126690"/>
		<updated>2016-11-30T04:39:09Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: Wirerydr moved page HOW-TO:Install Kodi on Fedora 23 using RPMFusion packages to HOW-TO:Install Kodi on Fedora 25 using RPMFusion packages: Updated to reference Fedora 25 (previously referenced Fedora 23)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
This guide is in the middle of being actively re-written (as of Nov. 29th, 2016), and should only be used with caution.  In particular, the following version upgrades are being done:&lt;br /&gt;
* The reference version of Fedora is being upgraded from 23 to 25.&lt;br /&gt;
* The reference version of Kodi is being upgraded from 15.x (Isengard) to 17.x (Krypton).&lt;br /&gt;
Once the rewrite is completed, this wiki will be marked as &amp;quot;in-testing&amp;quot; for a period of time to allow for any potential errors to be corrected, after-which it will be marked as &amp;quot;ready-for-use&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide is being tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Isengard)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm  \&lt;br /&gt;
  http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-nonfree-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Replace Open-Source Nouveau Video Drivers with Proprietary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|The latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) is incompatible with the newly-released version 1.19 of the Xorg X11 X-Windows server that comes packaged with Fedora.  In order to resolve this incompatibility, when the 340.x drivers are present the Xorg X11 X-Windows server will be downgraded to the 1.18 version from Fedora 24.  Once nVidia releases a new and working 340.x driver, this Wiki will be updated accordingly.}}&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then dnf --releasever=24 downgrade xorg-x11-server-Xorg --allowerasing; fi&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126689</id>
		<title>Archive:Install Kodi on Fedora 26 using RPMFusion packages</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Install_Kodi_on_Fedora_26_using_RPMFusion_packages&amp;diff=126689"/>
		<updated>2016-11-30T04:36:50Z</updated>

		<summary type="html">&lt;p&gt;Wirerydr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] | [[Linux]] }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page presents an approach to turning a minimal installation of Fedora 25 into a standalone Kodi 17.x (Krypton) installation, with minimal additional software / overhead.  The Kodi packages available from RPMFusion are used as the basis for this setup.  At the end of this guide you will have a set-top box style of system that, when powered up, will quickly boot and then start Kodi automatically without intervention (&#039;&#039;e.g.&#039;&#039; no need to first log in).&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Current State of This Guide ==&lt;br /&gt;
This guide is in the middle of being actively re-written (as of Nov. 29th, 2016), and should only be used with caution.  In particular, the following version upgrades are being done:&lt;br /&gt;
* The reference version of Fedora is being upgraded from 23 to 25.&lt;br /&gt;
* The reference version of Kodi is being upgraded from 15.x (Isengard) to 17.x (Krypton).&lt;br /&gt;
Once the rewrite is completed, this wiki will be marked as &amp;quot;in-testing&amp;quot; for a period of time to allow for any potential errors to be corrected, after-which it will be marked as &amp;quot;ready-for-use&amp;quot;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This guide is being tested on the following hardware/software:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;background-color:#FFFFFF;&amp;quot;&lt;br /&gt;
! OS&lt;br /&gt;
| [https://getfedora.org/en/server Fedora 25 Server (x86_64)]&lt;br /&gt;
|-&lt;br /&gt;
! Kodi&lt;br /&gt;
| [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/kodi.html Kodi v17.0 Beta 5 (Isengard)] from the [http://download1.rpmfusion.org/free/fedora/updates/25/x86_64/repoview/index.html rpmfusion-free-updates] repository&lt;br /&gt;
|-&lt;br /&gt;
! Motherboard&lt;br /&gt;
| [http://www.gigabyte.com/products/product-page.aspx?pid=4716 Gigabyte GA-F2A88XM-D3H (rev 3.0)]&lt;br /&gt;
|-&lt;br /&gt;
! CPU&lt;br /&gt;
| [http://www.amd.com/en-us/products/processors/desktop/a-series-apu#2 AMD A6-5400K dual-core 3.8GHz 65W]&lt;br /&gt;
|-&lt;br /&gt;
! Memory&lt;br /&gt;
| [http://www.corsair.com/en-us/vengeance-8gb-dual-channel-ddr3-memory-kit-cmz8gx3m2a1600c9 Corsair Vengeance 8GB (2x4GB) DDR3 1600MHz PC12800]&lt;br /&gt;
|-&lt;br /&gt;
! Graphics&lt;br /&gt;
| [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]&lt;br /&gt;
|-&lt;br /&gt;
! Disk&lt;br /&gt;
| [http://www.wdc.com/global/products/specs/?driveID=792&amp;amp;language=1 Western Digital 1TB 7200RPM Black HDD]&lt;br /&gt;
|-&lt;br /&gt;
! Case&lt;br /&gt;
| [http://www.antec.com/pdf/manuals/Fusion%20Remote%20&amp;amp;%20Fusion%20Remote%20Black_EN%20manual.pdf Antec Fusion Remote Black HTPC Case]&lt;br /&gt;
|-&lt;br /&gt;
! Receiver&lt;br /&gt;
| [http://usa.denon.com/us/product/HomeTheater/AVReceiversHT/AVR3808CI Denon AVR-3808ci]&lt;br /&gt;
|-&lt;br /&gt;
! TV&lt;br /&gt;
| [http://shop.panasonic.com/shop/model/TH-50PZ800U# Panasonic 50&amp;quot; VIERA TH-50PZ800U Plasma]&lt;br /&gt;
|}&amp;lt;section end=&amp;quot;Testing&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
# This guide assumes you have at least a slight familiarity with Linux in general.  If you know what a Bash shell is, can cut-and-paste commands, and are comfortable editing files with VI or Emacs, then you should be fine.&lt;br /&gt;
# It is assumed that Kodi will be installed into a freshly-installed Fedora 25 Server (x86_64) environment that was set up with no additional software specified.  If you already have such an environment then you can skip the steps showing how to do a fresh-install of Fedora.&lt;br /&gt;
# This guide was written with the use of an nVidia-based graphics card in-mind, (tested with an [http://www.asus.com/Graphics_Cards/ENGT240_SILENTDI1GD3/ Asus ENGT240 Silent GT240 fanless PCI-E 2.0 card]).  If you have an AMD, Intel or other graphics solution, then either skip the nVidia-specific steps or substitute your own.  Also, this guide covers replacing the open-source Nouveau (open-source) video drivers that come included in Fedora with closed-source binary drivers drivers from nVidia (as obtained from Negativo17&#039;s nVidia repository) for improved performance.  You can skip this if you&#039;d prefer, although your performance mileage may vary.&lt;br /&gt;
# It is assumed that audio will be passed via the HDMI port on your video card / motherboard to your TV / sound-system.  Kodi can certainly handle other methods of passing audio, however those are beyond the scope of this article.&lt;br /&gt;
# Everything is done with the goal of minimizing how many software packages / dependencies are required.  For example, since Kodi will be run as a fullcreen application, there is no need for heavyweight desktop environments such as Gnome and KDE, and all the apps/clutter they introduce.&lt;br /&gt;
# In order to make things simpler, this guide disables both SELinux and the local firewalld daemon.  Ensure that the system is adequately protected by things like your internet router&#039;s firewall, and encrypted/passworded WiFi (you DO have your WiFi protected, right?...)&lt;br /&gt;
# As of release 25, Fedora comes in three flavours: [https://getfedora.org/en/workstation Workstation], [https://getfedora.org/en/server Server], and [https://getfedora.org/en/atomic Atomic].  This guide installs the &#039;&#039;&#039;Server edition&#039;&#039;&#039; (with no additional software specified) in order to get the leanest, most minimal install possible.  At the time of writing, when tested this installation consumed approximately 410MB of memory (excluding buffers / cache) when playing a 1080p 5.1-channel video.  The full installation including Fedora, Kodi and a modest library of thumbnails/artwork consumed about 9GB of disk space.  For the purposes of testing, a 20GB partition was used.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Installing Fedora 25 ==&lt;br /&gt;
&lt;br /&gt;
=== Obtaining the Fedora 25 Server (x86_64) Installation Image ===&lt;br /&gt;
Visit the Fedora 25 (Server) download page at https://getfedora.org/en/server/download/ , and click the &#039;&#039;&#039;download&#039;&#039;&#039; button to start your download. Once your download has completed, burn the &#039;&#039;&#039;.iso&#039;&#039;&#039; image you just downloaded to a DVD.  It&#039;s also possible to create an installable USB flash drive with this ISO and install from it, or even to perform a network install without having any local DVD media, but these are outside the scope of this guide.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 001 - Main Screen.png|right|500px|Fedora Installation Main Installation Screen]]&lt;br /&gt;
=== Configure How Fedora will be Installed ===&lt;br /&gt;
Boot from the DVD you just created.  If necessary, bring up your BIOS&#039;s boot-menu by pressing &amp;lt;F12&amp;gt; (or whatever your BIOS uses) to select booting from your optical drive.  When the DVD boots you will be shown a text-menu with several options.  Select &amp;quot;Install&amp;quot;, and proceed.  The system will then boot up into Fedora&#039;s graphical installer (Anaconda).  Choose your desired keyboard layout and language, and proceed.  You will then be shown Anaconda&#039;s main installation screen, similar to this:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
You can make whatever choices you like for everything in the &#039;&#039;&#039;LOCALIZATION&#039;&#039;&#039; and &#039;&#039;&#039;SYSTEM&#039;&#039;&#039; sections.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ensure that the &#039;&#039;&#039;INSTALLATION SOURCE&#039;&#039;&#039; section is set to &#039;&#039;Local Media&#039;&#039;.  If not then click to enter it, and change it accordingly.&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 002 - Software Selection.png|right|500px|Fedora Installation Software Selection Screen]]&lt;br /&gt;
Within the &#039;&#039;&#039;SOFTWARE SELECTION&#039;&#039;&#039; section:&lt;br /&gt;
# Ensure that &#039;&#039;&#039;Base Environment&#039;&#039;&#039; in the left-pane is set to &#039;&#039;Fedora Custom Operating System&#039;&#039; (equivalent to &#039;&#039;Minimal Install&#039;&#039; in previous Fedora versions).&lt;br /&gt;
# Ensure that &#039;&#039;none&#039;&#039; of the add-ons in the right-hand pane are selected.&lt;br /&gt;
When correctly set, this screen should look as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 003 - User Creation.png|right|500px|Fedora User-Creation Screen]]&lt;br /&gt;
=== Starting the Installation and Creating a Kodi User ===&lt;br /&gt;
When finished setting up all desired installation options, Begin the install.&lt;br /&gt;
&lt;br /&gt;
During installation, set the password for user &#039;&#039;&#039;root&#039;&#039;&#039; by clicking &#039;&#039;&#039;&#039;&#039;ROOT PASSWORD&#039;&#039;&#039;&#039;&#039;).  You should also create the non-privileged user that Kodi will run as - click &#039;&#039;&#039;&#039;&#039;USER CREATION&#039;&#039;&#039;&#039;&#039;.  You can choose whatever full-name / username / password you&#039;d like; this guide assumes a username of &#039;kodi&#039;.  When creating this account, check &#039;&#039;&#039;&#039;&#039;Make this user administrator&#039;&#039;&#039;&#039;&#039;. (Note: This user isn&#039;t granted superuser rights directly; rather it can run privileged commands via tools such as &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039;.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The User Creation screen should looks as follows:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 004 - Install In Progress.png|right|500px|Fedora Installation In-Progress]]&lt;br /&gt;
Once you&#039;ve finished with these two settings, installation will continue.  The installation screen should look similiar to:&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Fedora 25 Kodi 17 Install 005 - Console Login.png|right|500px|Fedora Console Login]]&lt;br /&gt;
=== Rebooting into Fedora ===&lt;br /&gt;
&lt;br /&gt;
When the installation has completed, remove the installation DVD and click &#039;&#039;&#039;&#039;&#039;REBOOT&#039;&#039;&#039;&#039;&#039; to restart the system.  The system should reboot and reach a textmode console login screen, as shown below.  If you reach this point then you&#039;ve successfully finished a minimal install of Fedora 25.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring Fedora / Installing Dependencies ==&lt;br /&gt;
&lt;br /&gt;
Now that Fedora is installed, some configuration needs to be performed, and some dependencies need to be installed and configured.&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Unless otherwise mentioned, all following commands should be run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;.  Elevated privileges will be obtained via &#039;&#039;&#039;&#039;&#039;sudo&#039;&#039;&#039;&#039;&#039; if required.}}&lt;br /&gt;
&lt;br /&gt;
=== A Quick Note About DNF vs YUM, Updating Packages To Latest Versions, and Rebooting ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|Back in Fedora 22, the YUM package-manager was replaced by DNF.  DNF is highly backward-compatible, and uses a nearly (but not completely) identical command syntax.  In practice you may choose to either continue typing in &#039;yum&#039; commands (which are passed off transparently to DNF), or use &#039;dnf&#039; commands directly.  This HOWTO standardizes on using &#039;dnf&#039;, but you may choose &#039;yum&#039; instead if you prefer.}}&lt;br /&gt;
&lt;br /&gt;
Perform a full update of all installed packages (including the kernel if necessary).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you&#039;re ready, reboot the system after these steps have completed for changes to take effect (especially any Kernel updates that may have happened).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting SELinux to Permissive Mode, and Disabling Firewalld ===&lt;br /&gt;
&#039;&#039;&#039;SELinux&#039;&#039;&#039; is a part of the kernel that enforces access control over many parts of the system, including filesystems, processes, sockets, etc.  Although Kodi can be made to operate with SELinux active, that is beyond the scope of this guide.  Instead, SELinux left active but set to &#039;&#039;&#039;permissive mode&#039;&#039;&#039;.  It could also be completely deactivated, but then the entire filesystem would require re-labeling should you later decide to turn SELinux back on.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firewalld&#039;&#039;&#039; is the local firewall daemon that is included by-default with recent Fedora releases.  Because it can interfere with things such as uPnP, file-sharing, remote-control apps, etc., firewalld is disabled in this guide.&lt;br /&gt;
{{redv|&#039;&#039;&#039;WARNING:&#039;&#039;&#039;|If your system is in any way exposed to the internet or other untrusted zones, then it is recommended to ensure those zones are adequately protected by their own firewalls before disabling this system&#039;s local firewalld.}}&lt;br /&gt;
&lt;br /&gt;
Terminate firewalld if it is running, and then remove it from the system permanently.  This will also trigger removal of some additional, dependent packages, which are not necessary to the operation of Kodi.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop firewalld&lt;br /&gt;
sudo dnf remove firewalld&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, reconfigure SELinux to change its policy from &#039;&#039;enforcing&#039;&#039; to &#039;&#039;permissive&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo sed --in-place=.bak &#039;s/^SELINUX\=enforcing/SELINUX\=permissive/g&#039; /etc/selinux/config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will need to reboot afterwards for these two changes to completely take effect&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable Use Of the RPMFusion Repository ===&lt;br /&gt;
[http://rpmfusion.org/ RPMFusion] is a set of 3rd-party repositories providing legally redistributable software (including Kodi) which, for one reason or another, is not included in Fedora distributions.  This includes a &#039;&#039;&#039;free&#039;&#039;&#039; repository containing open-source software, and a &#039;&#039;&#039;non-free&#039; repository containing redistributable software that is not open-source.  Only the &#039;&#039;&#039;free&#039;&#039;&#039; repository is required by Kodi.  The &#039;&#039;&#039;release&#039;&#039;&#039;, &#039;&#039;&#039;updates&#039;&#039;&#039;, and &#039;&#039;&#039;updates-testing&#039;&#039;&#039; variants of the free repository for Fedora 25 will be installed and enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install --nogpgcheck \&lt;br /&gt;
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm  \&lt;br /&gt;
  http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing&lt;br /&gt;
sudo dnf config-manager --set-enabled rpmfusion-nonfree-updates-testing&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Replace Open-Source Nouveau Video Drivers with Proprietary nVidia Drivers ===&lt;br /&gt;
Although the open-source Nouveau drivers that come with Fedora have made great strides recently, the closed-source binary drivers from nVidia still offer better performance/features.  There are a variety of places to obtain these binary drivers, including from RPMFusion, however this guide shows how to install them from the [http://negativo17.org/nvidia-driver/ Negativo17 nVidia repository].&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|There are several catetories of nVidia driver releases, of-which two are used by this guide:  &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; and &#039;&#039;&#039;Legacy 340.x&#039;&#039;&#039;.  The Short-Lived drivers are for users with modern video cards who want rapidly-emerging features/fixes.  The Legacy-340.x drivers are for users of older generations of nVidia video cards (such as the author&#039;s GT240-based card).  Depending on how old your card is, you may need to use the 340.x series of driver.  Refer to [http://www.nvidia.com/object/IO_32667.html this nVidia article] to see if your video card requires you to stick with 340.x series drivers, or if you can use the Short-Lived drivers.  Negativo17 provides separate repositories for each, and this guide shows how to install either.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Legacy 340.x nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Legacy 340.x series&#039;&#039;&#039; nVidia driver for older video cards (cannot mix with the Short-Lived series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia-340.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling the Short-Lived nVidia Driver Repository ====&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Only perform this step if you want the &#039;&#039;&#039;Short-Lived&#039;&#039;&#039; nVidia driver for modern video cards (cannot mix with the Legacy 340.x series).}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf config-manager --add-repo http://negativo17.org/repos/fedora-nvidia.repo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Selected nVidia Driver ====&lt;br /&gt;
The following will install your selected nVidia drivers along with VDPAU (hardware-accelerated video decoding and postprocessing) support.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install                \&lt;br /&gt;
            nvidia-driver       \&lt;br /&gt;
            nvidia-settings     \&lt;br /&gt;
            kernel-devel        \&lt;br /&gt;
            dkms-nvidia         \&lt;br /&gt;
            libva-utils         \&lt;br /&gt;
            libva-vdpau-driver  \&lt;br /&gt;
            vdpauinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Removing the Nouveau Driver ====&lt;br /&gt;
Next, remove the open-source Nouveau driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf remove xorg-x11-drv-nouveau&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Basic X-Windows Support ===&lt;br /&gt;
Kodi requires a functioning X-Windows Server to be present on the system it runs on.  However, since it typically runs in fullscreen mode without any X-Windows decorations, it does not require any desktop environments such as Gnome or KDE; It also does not require their display managers (GDM and KDM respectively).  In this guide, only a basic X-Windows system is installed.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|In Fedora 25, the default GDM session (and corresponding X-Server) has been changed from Xorg X11 to Wayland. (See http:// this note for more information.)  In theory this should work for most (if not all) applications when running under Gnome.  However this guide configures Kodi to run in standalone mode without utilizing either GDM or Gnome.  Since Kodi is not (yet, at least) compatible with Wayland, the traditional Xorg X11 X-Server is used instead.  If a method can be devised to run Kodi in standalone mode directly under Wayland, then this Wiki will be updated accordingly.}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|The latest 340.x driver available from nVidia (340.98 as of Nov. 29th, 2016) is incompatible with the newly-released version 1.19 of the Xorg X11 X-Windows server that comes packaged with Fedora.  In order to resolve this incompatibility, when the 340.x drivers are present the Xorg X11 X-Windows server will be downgraded to the 1.18 version from Fedora 24.  Once nVidia releases a new and working 340.x driver, this Wiki will be updated accordingly.}}&lt;br /&gt;
The following commands install a basic X-Windows setup.&lt;br /&gt;
{{bluev|&#039;&#039;&#039;NOTE:&#039;&#039;&#039;|This will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; cause your system to actually boot up into multi-user graphical mode (X-Windows) automatically.  That will be done when the system starts up Kodi as a standalone application.}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf groupinstall &amp;quot;base-x&amp;quot;&lt;br /&gt;
sudo sh -c &#039;if dnf list installed nvidia-driver | grep -q fedora-nvidia-340; then dnf --releasever=24 downgrade xorg-x11-server-Xorg --allowerasing; fi&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling Kodi Audio and Accelerated Video Within X-Windows ===&lt;br /&gt;
In order for the Kodi user-account to be able to use produce audio and accelerated video within the X-Windows system, it must be added to the &#039;&#039;&#039;&#039;&#039;audio&#039;&#039;&#039;&#039;&#039; and &#039;&#039;&#039;&#039;&#039;video&#039;&#039;&#039;&#039;&#039; user-groups.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo usermod kodi -a -G audio&lt;br /&gt;
sudo usermod kodi -a -G video&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi And Configuring It To Run Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Installing Kodi from the RPMFusion repository ===&lt;br /&gt;
The following command actually installs Kodi from the RPMFusion repository.  Any dependencies that Kodi requires but are not yet installed will also be included automatically.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create Systemd Service File For X-Windows / Kodi ===&lt;br /&gt;
By default Fedora uses Systemd to manage services and daemons.  The following creates a Systemd service file that, once enabled, will cause the system to autostart X-Windows as well as Kodi as a standalone, fullscreen application whenever the system is booted.  Because it is a manually-customized service file that was not installed as part of any package, it gets placed in &#039;&#039;&#039;&#039;&#039;&amp;quot;/etc/systemd/system&amp;quot;&#039;&#039;&#039;&#039;&#039; instead of &#039;&#039;&#039;&#039;&#039;&amp;quot;/lib/systemd/systemd&amp;quot;&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/systemd/system/kodi.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description = kodi-standalone using xinit&lt;br /&gt;
After = remote-fs.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User = kodi&lt;br /&gt;
Group = kodi&lt;br /&gt;
PAMName = login&lt;br /&gt;
Type = simple&lt;br /&gt;
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp&lt;br /&gt;
Restart = on-abort&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy = multi-user.target&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install DBUS addon for X-Windows ===&lt;br /&gt;
X-Windows requires that an addon be installed in order to become DBUS-aware, which in-turn is required in order for Kodi to be properly started at boot-time.  This step provides the &#039;&#039;/usr/bin/dbus-launch&#039;&#039; tool within in the Systemd service file from the previous step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install dbus-x11&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Load and Enable New Systemd Service File ===&lt;br /&gt;
Now that the new Systemd service file has been created, Systemd needs to rescan its configuration to pick up the new file.  Afterwards, the service is enabled for future reboots.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl daemon-reload&lt;br /&gt;
sudo systemctl enable kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reconfigure PolicyKit To Enable Poweroff, Suspend and Similiar Functions ===&lt;br /&gt;
In order for Kodi to be able to poweroff the system, enter suspend-mode or initiate hibernation, a PolicyKit Local Authority configuration file needs to be created.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/polkit-1/localauthority/50-local.d/kodi_shutdown.pkla&lt;br /&gt;
[Actions for kodi user]&lt;br /&gt;
Identity=unix-user:kodi&lt;br /&gt;
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.login1.*&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install UPower ===&lt;br /&gt;
UPower (formerly DeviceKit-power) facilitates managing power devices attached to the system.  It is what allows Kodi to actually manipulate power-related functions such as shutting everything down.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo dnf install upower&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure Xwrapper To Allow Non-Console Users To Start X-Server ===&lt;br /&gt;
In order for the X-Windows server to be started by a non-console user such as the Kodi account, a new Xwrapper configuration must be created.  Also set the appropriate file permissions on the new configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo bash -c &#039;cat &amp;lt;&amp;lt;&amp;quot;ENDcat&amp;quot; &amp;gt;/etc/X11/Xwrapper.config&lt;br /&gt;
allowed_users = anybody&lt;br /&gt;
ENDcat&#039;&lt;br /&gt;
sudo chmod 644 /etc/X11/Xwrapper.config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== All Finished, and Last Tips ==&lt;br /&gt;
If all has gone well thus far, then the next time you restart the system it should boot all the way into Kodi (fullscreen standalone) without needing to log in first, or perform any other intervention.  At this point you should be able to commence configuring your minimal Kodi install as desired.  Enjoy!&lt;br /&gt;
&lt;br /&gt;
# As previously mentioned, this method of installing Kodi avoids the need to log into the system for normal operation.  However you may still reach the system remotely via &#039;&#039;&#039;&#039;&#039;SSH&#039;&#039;&#039;&#039;&#039;, whether or not Kodi is running at the time.&lt;br /&gt;
# If you have remotely accessed the system, then Kodi can be easily started / stopped with the following two commands (run as user &#039;&#039;&#039;&#039;&#039;kodi&#039;&#039;&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl start kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo systemctl stop kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|17}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Wirerydr</name></author>
	</entry>
</feed>