Quantcast
Channel: Programming and Technology » Raspberry Pi
Viewing all articles
Browse latest Browse all 23

Install script for XBMC in Raspbian

$
0
0
# 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

xbmc-logo

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


Viewing all articles
Browse latest Browse all 23

Trending Articles