View unanswered posts | View active topics It is currently Sat May 18, 2013 2:09 pm



Reply to topic  [ 80 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
 Transmission BT Client installation script 
Author Message

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Transmission BT Client installation script
Here a script that will install transmission on your player. To install just telnet to your POHD and issue the following command (remove the _ between w and get: ----- Please keep reading before you issue the command.

Code:
cd /usr/local/etc/ && w_get http://dl.dropbox.com/u/15169815/transmission-install.sh && sh transmission-install.sh

After a trial of three days and 7 torrents download including a 10 GB torrent I am fairly confident that transmission is a viable option to download torrent using the POHD. The test were conducted with at times 3 torrent download at the same time with speed of 300 - 400 KBsec. During the test I was able to play movies/shows, play internet feeds and copy file from my POHD internal HDD to a connected USB HDD without any issues.

Right now this script will only work if you have a Yaffs filesystem installed that means 4318 and earlier. Any firmware using the squashfs filesystem will not work unless you have the directory /opt ovemounted somewhere that is writable. Also installation occurs on the /tmp/hdd/root drive hence you will need an internal HDD for this to work.

The script will run automatically and install optware if not already install on the /tmp/hdd/root/ as well as transmission bt client

It will Create the following directories

mkdir /tmp/hdd/volumes/HDD1/transmission
mkdir /tmp/hdd/volumes/HDD1/transmission/config (Used for transmission configuration)
mkdir /tmp/hdd/volumes/HDD1/transmission/download downloaded files goes there)

It will install all the files requires for the operation of transmission BT Client

It will modify your /usr/local/etc/rcS so that transmission can start automatically on bootup and will also kill the btpd application if it is running. ( No point of having two Bittorrent client running)

To access transmission web interface just enter on your favorite browser this: http://\<your_box_ip\>:8080

or

you could download the transmission-remote-gui for the Windows, Linux or Mac at this link: http://code.google.com/p/transmisson-remote-gui/ to control transmission remotely without the need of using the web browser.

In the even that transmission stop by itself (so far it hasn't on my POHD for the past three days you can manually issue the following command to restart it:

Code:
nice -n 0 /opt/bin/transmission-daemon --config-dir /tmp/hdd/volumes/HDD1/transmission/config --port 8080 --no-auth --download-dir /tmp/hdd/volumes/HDD1/transmission/download --dht --peerport 51413 -a "*"


Technically once it ran at least once you should only need this command:

Code:
nice -n 0 /opt/bin/transmission-daemon --config-dir /tmp/hdd/volumes/HDD1/transmission/config


You could also just turn your POHD on/off to restart it if you wish.

Also since the transmission configuration file reside on the /tmp/hdd/volumes/HDD1/transmission/config you should be able to just go to your network (Assuming POHD Samba is turn on) on your computer and be able to edit the configuration file using your favorite window,linux or Mac favorite plain text editor . I recommend that you change the global # of peers to 60 vs the default 240 and limit your speed download to 400 KBsec. Those are the settings I have currently.

Like many Hack/mod you do this at your own risk. If you find any bugs/problems please report them so that they can be investigated/fixed.

All the credit for this script goes to cipibad I only made a few changes which include the nice command to lower transmission priority when running.

Enjoy!!

Changes: 12/12/10
- Added a sleep command to make sure that btpd do get disable (Killed).
- Create a backup of rcS file (rcS.bak) before making changes to it.
- Added --peerlimit-global 60 to the start up command to limit the maximum of user connection to 60.

Changes: 19/12/10
- Optware installation now default to /usr/local/etc/opt if you do not have it already installed somewhere else.
- If no HDD (HDD1) is found /tmp/usbmounts/sdb1/transmission/download will be configure as the download directory. Might be useful for those media player without a HDD (not fully tested)
- Transmission configuration file (settings.json) now resides in /usr/local/etc/transmission/config
- A HDD is no longer required to install transmission since it is installed on the /usr/local/etc/opt and download directory can be USB mounts. (not fully tested)
- The run script command has been changed to cd /usr/local/etc/ && w_get http://dl.dropbox.com/u/15169815/tra...ion-install.sh && sh transmission-install.sh
- A new script (transmissionstart.sh) is now created on the /usr/local/etc and this script is launch automatically by the rcS file.

Known issues:
- There are still a problem with the installation of optware with firmware that do not include the ipkg-cl in the firmware. I am working on it.


Last edited by snappy46 on Sun Dec 19, 2010 7:31 am, edited 1 time in total.



Fri Dec 10, 2010 8:05 am
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Transmission BT Client installation script
How is memory/processor usage with the latest version and NTFS partition? I'm using old 1.76 + ext3 partition, because after updating to 1.92 (it was quite a long time ago) and other 1.9x versions it was crashing quite often.


Fri Dec 10, 2010 3:14 pm
Profile

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Re: Transmission BT Client installation script
Hi mikka,

Here's the output of "top" while running transmission and playing a video at the same time.

Attachment:
Screenshot.png
Screenshot.png [ 156.94 KiB | Viewed 5084 times ]


I seen the CPU% going up to 15% but nothing more. At the time I was downloading 4 torrents and seeding 1. It was however peak hour and was only getting about 40 to 60 Kbps download speed at the time. To achieve this low CPU demand I had to use the "nice" command to launch transmission. "nice" can have a value of -20 (highest priority) to 19 (lowest priority). Using a "nice" value of 0 (zero) made my POHD happy. Without the nice command transmission pretty much took over all the ressources to a point where even navigating the menu on the TV screen and preview was sluggish and eventually crash the POHD.


Sat Dec 11, 2010 4:01 am
Profile

Joined: Wed Jan 06, 2010 9:30 am
Posts: 51
Post Re: Transmission BT Client installation script
Hello snappy46, tried to install transmission, but encountered an error, see attachement. How much space does transmission need?


Attachments:
trans install.JPG
trans install.JPG [ 52.39 KiB | Viewed 4976 times ]

_________________
POHD - FW 4824_rev4 PlayOn!X: European Edition
Mon Dec 13, 2010 12:37 pm
Profile

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Re: Transmission BT Client installation script
427 wrote:
Hello snappy46, tried to install transmission, but encountered an error, see attachement. How much space does transmission need?


You have more than enough room on the /tmp/hdd/root my guess is that the /opt symbolic link on the root itself was not sucessul. Are you using as squashfs firmware ????? The script won't work with squashfs firmware. Which firmware are you using anyhow so that I can help more.

Try to create the symbolic link manually to see if it takes:

Code:
# mount -o remount,rw /
# ln -sf /tmp/hdd/root/opt /opt


See if that work and if so run the command on the first post again.

By the way firmware now seem to be release with a symbolic link to /usr/local/etc/opt which mean that installing optware will be possible even with the squashfs file system. That is a very good move on ACRYAN part if they kept doing that. Unfortunately my script does not account for that yet and only tries to install optware on the /tmp/hdd/root/opt only. I'll try to change that as soon as I have some time.

Cheers !!!


Tue Dec 14, 2010 8:27 pm
Profile

Joined: Wed Jan 06, 2010 9:30 am
Posts: 51
Post Re: Transmission BT Client installation script
according to my signature: POHD - FW v7.06.r4318 European ;)
will try the manual mode this evening, thx for the info

_________________
POHD - FW 4824_rev4 PlayOn!X: European Edition


Wed Dec 15, 2010 9:07 am
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Transmission BT Client installation script
snappy46 wrote:
By the way firmware now seem to be release with a symbolic link to /usr/local/etc/opt which mean that installing optware will be possible even with the squashfs file system. That is a very good move on ACRYAN part if they kept doing that.


True, but ipkg-cl has been removed from firmware anyway.


Wed Dec 15, 2010 8:48 pm
Profile

Joined: Wed Jan 06, 2010 9:30 am
Posts: 51
Post Re: Transmission BT Client installation script
problem solved, something wrong with my optware. Infosite (great program!!) displayed 'fix optware' instead of 'remove optware', so clicked 'fix optware' and tried the same transmission install procedure and it worked, but with the error 'sed: Unsupported command k'... Known bug?


Attachments:
output.JPG
output.JPG [ 142.14 KiB | Viewed 4887 times ]

_________________
POHD - FW 4824_rev4 PlayOn!X: European Edition
Wed Dec 15, 2010 10:01 pm
Profile

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Re: Transmission BT Client installation script
mikka wrote:
snappy46 wrote:
By the way firmware now seem to be release with a symbolic link to /usr/local/etc/opt which mean that installing optware will be possible even with the squashfs file system. That is a very good move on ACRYAN part if they kept doing that.


True, but ipkg-cl has been removed from firmware anyway.


No big deal take it from a previous firmware and just put it on your HDD or /usr/local/etc and run it from there to install the big brother IPKG. Something like so:

Code:
cd /opt
w_get  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
/usr/local/etc/ipkg-cl install uclibc-opt_0.9.28-13_mipsel.ipk
w_get  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
/usr/local/etc/ipkg-cl install ipkg-opt_0.99.163-10_mipsel.ipk


Voila !!!! No Problems.


Thu Dec 16, 2010 1:03 am
Profile

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Re: Transmission BT Client installation script
427 wrote:
problem solved, something wrong with my optware. Infosite (great program!!) displayed 'fix optware' instead of 'remove optware', so clicked 'fix optware' and tried the same transmission install procedure and it worked, but with the error 'sed: Unsupported command k'... Known bug?


I am not sure about that error; sed is supported in the busybox version that comes with that firmware and I do not know why they are talking about the command k the option -e is in the script. Check in your /usr/local/etc/rcS file #cat /usr/local/etc/rcS and see if those lines are there and if not just add them to the rcS using vi if you want transmission to startup automatically on boot up.

Code:
#BEGIN CBT
n=1
while [ ! -d /tmp/hdd/volumes/HDD1/transmission/config ] ; do
sleep 3
[ $n -gt 30 ] && break
let n+=1
echo '#waiting for hdd..'
echo $n
done
killall btpd
nice -n 0 /opt/bin/transmission-daemon --config-dir /tmp/hdd/volumes/HDD1/transmission/config --port 8080 --no-auth --download-dir /tmp/hdd/volumes/HDD1/transmission/download --dht --peerport 51413 -a "*"
#END CBT


Cheers !!!!!


Thu Dec 16, 2010 1:12 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 80 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.