Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created February 19, 2013 07:26
Show Gist options
  • Save ifnull/4983774 to your computer and use it in GitHub Desktop.
Save ifnull/4983774 to your computer and use it in GitHub Desktop.
Xbian Upgrade notes. Untested.
echo raspberry | sudo -S chmod +s /bin/su
sudo su
cd /home/xbian/
git clone git://github.com/xbianonpi/xbian.git source
for i in $(pgrep -u xbian); do kill -9 $i; done;
cd /home/xbian/source
git pull
cp -R etc/* /etc/
cp -R usr/* /usr/
rm -rf /lib/modules/*
cp -R lib/* /lib/
rm -rf /boot/*
cp -R boot/* /boot/
cp -R home/* /home/
rm -rf /opt/vc
cp -r opt/vc /opt
cp -R var/* /var/
echo "PiBox" > /etc/hostname
hostname PiBox
sed -i 's/raspberrypi/PiBox/g' /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment