{"id":351,"date":"2015-06-03T22:17:32","date_gmt":"2015-06-03T20:17:32","guid":{"rendered":"http:\/\/www.anginf.de\/?p=351"},"modified":"2015-12-17T09:41:18","modified_gmt":"2015-12-17T08:41:18","slug":"kodi-on-ubuntu-on-intel-nuc-nuc5i5ryh-nuc5i5ryk","status":"publish","type":"post","link":"https:\/\/www.anginf.de\/?p=351","title":{"rendered":"KODi on ubuntu on Intel NUC NUC5i5RYH \/ NUC5i5RYK"},"content":{"rendered":"<p>The currently new Intel NUCs are great hardware, but they need some special treatment for them to work with ubuntu und KODi. So here&#8217;s my experience and what steps I had to take to make this functional.<\/p>\n<h2>Hardware<\/h2>\n<ul>\n<li>Intel NUC5i5RYH<\/li>\n<li>64GB SanDisk Solid State Disk 2.5&#8243; (6.4cm) SATA 6Gb\/s MLC asynchron<\/li>\n<li>2 * 2GB Crucial ValueRAM DDR3-1600 SO-DIMM CL11 Single<\/li>\n<\/ul>\n<h2>Update BIOS<\/h2>\n<p>This is fairly important, make sure that you update your BIOS first. I tried to install the newest version which was available from the <a href=\"https:\/\/downloadcenter.intel.com\/search?keyword=Intel%C2%AE+NUC+Kit+NUC5i5RYH\">Intel website<\/a>, but I got an error, stating that the choosen BIOS cannot be installed. So I first upgraded to the previous versions step by step, until I reached the newest BIOS. Prior to 0247, the IR receiver won&#8217;t work, so updating the BIOS is fairly necessary to get a HTPC to work.<\/p>\n<h2>Initial Install with Ubuntu 15.04<\/h2>\n<p>You won&#8217;t have any luck with Ubuntu 14.04 or 14.10, as the graphic drivers in the installer don&#8217;t work with the HD6000 from the broadwell processor. So download at least <a href=\"http:\/\/releases.ubuntu.com\/15.04\/\" target=\"_blank\">Ubuntu 15.04<\/a> as an ISO-Image and store it to your disk.<\/p>\n<p>Download the <a href=\"http:\/\/www.pendrivelinux.com\/universal-usb-installer-easy-as-1-2-3\/\" target=\"_blank\">Universal USB Installer<\/a>, choose the previously downloaded image and create a bootable USB-Stick. Afterwards, plug it into your Intel NUC and give it power. Be sure to have a keyboard, mouse, Network and HDMI\/DisplayPort-Display attached to your device. Hit &#8222;F10&#8220; and choose the USB-stick.<\/p>\n<p>Choose &#8222;Install Ubuntu&#8220; and use all default values that are presented to you except for the login &#8211; make sure that this is automatic and that you don&#8217;t have to enter a password. Of course, you can change your username. At the end, your NUC is rebooted, be sure to remove your USB-stick.<\/p>\n<h2>Things to do after the first boot of 15.04<\/h2>\n<p>There are some lists out there in the internet, but there are two things you should consider when using the NUC as a HTPC:<\/p>\n<ul>\n<li>Disable\/Uninstall\/Remove Amazon<\/li>\n<li>Disable the screen saver (and the &#8222;Lock&#8220;-Feature)<\/li>\n<li>Remove libsane (because it&#8217;s responsible for the crash if you get a &#8222;System program problem detected&#8220; after login.<\/li>\n<\/ul>\n<h2>Remote Control<\/h2>\n<p>Ubuntu 15.04 is using rc_core, no longer lirc. Installing ir-keytable will make a new directory \/etc\/rc_keymaps:<\/p>\n<pre lang=\"bash\">sudo apt-get install ir-keytable\r\ncd \/etc\/rc_keymaps\r\n<\/pre>\n<p>In my case, I use a Logitech Harmony One, which is configure to four devices:<\/p>\n<ul>\n<li>TV (for showing the content)<\/li>\n<li>Receiver (for Volume)<\/li>\n<li>Intel NUC (this is ONLY needed to turn it on and off)<\/li>\n<li>MCE (EVERY OTHER button should be mapped to this device)<\/li>\n<\/ul>\n<p>It should look something like this. I guess you get the idea, even if some text is in german:<\/p>\n<p><a href=\"https:\/\/www.anginf.de\/wp-content\/uploads\/Logitech-Remote.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-354\" src=\"https:\/\/www.anginf.de\/wp-content\/uploads\/Logitech-Remote.png\" alt=\"Logitech Remote\" width=\"707\" height=\"413\" srcset=\"https:\/\/www.anginf.de\/wp-content\/uploads\/Logitech-Remote.png 707w, https:\/\/www.anginf.de\/wp-content\/uploads\/Logitech-Remote-300x175.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/a><\/p>\n<p>For your buttons from the remote to work, you must change some of the keys to the shortcuts from KODi. Create a new file <code>\/etc\/rc_keymaps\/rc-rc6-mce<\/code> and put the following inside of it:<\/p>\n<pre lang=\"bash\">0x800f0400 KEY_0\r\n0x800f0401 KEY_1\r\n0x800f0402 KEY_2\r\n0x800f0403 KEY_3\r\n0x800f0404 KEY_4\r\n0x800f0405 KEY_5\r\n0x800f0406 KEY_6\r\n0x800f0407 KEY_7\r\n0x800f0408 KEY_8\r\n0x800f0409 KEY_9\r\n0x800f040a KEY_Q\r\n0x800f040b KEY_ENTER\r\n0x800f040c KEY_SLEEP\r\n0x800f040d KEY_MEDIA\r\n0x800f040e KEY_MUTE\r\n0x800f040f KEY_I\r\n0x800f0410 KEY_VOLUMEUP\r\n0x800f0411 KEY_VOLUMEDOWN\r\n0x800f0412 KEY_CHANNELUP\r\n0x800f0413 KEY_CHANNELDOWN\r\n0x800f0414 KEY_F\r\n0x800f0415 KEY_R\r\n0x800f0416 KEY_P\r\n0x800f0417 KEY_RECORD\r\n0x800f0418 KEY_SPACE\r\n0x800f0419 KEY_X\r\n0x800f041a KEY_DOT\r\n0x800f041b KEY_COMMA\r\n0x800f041c KEY_NUMERIC_POUND\r\n0x800f041d KEY_NUMERIC_STAR\r\n0x800f041e KEY_UP\r\n0x800f041f KEY_DOWN\r\n0x800f0420 KEY_LEFT\r\n0x800f0421 KEY_RIGHT\r\n0x800f0422 KEY_ENTER\r\n0x800f0423 KEY_BACKSPACE\r\n0x800f0424 KEY_ESC\r\n0x800f0425 KEY_TUNER\r\n0x800f0426 KEY_C\r\n0x800f0427 KEY_ZOOM\r\n0x800f0432 KEY_MODE\r\n0x800f0433 KEY_PRESENTATION\r\n0x800f0434 KEY_EJECTCD\r\n0x800f043a KEY_BRIGHTNESSUP\r\n0x800f0446 KEY_TV\r\n0x800f0447 KEY_AUDIO\r\n0x800f0448 KEY_PVR\r\n0x800f0449 KEY_CAMERA\r\n0x800f044a KEY_VIDEO\r\n0x800f044c KEY_LANGUAGE\r\n0x800f044d KEY_TITLE\r\n0x800f044e KEY_PRINT\r\n0x800f0450 KEY_RADIO\r\n0x800f045a KEY_SUBTITLE\r\n0x800f045b KEY_Q\r\n0x800f045c KEY_GREEN\r\n0x800f045d KEY_YELLOW\r\n0x800f045e KEY_TAB\r\n0x800f0465 KEY_POWER2\r\n0x800f046e KEY_PLAYPAUSE\r\n0x800f046f KEY_PLAYER\r\n0x800f0480 KEY_BRIGHTNESSDOWN\r\n0x800f0481 KEY_SPACE\r\n<\/pre>\n<p>Afterwards, load these keycodes and test them:<\/p>\n<pre lang=\"bash\">root@nuc:\/etc\/rc_keymaps# ir-keytable -w rc-rc6-mce\r\nWrote 63 keycode(s) to driver\r\nroot@nuc:\/etc\/rc_keymaps# ir-keytable -t\r\nTesting events. Please, press CTRL-C to abort.\r\n<\/pre>\n<h2>Install KODi<\/h2>\n<p>Now this step is pretty straightforward:<\/p>\n<pre lang=\"bash\">sudo apt-get install software-properties-common\r\nsudo add-apt-repository ppa:team-xbmc\/ppa\r\nsudo apt-get update\r\nsudo apt-get install kodi\r\n<\/pre>\n<p>Autostarting KODi after boot<\/p>\n<p>We&#8217;ll make sure that KODi is started no matter which user starts the desktop. We can achieve this by adding a file to <code>\/etc\/xdg\/autostart<\/code>:<\/p>\n<p><code>\/etc\/xdg\/autostart\/kodi.desktop<\/code>:<\/p>\n<pre lang=\"bash\">[Desktop Entry]\r\nType=Application\r\nName=Kodi\r\nExec=\/opt\/kodi.sh\r\n<\/pre>\n<p>As sometimes kodi drops to desktop (i.e. crashes), we want to make sure that it&#8217;s automatically restarted. That&#8217;s why we create another file, <code>\/opt\/kodi.sh<\/code>:<\/p>\n<p><code>\/opt\/kodi.sh<\/code>:<\/p>\n<pre lang=\"bash\">#!\/bin\/bash\r\nkillall pulseaudio\r\nwhile true\r\ndo\r\nAE_SINK=ALSA \/usr\/bin\/kodi --standalone\r\ndone\r\n<\/pre>\n<p>Make sure that this file is executable:<\/p>\n<pre lang=\"bash\">root@nuc:\/opt# chmod a+x \/opt\/kodi.sh\r\n<\/pre>\n<h2>Get rid of PULSEAUDIO<\/h2>\n<p>Pulseaudio did not work well with my receiver, so I chose to disable it. As the default login user (NOT root), execute this command:<\/p>\n<pre lang=\"bash\">nuc@nuc:~$ echo \"autospawn = no\" > $HOME\/.config\/pulse\/client.conf<\/pre>\n<h2>Configure KODi<\/h2>\n<p>Now that we have a working KODi (simply reboot to make sure that this is true), we have to change some settings for it to work properly with the Intel NUC.<\/p>\n<ul>\n<li>Language \/ Location \/ Keyboard (if necessary)<\/li>\n<li>Audio Device (HDMI)<\/li>\n<li>Change further settings in ~\/.kodi\/userdata\/advancedsettings.xml (if you did this before and know what you&#8217;re doing)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The currently new Intel NUCs are great hardware, but they need some special treatment for them to work with ubuntu und KODi. So here&#8217;s my experience and what steps I had to take to make this functional. Hardware Intel NUC5i5RYH 64GB SanDisk Solid State Disk 2.5&#8243; (6.4cm) SATA 6Gb\/s MLC asynchron 2 * 2GB Crucial &hellip; <a href=\"https:\/\/www.anginf.de\/?p=351\" class=\"more-link\"><span class=\"screen-reader-text\">KODi on ubuntu on Intel NUC NUC5i5RYH \/ NUC5i5RYK<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/www.anginf.de\/index.php?rest_route=\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anginf.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anginf.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anginf.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anginf.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=351"}],"version-history":[{"count":17,"href":"https:\/\/www.anginf.de\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":422,"href":"https:\/\/www.anginf.de\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions\/422"}],"wp:attachment":[{"href":"https:\/\/www.anginf.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anginf.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anginf.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}