Quick Start: Kodi Set-up on Lubuntu

How to start up Kodi on system reboot without the whole rigramol of logging in, configuring resolutions, and running Kodi from a menu item, or command line.

In fact this recipe can be used for pretty much an application that you might need started.


You will need root privileges to install this software and make changes:

sudo -H bash
mkdir -p /var/lib/davinci
useradd --system --uid 997 --user-group --shell /bin/bash --home-dir /var/lib/davinci davinci


Install the software you need:

# Lubuntu
# or whatever you like but I would suggest using a light display manager
# kodi will be running most of the time
apt-get -y install lubuntu-desktop

# Kodi
apt-get -y install software-properties-common
add-apt-repository ppa:team-xbmc/ppa
apt-get update
apt-get -y install kodi

# Google Chrome
cd /tmp
wget https://dl-ssl.google.com/linux/linux_signing_key.pub
apt-key add
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/google-chrome.list

apt-get update
apt-get -y install google-chrome-stable

# or maybe Chromium instead
apt-get -y install chromium-browser


Setup 'lightdm' for autologin:

edit /etc/lightdm/lightdm.conf:

# Check https://bugs.launchpad.net/lightdm/+bug/854261 before setting a timeout

Setup the user login session:

edit ~davinci/.config/lxsession/LXDE/autostart

xrandr -s 1280x768
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
#@xscreensaver -no-splash
#@google-chrome --no-start-up-window
sleep 15

Make sure that the certain system preferences are set-up appropriately:

  • For example sound is turned on and not muted

Finish the install:


The standard Kodi repository which should be setup with the Ubuntu install is good enough to get you started.