http://www.onepitwopi.com/raspberry-pi/installing-deluge-1-3-6-on-a-raspberry-pi/
Find External Hard Drive:
- dmesg | grep sd
- [ 4.487833] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
Delete existing partitions with cfdisk
- cfdisk /dev/sda
and create a single primary partition. Then format:
- mkfs.ext4 /dev/sda1
Mount it and setup automount:
- mkdir /media/usbhdd
- mount /dev/sda1 /media/usbhdd/
- echo "/dev/sda1 /media/usbhdd ext4 defaults 0 0" >>/etc/fstab
Move /var/log to external HDD
- /etc/init.d/rsyslog stop
- mv log /media/usbhdd/
- ln -s /media/usbhdd/log
- /etc/init.d/rsyslog start
#! /bin/sh
/etc/init.d/deluge-daemon stop
oldIP=`cat /etc/network/eth0.ip`
newIP=$(ip -f inet -o addr show eth0|cut -d\ -f 7 | cut -d/ -f 1)
logger "DELUGE Updating Deluge IP Address, $oldIP -> $newIP"
sed -i -e 's/listen_interface": "'$oldIP'"/listen_interface": "'$newIP'"/g' /root/.config/deluge/core.conf
if [ $? = 0 ]; then
echo $newIP >/etc/network/eth0.ip
logger "DELUGE IP BINDING SUCCESS"
/etc/init.d/deluge-daemon start
else
logger "DELUGE IP BINDING FAILUE"
fi
Setup folder for Deluge stuff:
- mkdir /media/usbhdd/media
- ln -s /media/usbhdd/media/
Install FlexGet
- apt-get install python-pip
- pip install flexget
No comments:
Post a Comment