{"id":313,"date":"2016-04-18T21:09:18","date_gmt":"2016-04-18T20:09:18","guid":{"rendered":"http:\/\/www.sarbyn.com\/tech\/?p=313"},"modified":"2016-04-18T09:21:00","modified_gmt":"2016-04-18T08:21:00","slug":"install-kodi-on-raspinas","status":"publish","type":"post","link":"https:\/\/www.sarbyn.com\/blog\/2016\/04\/18\/install-kodi-on-raspinas\/","title":{"rendered":"Install KODI on raspiNAS"},"content":{"rendered":"<p>My <a href=\"http:\/\/www.sarbyn.com\/tech\/2015\/12\/28\/raspinas-diy-nas-with-a-raspberry\/\">raspiNAS<\/a> is based on a raspberry pi 2, with 1GB of ram and a 4core ARM processor, a more powerful board able to run a NAS and also a full HD media center. So in order to simplify my home setup and remove a raspberry I&#8217;ve decided to merge the KODI mediacenter (based on OSMC) into the raspiNAS board.<\/p>\n<p>We have to create the group &#8220;input&#8221; if it doesn&#8217;t exist.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo addgroup --system input\r\n<\/pre>\n<p>Edit the file<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo nano \/etc\/udev\/rules.d\/99-input.rules\r\n<\/pre>\n<p>enter the following text and save it:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nSUBSYSTEM==input, GROUP=input, MODE=0660\r\nKERNEL==tty&#x5B;0-9]*, GROUP=tty, MODE=0660\r\n<\/pre>\n<p>Create &#038; edit the following file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo nano \/etc\/udev\/rules.d\/10-permissions.rules\r\n<\/pre>\n<p>enter this text and save it:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# input\r\nKERNEL==&quot;mouse*|mice|event*&quot;,   MODE=&quot;0660&quot;, GROUP=&quot;input&quot;\r\nKERNEL==&quot;ts&#x5B;0-9]*|uinput&quot;,     MODE=&quot;0660&quot;, GROUP=&quot;input&quot;\r\nKERNEL==js&#x5B;0-9]*,             MODE=0660, GROUP=input\r\n# tty\r\nKERNEL==tty&#x5B;0-9]*,            MODE=0666\r\n# vchiq\r\nSUBSYSTEM==vchiq,  GROUP=video, MODE=0660\r\n<\/pre>\n<p>Run the following commands for user pi (if you haven&#8217;t changed your user name):<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo usermod -a -G audio pi\r\nsudo usermod -a -G video pi\r\nsudo usermod -a -G input pi\r\nsudo usermod -a -G dialout pi\r\nsudo usermod -a -G plugdev pi\r\nsudo usermod -a -G tty pi\r\n<\/pre>\n<p>To play full HD video in Kodi, you have to set<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngpu_mem=160\r\n<\/pre>\n<p>in \/boot\/config.txt (or higher) and reboot the board.<\/p>\n<p>Now install kodi with:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install kodi\r\n<\/pre>\n<p>Edit \/etc\/default\/kodi in order to start kodi at boot:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# Set this to 1 to enable startup\r\nENABLED=1\r\n\r\n# The user to run Kodi as\r\nUSER=pi\r\n\r\n# Adjust niceness of Kodi (decrease for higher priority)\r\nNICE=-5\r\n<\/pre>\n<p>Source: <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=99866\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=99866<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My raspiNAS is based on a raspberry pi 2, with 1GB of ram and a 4core ARM processor, a more powerful board able to run a NAS and also a full HD media center. So in order to simplify my home setup and remove a raspberry I&#8217;ve decided to merge the KODI mediacenter (based on <a class=\"read-more\" href=\"https:\/\/www.sarbyn.com\/blog\/2016\/04\/18\/install-kodi-on-raspinas\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[43],"tags":[82,46,81,32,78],"class_list":["post-313","post","type-post","status-publish","format-standard","hentry","category-diy-2","tag-kodi","tag-nas","tag-osmc","tag-raspberry","tag-raspinas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3JApm-53","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/313"}],"collection":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":2,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":315,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/313\/revisions\/315"}],"wp:attachment":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}