LoginSignup
2
2

More than 5 years have passed since last update.

Raspberry Pi2 にDebian入れてからKODIを突っ込む

Last updated at Posted at 2015-06-01

概要

これもまたチラ裏、、、しかも他の人の写しです。
Raspberry Pi2にOS入れてからKODIを突っ込みます。
ネットみてるとどうもKODI用のイメージをSDに焼いてから利用するのが大半ですが、普段Debian起動でサーバとして楽しんで、たまにISOを再生したかったんです。

2016/02/15 追記

個人的には超重要
久々にRaspberry Piを入れなおしたんですが、何故かインストール時にkodi-binが入らないとか、libgnutls26が古いとか言われます!
原因はmysqlが起動していないためです!

ということで、mysql-serverをインストールして、必ずmysqlが起動することを確認してから下記方法でkodiをインストールすることをおすすめします。
(mysqlも起動しないとか言われるけど、/var/lib/mysql/id*のファイルを消すと起動する感じ)

結果

インストールもできて、問題なく動いています。
Youtubeや目的だった外部HDDのISOも問題なく再生できています。
ただ!、、、ISOの画質がSD画質です。Full HDのテレビだとちょっとアラが目立ちます。
でもスムーズに再生できていますし、音飛びやコマ落ちもありませんでした。(Youtubeの高画質再生にはバッチリ対応しています)

元記事

Installing Kodi on Raspberry Pi 2 (Raspbian Wheezy)

KODI

KODI

インストール

The easiest way to install the package is to add Michaels archive to your system. To do this, store the following in /etc/apt/sources.list.d/mene.list

sudo nano /etc/apt/sources.list.d/mene.list
then paste the following into the file mene.list:

deb http://archive.mene.za.net/raspbian wheezy contrib

then import the archive signing key by issuing the following command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED

Then update the package lists:

sudo apt-get update
It’s always a good idea to upgrade the distribution and the Raspberry Pi 2 to the latest versions:

sudo apt-get upgrade --yes
sudo rpi-update

When this is done, you need to reboot your Raspberry Pi 2:

sudo reboot now

Once the reboot is finished and you’ve logged in, it’s time to install the Kodi package and it’s dependencies:

sudo apt-get install kodi --yes

I found that I didn’t need to add the user to any of the groups that Michael describes in his tutorial (probably since the user I use has SUDO rights, but I’m not a hundred percent on that?) Anyhow, I’m using the default user “pi” (without the quotations) that comes with the installation of Raspbian Wheezy. I didn’t have to create or add the input system configuration either, my standard USB Keyboard worked just fine without it inside Kodi. At least I haven’t run into any problems yet with this. I will update this post if I do find any problems though.

As soon as the installation of the Kodi packages has completed you should be able to start Kodi by running the command:

kodi

A point worth noting, as Michael writes, is that Kodi accesses the display directly and not by using Xorg.

Autostarting Kodi on boot

Once you’re done playing around and setting up Kodi the way you want it, be it installing skins or configuring and scraping all your movies, tv-shows and music, you might want your nice little HTPC to jump directly into Kodi on boot. This is easily achieved by editing the file /etc/default/kodi

sudo nano /etc/default/kodi

and change the 0 to 1:

Set this to 1 to enable startup

ENABLED=0

デバイスを認識しない場合

私の場合、KODI上でUSBのマウスやキーボードを接続しても認識しなかったので、次のファイルのinput行にkodiを加える設定を行いました。

vi /etc/group #input:x:999:pi,kodi
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2