{"id":956,"date":"2020-07-19T14:24:28","date_gmt":"2020-07-19T13:24:28","guid":{"rendered":"http:\/\/www.marcinwilk.eu\/?page_id=956"},"modified":"2022-06-20T20:01:56","modified_gmt":"2022-06-20T19:01:56","slug":"htpc-on-centos-8-linux-with-kodi","status":"publish","type":"page","link":"https:\/\/www.marcinwilk.eu\/en\/projects\/linux-scripts\/htpc-on-centos-8-linux-with-kodi\/","title":{"rendered":"HTPC on CentOS 8 Linux with KODI"},"content":{"rendered":"I prepared a script that automates the installation and configuration of CentOS 8 Linux with KODI (formerly XBMC) under HTPC (a computer for media playback). Thanks to this, we get a ready system which, after connecting to e.g. TV or projector, enables comfortable playback of multimedia materials (video, audio, streams).<\/p>\n<p>To operate you need a working computer, with CentOS 8 installed, with the network configured and the wget program (we will use to download the script).<\/p>\n<p>The script installs the appropriate software, and configures the system so that the KODI application starts automatically at startup (with kodi user rights, using the flatpak package).<\/p>\n<p>Download link : <a href=\"\/make-kodi.sh\" target=\"_blank\" rel=\"noopener noreferrer\">make-kodi.sh<\/a><\/p>\n<p>To install the script you just need to download the file from the command line, give permission to run it and start it. You need root privileges to act.<\/p>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#000000;border-radius:3px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#333333;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">Download and start (you must be logged in as root):<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\"># wget <a href=\"\/make-kodi.sh\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.marcinwilk.eu\/make-kodi.sh<\/a><br \/>\n# chmod +x make-kodi.sh<br \/>\n# .\/make-kodi.sh<\/div><\/div>\n<p>By editing the script file, you can set the Plex Media Server to be installed additionally (it can be used as a DLNA server instead of KODI), and the KODI to be installed from the sources. This will take much longer, because CentOS 8 does not have the right packages, so they have to be downloaded andd compiled, and then installed (I used Fedora source packages, and clean KODI sources).<\/p>\n<p>Below is a video of the script's operation (some long lasting moments have been cut out, standard flatpak installation):<\/p>\n<p><iframe loading=\"lazy\" title=\"make-kodi.sh script running.\" width=\"840\" height=\"630\" src=\"https:\/\/www.youtube.com\/embed\/CMx7HcbFXIg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>If it happens that the KODI switches off due to an error, or because you want to switch it off for a while, a terminal (xterm) will start up, which will allow you to perform various operations. To return to KODI just use the command \"flatpak run tv.kodi.Kodi\". As in the video below:<\/p>\n<p><iframe loading=\"lazy\" title=\"make-kodi.sh what to do if KODI will crash.\" width=\"840\" height=\"630\" src=\"https:\/\/www.youtube.com\/embed\/GEPZVGBoPOU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>Changelog:<br \/>\nv 2.6.1 &#8211; 12.11.2020<br \/>\nHDMI\/CEC file access for kodi is now fixed with every restart, so large system updates should not brake that.<br \/>\nv 2.6 &#8211; 09.10.2020<br \/>\nRemoved double lines.<br \/>\nv 2.5 &#8211; 30.09.2020<br \/>\nThanks to Thebes Knossos there are some fixes in the script &#8211; thank You!<br \/>\nRaven repo can be disabled in configuration (reported conflicts with VLC).<br \/>\nrapidjson package do not need compiling from sources anymore.<br \/>\nI prepared SRPM of phonon that works and is phonon-qt5 compatible! (Oryginal srpm stopped &#8211; don't know why &#8211; rebuilding, maybe some cmake changes or dunno).<br \/>\nI made script little less \"loud\" when taking actions (except when compiling from sources).<br \/>\nAdded libcec srpm for CEC\/HDMI support on compiled from source version of Kodi.<br \/>\nFixed some errors in commands.<br \/>\nv 2.4 &#8211; 12.09.2020<br \/>\n<span class=\"pl-c\">Add HDMI\/CEC fix (tested with Pulse-Eight CEC module on USB\/HDMI for TV-remote control of KODI).<\/span><br \/>\nv 2.3 &#8211; 19.07.2020<br \/>\nFixed some typos, finally releasing on the web.<br \/>\nv 2.2 &#8211; 07.07.2020<br \/>\nAdd license info.<br \/>\nFixed typos, and checked on core CentOS install. Ready to release on web.<br \/>\nv 2.1 &#8211; 03.07.2020<br \/>\nAdded Avahi with it's daemon enabled.<br \/>\nv 2.0 &#8211; 26.06.2020<br \/>\nAnother approach using flatpak instead of compiling many libraries and kodi itself from sources.<br \/>\nv 1.0 &#8211; 23.06.2020<br \/>\nFirst release, tested on CentOS 8\n<input class=\"fooboxshare_post_id\" type=\"hidden\" value=\"956\"\/>","protected":false},"excerpt":{"rendered":"<p>I prepared a script that automates the installation and configuration of CentOS 8 Linux with KODI (formerly XBMC) under HTPC (a computer for media playback). Thanks to this, we get a ready system which, after connecting to e.g. TV or projector, enables comfortable playback of multimedia materials (video, audio, streams). To operate you need a &hellip; <a href=\"https:\/\/www.marcinwilk.eu\/en\/projects\/linux-scripts\/htpc-on-centos-8-linux-with-kodi\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> \"HTPC on CentOS 8 Linux with KODI\"<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1179,"menu_order":4,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-956","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages\/956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/comments?post=956"}],"version-history":[{"count":0,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages\/956\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/pages\/1179"}],"wp:attachment":[{"href":"https:\/\/www.marcinwilk.eu\/en\/wp-json\/wp\/v2\/media?parent=956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}