Thursday, January 06, 2011

[Pogoplug] Install Transmission

Based on Installing OpenPogo + Transmission on dockstar

- SSH into Pogoplug.
        
    # makes filesystem read-write
    mount -o rw,remount / 
    ipkg install nano transmission
    # Run the following 2 commands to generate a configuration file for Transmission
    transmission-daemon --config-dir /opt/etc/transmission-daemon 
    killall transmission-daemon
    # modify the settings.json file
    # go to line 44 and make “rpc-whitelist-enabled”: false, save it
    vi /opt/etc/transmission-daemon/settings.json
    transmission-daemon --config-dir /opt/etc/transmission-daemon 
    mount -o r,remount /


Now you should be able to browse the web interface with http://pogoplug_ip-addr:9091 and change settings in the preference page. You can also go into the setting.json and modify any of the other settings.

To set an init script to make transmission run on boot create a script:

vi /opt/etc/init.d/S88transmission 

#!/bin/bash
# Starts up transmission
#

start() {

 echo -n "starting up transmission:"
 if [ -n "`pidof transmission-daemon`" ]; then
  killall `pidof transmission-daemon`
 fi

 /opt/bin/transmission-daemon --config-dir /opt/etc/transmission-daemon --blocklist

}

stop () {

   echo -n "stopping transmission:"
   killall transmission-daemon

}

restart () {

   stop
   start
}

case "$1" in

   start)
   start
   ;;

   stop)
   stop
   ;;

   restart)
   restart
   ;;

   *)
   echo "usage: $0 {start|stop|restart)"
   exit 1
   ;;

 esac


Be sure to set the downloads directory from the interface to the real directory identified by the pogoplug ie. '/tmp/.cemnt/mnt_sdb1/downloads' you should see the field getting populated in the setting.json file, now whenever you reboot transmission should start up too.

No comments: