DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#226 2008-07-25 22:53:24

ka3ak
Member
From: Calgary, Canada
Registered: 2007-07-16
Posts: 21

Re: Transmission & Clutch on CH3SNAS/DNS-323

I was wondering if "seeding until .... " option will be implemented ? Something like Dlink bittorent has ...

Offline

 

#227 2008-07-25 23:01:26

aceofbase
Member
Registered: 2008-07-25
Posts: 9

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

Well, that is pretty self-explanatory, isn't it. I assume you haven't specified a download folder, so Transmission uses the default, which might not exist on your NAS.

Log in via ssh or telnet, and type "transmission-remote -f /mnt/HD_a2/Downloads"  (or whereever you want to place downloads).

Thanks for helping, the attitude is pretty uncalled for tho...

Found the problem, the torrent I was testing with contains illegal characters in the filename (').
So the errormessage was missleading me. Other torrents works fine.

Offline

 

#228 2008-07-27 02:46:40

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

Sorry, I didn't mean to give any attitude. You didn't say though that other torrents worked fine, so I assumed it was a general problem.

Glad you found the cause of the problem.

Offline

 

#229 2008-07-27 08:14:50

aceofbase
Member
Registered: 2008-07-25
Posts: 9

Re: Transmission & Clutch on CH3SNAS/DNS-323

Now that I have Transmission/Clutch up and running, how do I disable/uninstall the built-in client?

Offline

 

#230 2008-07-27 16:45:02

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Transmission & Clutch on CH3SNAS/DNS-323

Erase the program directory.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#231 2008-07-28 08:49:10

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Transmission & Clutch on CH3SNAS/DNS-323

Has anyone experienced that downloading chokes the uploads? I have a big torrent (80GB) downloading and even though it's running at only 50-100 KB/s (meaning connection is not saturated) my uploading stops in the meantime.

Edit: Additionally, I also discovered:

Code:

# transmission-remote -i
transmission-remote: failed to connect to socket file: //.config/transmission/daemon/socket: No such file or directory

My socket file is at /mnt/HD_a2/.transmission/daemon/socket so I'm not sure what about the "//.config" part.

Last edited by vedeja (2008-07-28 09:01:33)


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#232 2008-07-28 12:08:36

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

transmission-remote has to know where the socket file (or, more specifically, the deamons config folder) is located. The default is ~/.config/transmission.
Since you log in via telnet, there's no home folder, which explains the doubly slashes.

Add this line to /ffp/etc/rc:

Code:

export TRANSMISSION_HOME=/mnt/HD_a2/.transmission

If you use ssh instead of telnet, add the above line to /ffp/etc/profile.


Regarding your problems with upload, I can't say I've noticed that problem, but then again I rarely check on the status of Transmission.

Offline

 

#233 2008-07-28 18:03:11

RimBlock
Member
Registered: 2008-04-24
Posts: 77

Re: Transmission & Clutch on CH3SNAS/DNS-323

Hi,

I have written a little script based on the original mantioned here that was set for BASH.  I have amended it as there seemed to be a few issues for me and it works fine for FFP 0.5 and editing the script to change the BASE_DIR should allow it to run on the older versions.

I added the script to /mnt/HD_a2/.transmission/scripts and called it tran_watch.sh
I then created a /mnt/HD_a2/torrent_watch folder (mkdir /mnt/HD_a2/torrent_watch)
I then changed the permissions on the folder to be open to all (chmod 777 /mnt/HD_a2/torrent_watch)
Add it to the crontab to run every 5 minutes.

Copy any .torrent files to the volume_1/torrent_watch folder and they will get added every 5 minutes and will appear in clutch.

CODE
----------------------------------------------------
#!/bin/sh

# Set Variables.
WATCH_DIR='/mnt/HD_a2/torrent_watch'         #Where it will look for .torrent files
BASE_DIR='/ffp'                                             #For older funplug change to the funplug root (i.e. fun_plug.d)
TRANS_HOME='/mnt/HD_a2/.transmission'        #Location transmission has been installed to.
LOG_FILE='$FFP/var/tran_autowatch.log'          #Log file

NUM_FILES=`ls -l $WATCH_DIR |grep ".torrent" | wc -l`

if [ $NUM_FILES -gt 0 ];then
        for file in $WATCH_DIR/*.torrent
        do
                $BASE_DIR/bin/transmission-remote -g $TRANS_HOME -a "$file"
                echo "[`date`] "$file" added to queue." > $LOG_FILE
                rm "$file"
                sleep 1
        done
fi
exit 0



--------------------------------------------------------------------------------------------------

The original code for BASH was posted by johanfa here -> http://mybookworld.wikidot.com/forum/t- … -watch-dir

RB

Offline

 

#234 2008-07-29 10:10:35

RimBlock
Member
Registered: 2008-04-24
Posts: 77

Re: Transmission & Clutch on CH3SNAS/DNS-323

Ok,

I am now amending the torrent_helper.sh script which allows bandwidth throttling based on time, managing of completed torrents after a specified seeding ratio has been passed, automatic pickup of new .torrent files in a watch directory and shutdown of Transmission if there is nothing to so / startup is new .torrent files found.

This is a major rewrite of the script produced by kyyhkynen for the world book using BASH and found at http://kyyhkynen.net/stuff/mybook/torrent_helper.php

I am also adding scheduling of bandwidth based on day of week.

Will post more when complete and tested.

RB

Offline

 

#235 2008-07-29 10:14:33

Chumby
Member
From: Tasmania, Australia
Registered: 2007-08-01
Posts: 96
Website

Re: Transmission & Clutch on CH3SNAS/DNS-323

Good work RimBlock... looking forward to the scripts!

Cheers
Chumby

Last edited by Chumby (2008-07-29 10:15:04)

Offline

 

#236 2008-07-30 17:53:11

RimBlock
Member
Registered: 2008-04-24
Posts: 77

Re: Transmission & Clutch on CH3SNAS/DNS-323

Right,

Syntax checking complete for bash to sh conversion
Watch directory checking works
moving completed files after seeding a defined ratio works
Bandwidth scheduling by day (Mon -> Sunday) works
Shutdown of Transmission when nothing to do works
Starting of Transmission when new .torrent files found works

Max threads limit still untested (currently disabled).
Wrapper script still to be written
README file to be written
Items to be packaged

script is currently 403 lines (around 100 is only for variables and instructions).

RB

Offline

 

#237 2008-08-06 11:27:59

Fevida
Member
From: Eindhoven, Netherlands
Registered: 2008-08-03
Posts: 12

Re: Transmission & Clutch on CH3SNAS/DNS-323

Today Transmission 1.30 was released and clutch is now intergraded, I'd love to see a version compiled for funplug. I'm a bit to green behind my linux-ears to compile it myself.....

Offline

 

#238 2008-08-06 11:37:23

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

Patience, young padawan :)
I built Transmission 1.3 (dev version) a couple of days ago, works fine.
I'll do a build of the final 1.3 later tonight and post it here.

Offline

 

#239 2008-08-07 02:42:17

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

Update: Transmission 1.3 has been released and you can download the funplug-0.5 versioen here.

I haven't had time to test it yet, I just compiled it. I'm not sure if it can work with existing configuration files/directories from Transmission 1.2x, I therefore suggest you provide a new settings folder (see start/transmission.sh) and start fresh.

Clutch is built-in now, and so is a small HTTP server, which means you won't need lighttpd anymore. You can access Clutch through http://<your NAS IP>:9091/transmission/web.


I won't put this in the first post yet, I'd like to test it first.

Offline

 

#240 2008-08-07 04:22:08

RimBlock
Member
Registered: 2008-04-24
Posts: 77

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

Update: Transmission 1.3 has been released and you can download the funplug-0.5 versioen here.

I haven't had time to test it yet, I just compiled it. I'm not sure if it can work with existing configuration files/directories from Transmission 1.2x, I therefore suggest you provide a new settings folder (see start/transmission.sh) and start fresh.

Clutch is built-in now, and so is a small HTTP server, which means you won't need lighttpd anymore. You can access Clutch through http://<your NAS IP>:9091/transmission/web.

I won't put this in the first post yet, I'd like to test it first.

How about v1.31 :-).

I am more concerned with the following bug in 1.3 which has been fixed in 1.31

crash in 1.30 when adding torrents: div by zero

Link to forum post here -> http://forum.transmissionbt.com/viewtop … 779#p26779

Thanks for your work compiling the code though.  i just need to make sure my util script will also work with 1.31.

RB

Offline

 

#241 2008-08-07 05:06:09

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

I compiled from the SVN repository. That bug is already fixed in the version I posted (it just hadn't been renamed to 1.31 yet).

Offline

 

#242 2008-08-07 05:24:23

RimBlock
Member
Registered: 2008-04-24
Posts: 77

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

I compiled from the SVN repository. That bug is already fixed in the version I posted (it just hadn't been renamed to 1.31 yet).

Great, thanks
RB

Offline

 

#243 2008-08-07 06:24:41

geegeez
Member
Registered: 2008-08-01
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

Man I have the worst timing.  Just as I get 1.22 working 1.31 comes out, lol.  Is the best procedure at this point to uninstall Transmission/Clutch/Lighttpd or can you install over top?

EDIT:  I removed Transmission, Clutch, and turned off Lighttpd.  I left curl installed though.  I did a funpkg -i Transmission-1.3-ffp0.5.tgz and that went fine.  Tried to start transmission and get a "Could not find Transmission socket" error.  When I take a peek at /mnt/HD_a2/.transmission in the transmission-daemon.log file, I see "/ffp/bin/transmission-daemon: can't load library 'libintl.so.8'".  I figure the file belongs to a package that I missed installing.  Which package does this it belong to?

Last edited by geegeez (2008-08-07 07:01:44)

Offline

 

#244 2008-08-07 08:30:52

noodle
Member
Registered: 2007-07-13
Posts: 62

Re: Transmission & Clutch on CH3SNAS/DNS-323

Cannot launch Transmission 1.3.

Error:

/ffp/bin/transmission-daemon: can't load library 'libintl.so.8'

Did I miss something?

Offline

 

#245 2008-08-07 13:46:40

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

Darn it. That happens when you put this stuff up in a hurry, without testing.
Apparently Transmission now requires the gettext library.

Fetch it here.

Last edited by KyleK (2008-08-07 15:04:30)

Offline

 

#246 2008-08-07 14:19:10

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

Apparently Transmission now requires the gettext library.

OK, that solved it. But what was wrong with the gettext package from fonz's site?

Secondly, Clutch is not available at http://<my NAS IP>:9091/transmission/web. Any suggestions?


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#247 2008-08-07 14:31:05

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

Oh, I didn't realize fonz had already done gettext. Of course, you can use his version as well (it's even a bit smaller).

Transmission looks in various places for the web interface, but since funplug uses the /ffp prefix for its path structure, it won't find it.
You have to set the environment variable CLUTCH_HOME to "/ffp/share/transmission/web" and then restart Transmission.


I'll do a fully featured post for the new release with guides on how to set up authentication and stuff, but first I have to rebuild my computer.
I'll probably get to it on the weekend.

Offline

 

#248 2008-08-07 14:57:46

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

Oh, I didn't realize fonz had already done gettext. Of course, you can use his version as well (it's even a bit smaller).

No, that's exactly what was NOT working, because I had his version installed already before trying 1.3 and it didn't work until I replaced it with the gettext that you pointed to.

Here's another (perhaps) strange thing: The Clutch 0.4 installation that I was using together with Transmission 1.22 is still working OK even with 1.3. I thought the protocol was completely rewritten and incompatible.

Last edited by vedeja (2008-08-07 15:01:51)


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#249 2008-08-07 15:03:15

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Transmission & Clutch on CH3SNAS/DNS-323

It is incompatible, the underlying protocol is totally different. Are you sure you shut down the old Transmission 1.22?

fonz' version of gettext 0.17 doesn't contain libintl at all, so no wonder it didn't work.

Last edited by KyleK (2008-08-07 15:05:55)

Offline

 

#250 2008-08-07 15:42:33

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

It is incompatible, the underlying protocol is totally different. Are you sure you shut down the old Transmission 1.22?

I didn't stop the 1.22 daemon before uninstalling it, perhaps that's why. Anyway I stil couldn't get Clutch up. I'll just wait for your instructions. Thanks a lot for your work and help.


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB