Forum

Full Version: My installationprocess (Deluge + SickRage + Couchpotato)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi! After a lot of reinstallation, trials and errors, and much much searching on google I have finally found my way if installing xbian the way I want! When I started to search on how to install all the programs I wanted I wish I could have found something like this directly, so now I'm sharing to you Smile
My installation contains:
  • Fully update and fix the update error I always get...
  • xbmc 13.2
  • Deluged (to download torrents)
  • SickRage (sickbeard)
  • CouchPotato

Ports:
  • Deluged = 9091
  • SickRage = 8081
  • CouchPotato = 5050
You can easy go into the settings of each program to change the port to your wanted ones.
and of corse they all start automatically when xbian restarts.

I'm more than a noob into debian so it's a plain text to copy-paste into the terminal, but it works for me Angel

Hope it will help someone out there!

Code:
apt-get update
apt-get -y upgrade
sudo sed -i '/_hashlib.so/d' /var/lib/dpkg/info/python2.7.list
sudo sed -i '/_ssl.so/d' /var/lib/dpkg/info/python2.7.list
apt-get update
apt-get -y upgrade
apt-get -y install xbian-package-xbmc

rm /home/xbian/downloads
rm /home/xbian/incomplete
rm /home/xbian/torrents
ln -s /media/784daf82-4005-4ae2-85d4-f9a564fcb369/downloads /home/xbian/downloads
ln -s /media/784daf82-4005-4ae2-85d4-f9a564fcb369/incomplete /home/xbian/incomplete
ln -s /media/784daf82-4005-4ae2-85d4-f9a564fcb369/torrents /home/xbian/torrents
ln -s /media/784daf82-4005-4ae2-85d4-f9a564fcb369/filmer /home/xbian/filmer
ln -s /media/784daf82-4005-4ae2-85d4-f9a564fcb369/serier /home/xbian/serier
ln -s /media/784daf82-4005-4ae2-85d4-f9a564fcb369/anime /home/xbian/anime

apt-get -y install deluged deluge-webui
deluged
pkill deluged
echo "root:xbian:10" >> ~/.config/deluge/auth
echo "xbian:xbian:10" >> ~/.config/deluge/auth
echo "root:root:10" >> ~/.config/deluge/auth
echo "xbian:root:10" >> ~/.config/deluge/auth

wget http://paste.debian.net/download/116301

mv 116301 /etc/init.d
cd /etc/init.d
mv 116301 deluge
chmod 755 deluge
update-rc.d deluge defaults
service deluge start

apt-get -y install python python-twisted python-twisted-web python-openssl python-simplejson python-setuptools intltool python-xdg python-chardet geoip-database python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako
apt-get -y install git-core
apt-get -y install python-cheetah

git clone git://github.com/echel0n/SickRage.git /opt/sickbeard
cd /opt/sickbeard
cp init.ubuntu /etc/init.d/sickbeard
echo "SB_USER=root" >> /etc/default/sickbeard
echo "SB_HOME=/opt/sickbeard/" >> /etc/default/sickbeard
echo "SB_DATA=/opt/sickbeard/" >> /etc/default/sickbeard
echo "SB_OPTS=--config=/opt/sickbeard/config.ini" >> /etc/default/sickbeard

chmod +x /etc/init.d/sickbeard
update-rc.d sickbeard defaults
/etc/init.d/sickbeard start

git clone git://github.com/RuudBurger/CouchPotatoServer.git /opt/couchpotato
cd /opt/couchpotato
mv /init/ubuntu /etc/init.d/couchpotato
echo "CP_HOME=/opt/couchpotato" >> /etc/default/couchpotato
echo "CP_DATA=/opt/couchpotato" >> /etc/default/couchpotato
echo "CP_USER=root" >> /etc/default/couchpotato

chmod +x /etc/init.d/couchpotato
update-rc.d couchpotato defaults
/etc/init.d/couchpotato start
/etc/init.d/sickbeard start

UPDATED BUT NOT YET TESTED:
Code:
sudo su
apt-get update
apt-get -y upgrade
sudo sed -i '/_hashlib.so/d' /var/lib/dpkg/info/python2.7.list
sudo sed -i '/_ssl.so/d' /var/lib/dpkg/info/python2.7.list
apt-get update
apt-get -y upgrade
apt-get -y install xbian-package-xbmc

rm /home/xbian/downloads
rm /home/xbian/incomplete
rm /home/xbian/torrents
ln -s /media/[Your external USB-drive here]/downloads /home/xbian/downloads
ln -s /media/[Your external USB-drive here]/incomplete /home/xbian/incomplete
ln -s /media/[Your external USB-drive here]/torrents /home/xbian/torrents
ln -s /media/[Your external USB-drive here]/filmer /home/xbian/filmer
ln -s /media/[Your external USB-drive here]/serier /home/xbian/serier
ln -s /media/[Your external USB-drive here]/anime /home/xbian/anime

apt-get -y install python python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-libtorrent python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako python-twisted-web python-simplejson git-core python-cheetah

cd /opt/
git clone git://deluge-torrent.org/deluge.git
python setup.py clean -a
python setup.py build
python setup.py install

apt-get -y install deluge-webui
deluged
pkill deluged
echo "root:xbian:10" >> ~/.config/deluge/auth
echo "xbian:xbian:10" >> ~/.config/deluge/auth
echo "root:root:10" >> ~/.config/deluge/auth
echo "xbian:root:10" >> ~/.config/deluge/auth

wget http://paste.debian.net/download/116301

mv 116301 /etc/init.d
cd /etc/init.d
mv 116301 deluge
chmod 755 deluge
update-rc.d deluge defaults
service deluge start

git clone git://github.com/echel0n/SickRage.git /opt/sickbeard
cd /opt/sickbeard
cp init.ubuntu /etc/init.d/sickbeard
echo "SB_USER=root" >> /etc/default/sickbeard
echo "SB_HOME=/opt/sickbeard/" >> /etc/default/sickbeard
echo "SB_DATA=/opt/sickbeard/" >> /etc/default/sickbeard
echo "SB_OPTS=--config=/opt/sickbeard/config.ini" >> /etc/default/sickbeard

chmod +x /etc/init.d/sickbeard
update-rc.d sickbeard defaults
/etc/init.d/sickbeard start

git clone git://github.com/RuudBurger/CouchPotatoServer.git /opt/couchpotato
mv /opt/couchpotato/init/ubuntu /etc/init.d/couchpotato
echo "CP_HOME=/opt/couchpotato" >> /etc/default/couchpotato
echo "CP_DATA=/opt/couchpotato" >> /etc/default/couchpotato
echo "CP_USER=root" >> /etc/default/couchpotato

chmod +x /etc/init.d/couchpotato
update-rc.d couchpotato defaults
/etc/init.d/couchpotato start
/etc/init.d/sickbeard start
Many thanks for that.

I believe the Python issue has been solved - for now.

We always recommend using xbian-config to do the upgrades as it has a better idea of the dependencies that apt-upgrade doesn't (As I have been led to believe)
One typo! "mv /init/ubuntu /etc/init.d/couchpotato" should be "mv ./init/ubuntu /etc/init.d/couchpotato"

Also it might be nice to pull deluge from github rather then the repo (as the repo version does not support Magnets via webui)
Good idea. Fixed the code some and added Deluges DitRepo. I haven't had time to test it 100%. Will try to do it tomorrow, but it's there if someone want's to try it out and report back till I can do it myself.
Hi Danell,

How did you installed DELUGE on XBian?
Concerning the Deluge memory footprint, is your RPi can downloading/uploading while playing 1080 HD MKV file without lag?

Thank you for sharing your experience.
Reference URL's