Install script for XBMC in Raspbian

# Install XBMC
sudo sh -c "echo 'deb http://archive.mene.za.net/raspbian wheezy contrib' > /etc/apt/sources.list.d/mene.list"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED
sudo apt-get update
sudo apt-get install xbmc

# Add input group if it doesn't exist
egrep -i "^input" /etc/group
if [ $? -ne 0 ]; then
    sudo addgroup --system input
fi

# Make keyboard work
sudo sh -c "echo 'SUBSYSTEM=="input", GROUP="input", MODE="0660"' > /etc/udev/rules.d/99-input.rules"
sudo sh -c "echo 'KERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"' >> /etc/udev/rules.d/99-input.rules"

# Add current user to groups
$USER=`awk -F: "/:$(id -u):/{print \$1}" /etc/passwd`
sudo usermod -a -G audio $USER
sudo usermod -a -G video $USER
sudo usermod -a -G input $USER
sudo usermod -a -G dialout $USER
sudo usermod -a -G plugdev $USER
sudo usermod -a -G tty $USER

# Enable autoboot and configure current user
sudo sed -i 's/ENABLED=0/ENABLED=1/g' /etc/default/xbmc
sudo sed -i 's/USER=xbmc/USER='"$USER"'/g' /etc/default/xbmc

Ref: http://michael.gorven.za.net/raspberrypi/xbmc

You might also like

Install Skype in Ubuntu
Since Ubuntu 10.04 you can add the repository for Skype running this command: sudo add-apt-repository...
Install latest VirtualBox 4.3 in Ubuntu 12.04
Latest version of VirtualBox in 12.04 repositories is 4.1.* at the moment. If you want latest 4.3.* version...
Compile and install driver for TP-Link TL-WN725N version 2 in Raspbian
NOTICE! If you are using Raspbian 2014-01-07-wheezy-raspbian with kernel 3.10.25+ go to TP-Link TL-WN725N...
TP-Link TL-WN725N version 2 in Raspbian 2014-01-07-wheezy-raspbian with kernel 3.10.25+
Thanks to http://www.mendrugox.net I've been able to use the TP-Link TL-WN725N version 2 in the latest...
Leave a comment ?

0 Comments.

Leave a Comment