Thursday, March 3, 2016

Simple Kodi installation from Minimal Ubuntu

First go here to Download a minimal ubuntu cd:
https://help.ubuntu.com/community/Installation/MinimalCD
Debian also will work, but I'm used to ubuntu...

Then run the following script:

#!/bin/bash
# First do a minimal ubuntu install
USER=isaac
sudo add-apt-repository ppa:team-xbmc/ppa  && \

    sudo apt-get update && sudo apt-get upgrade && \
    sudo apt-get install openbox nodm kodi xorg
sudo sed -i 's/NODM_USER=.*/NODM_USER='$USER'/' /etc/default/nodm
sudo sed -i 's/NODM_ENABLED=.*/NODM_ENABLED=true/' /etc/default/nodm
echo -e '#!/bin/bash\nopenbox &\nkodi' | sudo -u $USER tee /home/$USER/.xsession


This will set up Kodi to automatically start when you turn on your computer.