User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Kodi on Ubuntu MATE 16

Thu Oct 29, 2015 2:18 pm

Is it possible to install Kodi on Ubuntu MATE 15.10 for the raspberry pi 2? If so, how?

Thanks!

EDIT: I eventually figured it out with a lot of help.

Thanks to Snze, Meidhy, carvari, greenbag, divebombdom, and MonkeymanStones for helping me smoosh all the bugs. This project would have taken a LOT longer without their help. Thanks so much!

BEWARE: This package was built by a packaging noob, so I cannot guarantee hassle free installation or all the features you might expect. If you run into problems, I will try my best to help, but I am certainly not a Kodi expert.

17.0-BETA3 installation instructions for Ubuntu MATE 16 are here! The guide is a bit long, but most of it is copy-pasting ;) . Unfortunately, there is NO PVR support. I doubt there ever will be, as distributing packages from modified source code could get sketchy.

Update October 5, 2016: I believe I have worked through the library issue. Currently, I am running PIXEL on my Pi since I like it better than Ubuntu MATE. As such, there will be fewer builds in the future.

1. Download 17.0-BETA3:

https://drive.google.com/file/d/0B2vdsV ... sp=sharing

2. Install dependencies:

Code: Select all

sudo apt-get install libmicrohttpd10 libmysqlclient-dev libtinyxml-dev libpcrecpp0v5 libcec3 -y
3. Go to the directory that you downloaded Kodi (most likely Downloads):

Code: Select all

cd Downloads/
4. Install Kodi:

Code: Select all

sudo dpkg -i kodi_17LWAE-1_armhf.deb
It will take a bit. Be patient.

After running Kodi, you will notice that upon exit there will be an ugly black screen instead of your desktop. We need to do a few things to fix this. Instructions:

1. Create gkreidl's startkodi script

Code: Select all

nano startkodi
2. Paste this into it:

Code: Select all

#!/bin/bash
fbset_bin=`which fbset`
xset_bin=`which xset`
xrefresh_bin=`which xrefresh`
if [ ! -z $fbset_bin ]; then
  DEPTH2=`$fbset_bin | head -3 | tail -1 | cut -d " " -f 10`
fi
kodi "$@"
if [ ! -z $fbset_bin ]; then
  if [ "$DEPTH2" == "8" ]; then
    DEPTH1=16
  else
    DEPTH1=8
  fi
  $fbset_bin -depth $DEPTH1 > /dev/null 2>&1
  $fbset_bin -depth $DEPTH2 > /dev/null 2>&1
fi
if [ ! -z $xset_bin ] && [ ! -z $xrefresh_bin ]; then
  if [ -z $DISPLAY ]; then
    DISPLAY=":0"
  fi

  $xset_bin -display $DISPLAY -q > /dev/null 2>&1
    if [ "$?" == "0" ]; then
      $xrefresh_bin -display $DISPLAY > /dev/null 2>&1
    fi
fi
VT="$(fgconsole)"
if [ "$VT" ]; then
  sudo chvt 7
  sudo chvt "$VT"
fi
3. Make it executable:

Code: Select all

sudo chmod +x startkodi
4. Copy to /usr/local/bin

Code: Select all

sudo cp startkodi /usr/local/bin
5. Make runnable:

Code: Select all

sudo chmod 777 /usr/local/bin/startkodi
6. Create a desktop file:

Code: Select all

nano Desktop/kodi.desktop
7. Paste this into it:

Code: Select all

[Desktop Entry]
Version=1.0
Name=Kodi Media Center
GenericName=Media Center
Comment=Manage and view your media
Exec=startkodi
Icon=kodi
Terminal=false
Type=Application
Categories=AudioVideo;Video;Player;TV;
8. Copy to applications:

Code: Select all

sudo cp Desktop/kodi.desktop /usr/share/applications
Add yourself to necessary groups (for keyboard and mouse usage):

Code: Select all

sudo usermod -a -G "audio,video,input,dialout,plugdev,tty" usernamehere

Code: Select all

sudo addgroup --system input
Create & edit the following file:

Code: Select all

sudo nano /etc/udev/rules.d/99-input.rules
enter the following text and save it:

Code: Select all

SUBSYSTEM==input, GROUP=input, MODE=0660
KERNEL==tty[0-9]*, GROUP=tty, MODE=0660
Create & edit the following file:

Code: Select all

sudo nano /etc/udev/rules.d/10-permissions.rules
enter this text and save it:

Code: Select all

# input
KERNEL=="mouse*|mice|event*",   MODE="0660", GROUP="input"
KERNEL=="ts[0-9]*|uinput",     MODE="0660", GROUP="input"
KERNEL==js[0-9]*,             MODE=0660, GROUP=input
# tty
KERNEL==tty[0-9]*,            MODE=0666
# vchiq
SUBSYSTEM==vchiq,  GROUP=video, MODE=0660
A fix for keyboard issues lifted from here: viewtopic.php?f=66&t=99866
Add to /etc/init.d/rc.local:

Code: Select all

chmod 0777 /dev/tty0
In order to play HD video (who doesn't want to :lol: ?) you need to change a config file. (Thanks gkriedl!)

Type:

Code: Select all

sudo nano /boot/config.txt
There are obviously a LOT of lines. Add a new one anywhere in the file with this:

Code: Select all

gpu_mem=160
Save and exit.

Reboot is necessary for all the changes.

Code: Select all

sudo reboot
YOU DID IT!!! Give yourself a hearty slap on the back! ;)
If it works, tell me 8-) . If it does NOT work, post the crash log if you could. It helps me debug things much faster. Thanks for your time! Enjoy your new media center! :D

Kratos
Last edited by Kratos on Thu Oct 06, 2016 3:53 pm, edited 16 times in total.
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Sat Nov 07, 2015 5:22 pm

UPDATE: I try to install kodi but I get

Code: Select all

someone@somewhere:~$ sudo apt-get install kodi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kodi : Depends: kodi-bin (>= 2:15.2~git20151101.0902-final-0wily) but 15.1+dfsg1-3 is to be installed
        Depends: libshairplay0 but it is not installable
        Recommends: libva-intel-vaapi-driver but it is not installable
E: Unable to correct problems, you have held broken packages.
Here's what I did:

Code: Select all

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi
Any ideas?

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

fruitoftheloom
Posts: 20716
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Kodi on Ubuntu MATE 15.10

Sat Nov 07, 2015 5:36 pm

""sudo add-apt-repository ppa:team-xbmc/ppa""

ppa are for Intel x86 CPU, not compatible with the ARM CPU ..
Retired disgracefully.....

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Sat Nov 07, 2015 5:40 pm

Thanks for the record fast reply (seriously that might be a record...). So, then are Ubuntu MATE 15.10 for raspberry pi 2 users unable to install kodi? If so, is here a workaround? Thanks.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

fruitoftheloom
Posts: 20716
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Kodi on Ubuntu MATE 15.10

Sat Nov 07, 2015 5:44 pm

Kratos wrote:Thanks for the record fast reply (seriously that might be a record...). So, then are Ubuntu MATE 15.10 for raspberry pi 2 users unable to install kodi? If so, is here a workaround? Thanks.

Kratos
AFAAIA aware you have to build version 15 from source, use the Raspbian Jessie guide and see if it works.

Obviously you need to remove all the ppa x86 software first..

viewtopic.php?f=66&t=109088
Retired disgracefully.....

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Sat Nov 07, 2015 5:58 pm

I tried that but I get

Code: Select all

someone@somewhere:~/kodi-15-jessie$ sudo ./install
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libjpeg62-turbo

(Reading database ... 174505 files and directories currently installed.)
Preparing to unpack libplatform1_1.0.9-1_armhf.deb ...
Unpacking libplatform1 (1.0.9-1) over (1.0.9-1) ...
Setting up libplatform1 (1.0.9-1) ...
and then it exits. How do I get past this? Thanks for all your help!

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Mon Nov 09, 2015 10:58 pm

UPDATE 2:
I saw here that it is not officially supported: https://ubuntu-mate.org/blog/ubuntu-mat ... is-coming/

And also, here, I found that another person is having a problem too: https://ubuntu-mate.community/t/kodi-no ... ables/2632

So, we might have to wait for Kodi to be supported :cry:.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Thu Nov 12, 2015 9:03 pm

UPDATE 3:
I got it to install with

Code: Select all

sudo apt-get install xbmc
But I get an error when I run Kodi. Here's the error:

Code: Select all

someone@somewhere:~$ sudo kodi
Home directory not accessible: Permission denied
Home directory not accessible: Permission denied
Home directory not accessible: Permission denied
Home directory not accessible: Permission denied
Home directory not accessible: Permission denied
ERROR: Unable to create GUI. Exiting
*** Error in `/usr/lib/kodi/kodi.bin': double free or corruption (out): 0x74ebe820 ***
Aborted (core dumped)
Crash report available at /home/someone/kodi_crashlog-20151112_150020.log
Here's the end of the crash log file:

Code: Select all

14:59:54 T:1876287488   DEBUG: UDisks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks was not provided by any .service files
14:59:54 T:1876287488   DEBUG: DeviceKit.Disks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.DeviceKit.Disks was not provided by any .service files
14:59:54 T:1876287488   DEBUG: Selected UDev as storage provider
14:59:54 T:1876287488   ERROR: GLX Error: No Display found
14:59:54 T:1876287488   FATAL: CApplication::Create: Unable to init windowing system
14:59:54 T:1876287488   DEBUG: PVRManager - destroyed
14:59:54 T:1759507296   DEBUG: Failed to connect to LIRC. Giving up.


############### END LOG FILE ################

############ END Kodi CRASH LOG #############
Help would be appreciated :D .

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Sun Dec 13, 2015 1:59 pm

Please refer to this post for installation instructions:
viewtopic.php?p=836065#p836065

Kratos
Last edited by Kratos on Tue Jul 26, 2016 1:42 pm, edited 24 times in total.
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Dec 16, 2015 4:10 pm

After some testing I realized some things. First, the cursor is not visible. It is still there, just not visible. The keyboard is also messed up. :cry:

Fixed. :P

Kratos
Last edited by Kratos on Fri Jan 01, 2016 11:33 pm, edited 2 times in total.
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

eurekalo
Posts: 2
Joined: Mon Nov 23, 2015 4:07 pm

Re: Kodi on Ubuntu MATE 15.10

Thu Dec 17, 2015 5:43 am

Hi Kratos!

I'm French and I'm desperate!!! I can't run Kodi on my Ubuntu mate 10.15 :oops: :oops: :oops: :roll: :roll: :roll: :? :? :? :? :x :x :x
There is any website in french which deals with this problem...

When I launch it in the terminal, always the same message:

"Failed to get size of gamma for output defaut
libEGL warning : DRI2 : failed to authenticate
Segmentation fault (core dumped)
Crash report available at /home/user/kodi_crashlog-date_time.log" .


I'm tired with this sh**...!!!

If anyone have a solution to make kodi run on ubuntu mate 10.15, i'm listening to him/her.

Thank you

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Dec 23, 2015 2:44 pm

eurekalo wrote:Hi Kratos!

I'm French and I'm desperate!!! I can't run Kodi on my Ubuntu mate 10.15 :oops: :oops: :oops: :roll: :roll: :roll: :? :? :? :? :x :x :x
There is any website in french which deals with this problem...

When I launch it in the terminal, always the same message:

"Failed to get size of gamma for output defaut
libEGL warning : DRI2 : failed to authenticate
Segmentation fault (core dumped)
Crash report available at /home/user/kodi_crashlog-date_time.log" .




If anyone have a solution to make kodi run on ubuntu mate 10.15, i'm listening to him/her.

Thank you
Ubuntu MATE 10.15? That's a long time ago. Does it even run on the pi? As far as running Kodi on Ubuntu MATE 15.10, just follow the above guide. You unfortunately cannot install it directly from one package.
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

auser77
Posts: 1
Joined: Sat Dec 26, 2015 9:47 am

Re: Kodi on Ubuntu MATE 15.10

Sat Dec 26, 2015 9:51 am

Hello Kratos,

based on your instruction i was able to get kodi running, but ...

i have the same problem like you: the mouse pointer is not visible

Did you manage to fix this problem inbeetween?

regards gerd

silviu
Posts: 11
Joined: Sun Mar 02, 2014 6:21 pm

Re: Kodi on Ubuntu MATE 15.10

Mon Dec 28, 2015 1:54 pm

Thank you Kratos.

Here is an automated script to install Kodi 15.2 on Ubuntu Mate 15.10:

https://github.com/iugamarian/raspberry ... u-mate-rpi

Lasts about 40 minutes.

To make mouse show up I go with:

gksudo startkodi

Tested multiple times and made smoother with each iteration. :)

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Dec 30, 2015 2:57 pm

Thanks! I will give this some testing.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Fri Jan 01, 2016 11:34 pm

Kratos wrote:Thanks! I will give this some testing.

Kratos
I couldn't get it to work, so I came up with this python script:

Code: Select all

#Based off of this discussion:
#https://www.raspberrypi.org/forums/viewtopic.php?f=35&t=124572&p=867553
#Description: Automatic install of Kodi on Ubuntu MATE 15.10 for Raspberry Pi 2
#Author: Kratos
#Version: 1.1.16

import os
print("Downloading shairplay...")
os.system("wget http://www.deb-multimedia.org/pool/main/libs/libshairplay-dmo/libshairplay0_0.9.0~git20130907-dmo2_armhf.deb")
print("Installing shairplay...")
os.system("sudo dpkg -i libshairplay0_0.9.0~git20130907-dmo2_armhf.deb")


print("Changing the souces.list file to Jessie...")
target = open("/etc/apt/sources.list", "w")
target.truncate()
source = "deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi"
target.write(source)
target.close()

print("Updating package lists...")
os.system("sudo apt-get update")

print("Installing Kodi...")
os.system("wget https://www.dropbox.com/s/yq5wnkaucwqfue1/kodi-15-jessie-rpb.tar.gz?dl=0")
os.system("tar -xzf kodi-15-jessie-rpb.tar.gz?dl=0")
os.system("cd kodi-15-jessie")
os.system("sudo ./install")

print("Changing the souces.list file to Ubuntu MATE...")
target = open("/etc/apt/sources.list", "w")
target.truncate()
line1 = "deb http://ports.ubuntu.com/ wily main restricted universe multiverse"
line2 = "deb-src http://ports.ubuntu.com/ wily main restricted universe multiverse"
line3 = "deb http://ports.ubuntu.com/ wily-updates main restricted universe multiverse"
line4 = "deb-src http://ports.ubuntu.com/ wily-updates main restricted universe multiverse"
line5 = "deb http://ports.ubuntu.com/ wily-security main restricted universe multiverse"
line6 = "deb-src http://ports.ubuntu.com/ wily-security main restricted universe multiverse"
line7 = "deb http://ports.ubuntu.com/ wily-backports main restricted universe multiverse"
line8 = "deb-src http://ports.ubuntu.com/ wily-backports main restricted universe multiverse"
target.write(line1)
target.write("\n")
target.write(line2)
target.write("\n")
target.write(line3)
target.write("\n")
target.write(line4)
target.write("\n")
target.write(line5)
target.write("\n")
target.write(line6)
target.write("\n")
target.write(line7)
target.write("\n")
target.write(line8)
target.write("\n")
target.close()

print("Updating package lists...")
os.system("sudo apt-get update")

print("Installing cec...")
os.system("sudo apt-get install libcec3")

print("Adding a desktop shorcut...")
target = open("Desktop/kodi.desktop", "w")
target.truncate()
line1 = "[Desktop Entry]"
line2 = "Version=1.0"
line3 = "Name=Kodi Media Center"
line4 = "GenericName=Media Center"
line5 = "Comment=Manage and view your media"
line6 = "Exec=gksudo startkodi %u"
line7 = "Icon=kodi"
line8 = "Terminal=false"
line9 = "Type=Application"
line10 = "Categories=AudioVideo;Video;Player;TV;"
target.write(line1)
target.write("\n")
target.write(line2)
target.write("\n")
target.write(line3)
target.write("\n")
target.write(line4)
target.write("\n")
target.write(line5)
target.write("\n")
target.write(line6)
target.write("\n")
target.write(line7)
target.write("\n")
target.write(line8)
target.write("\n")
target.write(line9)
target.write("\n")
target.write(line10)
target.write("\n")
target.close()

print("Fixing issues...")
os.system("sudo apt-get -f install")

print("If everything went well, Kodi is now installed!")

print("Reboot me by typing sudo reboot")
Kratos
Last edited by Kratos on Sat Jan 02, 2016 2:19 pm, edited 1 time in total.
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

divebombdom
Posts: 10
Joined: Sat Jan 02, 2016 9:43 am

Re: Kodi on Ubuntu MATE 15.10

Sat Jan 02, 2016 9:47 am

Kratos wrote:
Kratos wrote:Thanks! I will give this some testing.

Kratos
I couldn't get it to work, so I came up with this python script:

Code: Select all

#Based off of this discussion:
#https://www.raspberrypi.org/forums/viewtopic.php?f=35&t=124572&p=867553
#Description: Automatic install of Kodi on Ubuntu MATE 15.10 for Raspberry Pi 2
#Author: Kratos
#Version: 1.1.16

import os
print("Downloading shairplay...")
os.system("wget http://www.deb-multimedia.org/pool/main/libs/libshairplay-dmo/libshairplay0_0.9.0~git20130907-dmo2_armhf.deb")
print("Installing shairplay...")
os.system("sudo dpkg -i libshairplay0_0.9.0~git20130907-dmo2_armhf.deb")


print("Changing the souces.list file to Jessie...")"
target = open("/etc/apt/sources.list", "w")
target.truncate()
source = "deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi"
target.write(source)
target.close()

print("Updating package lists...")
os.system("sudo apt-get update")

print("Installing Kodi...")
os.system("wget https://www.dropbox.com/s/yq5wnkaucwqfue1/kodi-15-jessie-rpb.tar.gz?dl=0")
os.system("tar -xzf kodi-15-jessie-rpb.tar.gz?dl=0")
os.system("cd kodi-15-jessie")
os.system("sudo ./install")

print("Changing the souces.list file to Ubuntu MATE...")
target = open("/etc/apt/sources.list", "w")
target.truncate()
line1 = "deb http://ports.ubuntu.com/ wily main restricted universe multiverse"
line2 = "deb-src http://ports.ubuntu.com/ wily main restricted universe multiverse"
line3 = "deb http://ports.ubuntu.com/ wily-updates main restricted universe multiverse"
line4 = "deb-src http://ports.ubuntu.com/ wily-updates main restricted universe multiverse"
line5 = "deb http://ports.ubuntu.com/ wily-security main restricted universe multiverse"
line6 = "deb-src http://ports.ubuntu.com/ wily-security main restricted universe multiverse"
line7 = "deb http://ports.ubuntu.com/ wily-backports main restricted universe multiverse"
line8 = "deb-src http://ports.ubuntu.com/ wily-backports main restricted universe multiverse"
target.write(line1)
target.write("\n")
target.write(line2)
target.write("\n")
target.write(line3)
target.write("\n")
target.write(line4)
target.write("\n")
target.write(line5)
target.write("\n")
target.write(line6)
target.write("\n")
target.write(line7)
target.write("\n")
target.write(line8)
target.write("\n")
target.close()

print("Updating package lists...")
os.system("sudo apt-get update")

print("Installing cec...")
os.system("sudo apt-get install libcec3")

print("Adding a desktop shorcut...")
target = open("Desktop/kodi.desktop", "w")
target.truncate()
line1 = "[Desktop Entry]"
line2 = "Version=1.0"
line3 = "Name=Kodi Media Center"
line4 = "GenericName=Media Center"
line5 = "Comment=Manage and view your media"
line6 = "Exec=gksudo startkodi %u"
line7 = "Icon=kodi"
line8 = "Terminal=false"
line9 = "Type=Application"
line10 = "Categories=AudioVideo;Video;Player;TV;"
target.write(line1)
target.write("\n")
target.write(line2)
target.write("\n")
target.write(line3)
target.write("\n")
target.write(line4)
target.write("\n")
target.write(line5)
target.write("\n")
target.write(line6)
target.write("\n")
target.write(line7)
target.write("\n")
target.write(line8)
target.write("\n")
target.write(line9)
target.write("\n")
target.write(line10)
target.write("\n")
target.close()

print("Fixing issues...")
os.system("sudo apt-get -f install")

print("If everything went well, Kodi is now installed!")

print("Reboot me by typing sudo reboot")
Kratos


Kratos,

I'm getting text justification errors when trying to run your script.

Scrath that^^^ It didnt paste correctly to the .py file. I repaired that but I'm getting this Syntax. I'm kind of a n00b when it comes to the Pi and Linux for that matter. Any ideas?

dom@DomsPi:~$ sudo python kodi_install.py
File "kodi_install.py", line 14
print("Changing the souces.list file to Jessie...")"
^
SyntaxError: EOL while scanning string literal

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Sat Jan 02, 2016 2:17 pm

Sorry. Good catch. It was a simple typo with an extra " past the parentheses. I edited the original guide and it is now correct.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

divebombdom
Posts: 10
Joined: Sat Jan 02, 2016 9:43 am

Re: Kodi on Ubuntu MATE 15.10

Sun Jan 03, 2016 6:23 am

Thanks Kratos,

I'll give it a try later tonight and let you know how it works out.

divebombdom
Posts: 10
Joined: Sat Jan 02, 2016 9:43 am

Re: Kodi on Ubuntu MATE 15.10

Sun Jan 03, 2016 8:25 am

Well, it seems I either don't know what I'm doing or something went wrong. I have some screen shots of the results of the install. In the first, you can see the desktop icon looks strange and when clicked it gives the message also in the shot. After clicking Launch Anyway, there is a second screen shot where you can see in the bottom task bar it says "Opening Administrative Application." It goes away after a few seconds with no other results. I'm going to try to wipe all of the files and try again with a fresh install. Any recommendations on the easiest way to get rid of everything and start from scratch? Sorry if its a stupid question, like I said, I'm very new to this.
Kodi Fail.jpg
First Photo
Kodi Fail.jpg (25.52 KiB) Viewed 49729 times
Kodi 2.jpg
Kodi 2.jpg (3.29 KiB) Viewed 49729 times

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Sun Jan 03, 2016 3:12 pm

This is normal. For some weird reason, Ubuntu doesn't trust the file when edited by python. To get around it, you can manually change the desktop file like this:

Code: Select all

sudo nano Desktop/kodi.desktop
and paste this into it:

Code: Select all

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Kodi Media Center
GenericName=Media Center
Comment=Manage and view your media
Exec=gksudo startkodi %u
Icon=kodi
Terminal=false
Type=Application
Categories=AudioVideo;Video;Player;TV;
The administrator window will still appear, because it is giving Kodi permission to use the keyboard and mouse.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

divebombdom
Posts: 10
Joined: Sat Jan 02, 2016 9:43 am

Re: Kodi on Ubuntu MATE 15.10

Sun Jan 03, 2016 5:57 pm

Alright. I'll give it a try shortly. Thank you for the support.

divebombdom
Posts: 10
Joined: Sat Jan 02, 2016 9:43 am

Re: Kodi on Ubuntu MATE 15.10

Tue Jan 05, 2016 1:36 am

Kratos,

I couldn't get it to install correctly with the previous method you had posted. I tried the updated method that is now there and got it to install. Thank you very much for making it as simple as possible. I am still having an issue with it though. When I open the application, the KODI loading screen comes up as usual but after about 10 or 15 seconds it crashes. After, it brings up a message saying The application Kodi Media Center has unexpectedly closed. Any ideas for a solution?

divebombdom
Posts: 10
Joined: Sat Jan 02, 2016 9:43 am

Re: Kodi on Ubuntu MATE 15.10

Tue Jan 05, 2016 2:45 am

Here is the crashlog.

Code: Select all

############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Mon Jan  4 19:37:43 MST 2016
 Kodi Options: 
 Arch: armv7l
 Kernel: Linux 4.1.15-v7+ #830 SMP Tue Dec 15 17:02:45 GMT 2015
 Release: Ubuntu 15.10 (Wily Werewolf)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
gdb not installed, can't get stack trace.
############# END STACK TRACE ###############

################# LOG FILE ##################

19:37:39 2920.158447 T:1928122944  NOTICE: special://profile/ is mapped to: special://masterprofile/
19:37:39 2920.158936 T:1928122944  NOTICE: -----------------------------------------------------------------------
19:37:39 2920.159180 T:1928122944  NOTICE: Starting Kodi (15.2 Git:2015-12-14-97dc92d-dirty). Platform: Linux ARM 32-bit
19:37:39 2920.159424 T:1928122944  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
19:37:39 2920.159424 T:1928122944  NOTICE: Kodi compiled Dec 14 2015 by GCC 4.9.2 for Linux ARM 32-bit version 3.16.7 (200711)
19:37:39 2920.160400 T:1928122944  NOTICE: Running on Ubuntu 15.10, kernel: Linux ARM 32-bit version 4.1.15-v7+
19:37:39 2920.160645 T:1928122944  NOTICE: FFmpeg statically linked, version: 2.6.4-kodi-2.6.4-Isengard
19:37:39 2920.160645 T:1928122944  NOTICE: Host CPU: ARMv7 Processor rev 5 (v7l), 4 cores available
19:37:39 2920.160645 T:1928122944  NOTICE: ARM Features: Neon enabled
19:37:39 2920.160889 T:1928122944  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
19:37:39 2920.160889 T:1928122944  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
19:37:39 2920.160889 T:1928122944  NOTICE: special://masterprofile/ is mapped to: /home/dom/.kodi/userdata
19:37:39 2920.161133 T:1928122944  NOTICE: special://home/ is mapped to: /home/dom/.kodi
19:37:39 2920.161133 T:1928122944  NOTICE: special://temp/ is mapped to: /home/dom/.kodi/temp
19:37:39 2920.161377 T:1928122944  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
19:37:39 2920.161377 T:1928122944  NOTICE: Local hostname: DomsPi
19:37:39 2920.161621 T:1928122944  NOTICE: Log File is located: /home/dom/.kodi/temp/kodi.log
19:37:39 2920.161621 T:1928122944  NOTICE: -----------------------------------------------------------------------
19:37:39 2920.402100 T:1928122944   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanSuspend
19:37:39 2920.404297 T:1928122944   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanHibernate
19:37:39 2920.411621 T:1928122944  NOTICE: load settings...
19:37:39 2920.558594 T:1928115136  NOTICE: Thread FDEventMonitor start, auto delete: false
19:37:39 2920.791992 T:1928122944  NOTICE: Found 2 Lists of Devices
19:37:39 2920.792236 T:1928122944  NOTICE: Enumerated PI devices:
19:37:39 2920.792480 T:1928122944  NOTICE:     Device 1
19:37:39 2920.792969 T:1928122944  NOTICE:         m_deviceName      : HDMI
19:37:39 2920.793213 T:1928122944  NOTICE:         m_displayName     : HDMI
19:37:39 2920.793213 T:1928122944  NOTICE:         m_displayNameExtra:
19:37:39 2920.793213 T:1928122944  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
19:37:39 2920.793457 T:1928122944  NOTICE:         m_channels        : FL,FR
19:37:39 2920.793457 T:1928122944  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
19:37:39 2920.793457 T:1928122944  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_AC3,AE_FMT_DTS,AE_FMT_EAC3
19:37:39 2920.793701 T:1928122944  NOTICE:     Device 2
19:37:39 2920.793945 T:1928122944  NOTICE:         m_deviceName      : Analogue
19:37:39 2920.793945 T:1928122944  NOTICE:         m_displayName     : Analogue
19:37:39 2920.793945 T:1928122944  NOTICE:         m_displayNameExtra:
19:37:39 2920.794189 T:1928122944  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
19:37:39 2920.794189 T:1928122944  NOTICE:         m_channels        : FL,FR
19:37:39 2920.794189 T:1928122944  NOTICE:         m_sampleRates     : 48000
19:37:39 2920.794434 T:1928122944  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
19:37:39 2920.794434 T:1928122944  NOTICE:     Device 3
19:37:39 2920.794678 T:1928122944  NOTICE:         m_deviceName      : Both
19:37:39 2920.794678 T:1928122944  NOTICE:         m_displayName     : HDMI and Analogue
19:37:39 2920.794678 T:1928122944  NOTICE:         m_displayNameExtra:
19:37:39 2920.794678 T:1928122944  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
19:37:39 2920.794922 T:1928122944  NOTICE:         m_channels        : FL,FR
19:37:39 2920.794922 T:1928122944  NOTICE:         m_sampleRates     : 48000
19:37:39 2920.795166 T:1928122944  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
19:37:39 2920.795166 T:1928122944  NOTICE: Enumerated ALSA devices:
19:37:39 2920.795166 T:1928122944  NOTICE:     Device 1
19:37:39 2920.795410 T:1928122944  NOTICE:         m_deviceName      : default
19:37:39 2920.795654 T:1928122944  NOTICE:         m_displayName     : Playback/recording through the PulseAudio sound server
19:37:39 2920.795654 T:1928122944  NOTICE:         m_displayNameExtra:
19:37:39 2920.795654 T:1928122944  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
19:37:39 2920.795898 T:1928122944  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
19:37:39 2920.795898 T:1928122944  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
19:37:39 2920.795898 T:1928122944  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_U8
19:37:39 2920.796143 T:1928122944  NOTICE:     Device 2
19:37:39 2920.796143 T:1928122944  NOTICE:         m_deviceName      : pulse
19:37:39 2920.796387 T:1928122944  NOTICE:         m_displayName     : PulseAudio Sound Server
19:37:39 2920.796387 T:1928122944  NOTICE:         m_displayNameExtra:
19:37:39 2920.796387 T:1928122944  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
19:37:39 2920.796631 T:1928122944  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
19:37:39 2920.796631 T:1928122944  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
19:37:39 2920.796631 T:1928122944  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_U8
19:37:39 2920.849365 T:1928122944  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
19:37:39 2920.849854 T:1928122944  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="UTF-8" ?>
                                            <advancedsettings>
                                              <video>
                                                <defaultplayer>dvdplayer</defaultplayer>
                                                <defaultdvdplayer>dvdplayer</defaultdvdplayer>
                                              </video>
                                            </advancedsettings>
19:37:39 2920.852783 T:1928122944  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
19:37:39 2920.853027 T:1928122944  NOTICE: Default DVD Player: dvdplayer
19:37:39 2920.853271 T:1928122944  NOTICE: Default Video Player: dvdplayer
19:37:39 2920.853271 T:1928122944  NOTICE: Default Audio Player: paplayer
19:37:39 2920.853271 T:1928122944  NOTICE: Disabled debug logging due to GUI setting. Level 0.
19:37:39 2920.853516 T:1928122944  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
19:37:39 2920.853760 T:1928122944  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
19:37:39 2920.856445 T:1928122944  NOTICE: Loaded playercorefactory configuration
19:37:39 2920.857178 T:1928122944  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
19:37:39 2920.857422 T:1928122944  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
19:37:39 2920.896729 T:1849656256  NOTICE: Thread ActiveAE start, auto delete: false
19:37:39 2920.897705 T:1916769216  NOTICE: Thread AESink start, auto delete: false
19:37:39 2920.927002 T:1839199168  NOTICE: Thread CRBPWorker start, auto delete: false
19:37:39 2920.966797 T:1928122944  NOTICE: Running database version Addons19
19:37:40 2921.174805 T:1928122944  NOTICE: ADDONS: Using repository repository.xbmc.org
19:37:40 2921.175537 T:1830810560  NOTICE: Thread RemoteControl start, auto delete: false
19:37:40 2921.274902 T:1928122944  NOTICE: Raspberry PI firmware version: Dec  8 2015 14:38:51 
                                            Copyright (c) 2012 Broadcom
                                            version e591b5eb05e2cdb1b5ae25512b27d33127d7bee9 (clean) (release)
19:37:40 2921.275146 T:1928122944  NOTICE: ARM mem: 944MB GPU mem: 64MB MPG2:0 WVC1:0
19:37:40 2921.275391 T:1928122944  NOTICE: cacheMemBufferSize: 20MB
19:37:40 2921.275879 T:1928122944  NOTICE: Config:
                                            arm_freq=900
                                            audio_pwm_mode=1
                                            audio_sdm_mod_order=2
                                            config_hdmi_boost=5
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            emmc_pll_core=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_depth=32
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            hdmi_channel_map=8
                                            hdmi_force_cec_address=65535
                                            lcd_framerate=60
                                            over_voltage_avs=0x1b774
                                            overscan_bottom=48
                                            overscan_left=48
                                            overscan_right=48
                                            overscan_top=48
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            sdram_freq=450
                                            temp_limit=85
19:37:40 2921.276123 T:1928122944  NOTICE: Config:
                                            device_tree=-
19:37:40 2921.276367 T:1928122944  NOTICE: InitWindowSystem: Using EGL Implementation: raspberrypi
19:37:40 2921.279297 T:1928122944  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
19:37:40 2921.279541 T:1928122944  NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
19:37:40 2921.279785 T:1928122944  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
19:37:40 2921.279785 T:1928122944  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.940063 Hz
19:37:40 2921.279785 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
19:37:40 2921.280029 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
19:37:40 2921.280273 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1920 x 1080 @ 60.000000 Hz
19:37:40 2921.280273 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1920 x 1080 @ 59.940063 Hz
19:37:40 2921.280518 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1920 x 1080 @ 24.000000 Hz
19:37:40 2921.280518 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1920 x 1080 @ 23.976025 Hz
19:37:40 2921.280518 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1920 x 1080 @ 30.000000 Hz
19:37:40 2921.280762 T:1928122944  NOTICE: Found resolution 1280 x 720 for display 0 with 1920 x 1080 @ 29.970032 Hz
19:37:40 2921.280762 T:1928122944  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 56.000000 Hz
19:37:40 2921.281006 T:1928122944  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 60.000000 Hz
19:37:40 2921.281006 T:1928122944  NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 59.940063 Hz
19:37:40 2921.281250 T:1928122944  NOTICE: Found resolution 960 x 720 for display 0 with 1024 x 768 @ 60.000000 Hz
19:37:40 2921.281250 T:1928122944  NOTICE: Found resolution 960 x 720 for display 0 with 1024 x 768 @ 59.940063 Hz
19:37:40 2921.281250 T:1928122944  NOTICE: Found resolution 1200 x 720 for display 0 with 1280 x 768 @ 60.000000 Hz
19:37:40 2921.281494 T:1928122944  NOTICE: Found resolution 1200 x 720 for display 0 with 1280 x 768 @ 59.940063 Hz
19:37:40 2921.281494 T:1928122944  NOTICE: Found resolution 1152 x 720 for display 0 with 1280 x 800 @ 60.000000 Hz
19:37:40 2921.281738 T:1928122944  NOTICE: Found resolution 1152 x 720 for display 0 with 1280 x 800 @ 59.940063 Hz
19:37:40 2921.281738 T:1928122944  NOTICE: Found resolution 1152 x 720 for display 0 with 1280 x 800 @ 75.000000 Hz
19:37:40 2921.281738 T:1928122944  NOTICE: Found resolution 960 x 720 for display 0 with 1280 x 960 @ 60.000000 Hz
19:37:40 2921.281982 T:1928122944  NOTICE: Found resolution 960 x 720 for display 0 with 1280 x 960 @ 59.940063 Hz
19:37:40 2921.281982 T:1928122944  NOTICE: Found resolution 900 x 720 for display 0 with 1280 x 1024 @ 60.000000 Hz
19:37:40 2921.281982 T:1928122944  NOTICE: Found resolution 900 x 720 for display 0 with 1280 x 1024 @ 59.940063 Hz
19:37:40 2921.282227 T:1928122944  NOTICE: Found resolution 1152 x 720 for display 0 with 1440 x 900 @ 60.000000 Hz
19:37:40 2921.282227 T:1928122944  NOTICE: Found resolution 1152 x 720 for display 0 with 1440 x 900 @ 59.940063 Hz
19:37:40 2921.282471 T:1928122944  NOTICE: Found resolution 1152 x 720 for display 0 with 1680 x 1050 @ 60.000000 Hz
19:37:40 2921.282471 T:1928122944  NOTICE: Found resolution 1152 x 720 for display 0 with 1680 x 1050 @ 59.940063 Hz
19:37:40 2921.282471 T:1928122944  NOTICE: Found (1280x720@60.000000) at 22, setting to RES_DESKTOP at 16
19:37:40 2921.282715 T:1928122944  NOTICE: Checking resolution 16
19:37:40 2921.405273 T:1928122944  NOTICE: GL_VENDOR = Broadcom
19:37:40 2921.405518 T:1928122944  NOTICE: GL_RENDERER = VideoCore IV HW
19:37:40 2921.405762 T:1928122944  NOTICE: GL_VERSION = OpenGL ES 2.0
19:37:40 2921.405762 T:1928122944  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00
19:37:40 2921.406006 T:1928122944  NOTICE: GL_EXTENSIONS = GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_APPLE_rgb_422 GL_EXT_debug_marker


############### END LOG FILE ################

############ END Kodi CRASH LOG #############

User avatar
Kratos
Posts: 394
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Tue Jan 05, 2016 3:23 pm

I was unable to duplicate the problem, but, you could try:

Code: Select all

sudo apt-get autoremove libpulseeight-platform* -y
I also noticed that gdb was not installed according to the crashlog. Install it with:

Code: Select all

sudo apt-get install gdb -y
And then run the kodi_install.sh script again.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

Return to “Media centres”