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

#1 2008-03-06 23:36:40

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

Transmission & Clutch on CH3SNAS/DNS-323

This version of Transmission (and these instructions) are deprecated!
Head over to the Transmission 1.3 thread instead!






Hi!

I've successfully compiled the popular Bittorrent client Transmission for use on the DNS-323.
Transmission is easy on the CPU and memory, and a cool Web interface named Clutch exists which makes using this client a breeze.

Transmission

This is the latest official version 1.22 from June 13 2008.

I've slightly modified the daemon and it now has blocklist support.
Start the daemon with the '-b' option to activate it (you also need a blocklist, unpack it to /mnt/HD_a2/.transmission/blocklists)

* Install instructions for fun_plug-0.5:

      # wget Transmission-1.22-ffp0.5.tgz
      # wget curl-7.18.1.tgz
      # funpkg -i Transmission-1.22-ffp0.5.tgz
      # /ffp/start/transmission.sh start

The startup script uses

Code:

export TRANSMISSION_HOME=/mnt/HD_a2/.transmission

as Transmissions home directory.
If you will just use the Clutch WebUI, you can leave it at that.
If you want to use transmission-remote to change settings or check torrent progress, you will have to set this variable for your shell:

   * Connection via SSH  -->  add the above line to etc/profile.
   * Connection via Telnet -->  add the above line directly into the fun_plug script.

Again, this is only necessary if you intend to use transmission-remote, or start the daemon manually.

Clutch

* The Clutch interface requires a webserver (e.g. lighttpd) and PHP 5.x with JSON and XML.

       fun_plug 0.5: Just install the lighttpd and PHP packages from fonz' repository.

*  Get Clutch here.
* Important: The file clutch/remote/data/socket.txt stores the path to the transmission-daemon socket file. You hence have to change this file:

Code:

# echo /mnt/HD_a2/.transmission/daemon/socket > /mnt/HD_a2/www/pages/clutch/remote/data/socket.txt

(Use the program paths appropriate to your configuration).


That's it. If you direct your browser to the Clutch web interface now, it should show up and you can start downloading.

Have fun!


Unfortunately, I don't have the time anymore to provide a build for funplug-0.3/0.4. 0.5 is totally stable and if you're dependent on Transmission I suggest you update to 0.5 (it's really quite easy).

Last edited by KyleK (2008-11-13 13:51:38)

Offline

 

#2 2008-03-07 15:10:03

Pejn
Member
Registered: 2007-12-17
Posts: 61

Re: Transmission & Clutch on CH3SNAS/DNS-323

thanx kylek for new version works fine

Last edited by Pejn (2008-06-16 23:13:20)

Offline

 

#3 2008-03-07 15:21:34

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Transmission & Clutch on CH3SNAS/DNS-323

Pejn - I haven't set this up but I would assume you missed point 4 in the FP (or did something wrong in the socket.txt file).

Offline

 

#4 2008-03-07 16:16:21

Pejn
Member
Registered: 2007-12-17
Posts: 61

Re: Transmission & Clutch on CH3SNAS/DNS-323

yeah now it works smile thanks! must have missed that point :s

Offline

 

#5 2008-03-07 18:55:06

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Transmission & Clutch on CH3SNAS/DNS-323

how about making just one file whit all the stuff in to get it working ?


First user to fun_plug the dns-323.

Offline

 

#6 2008-03-07 19:42:05

shadowandy
Member
From: Singapore
Registered: 2007-05-26
Posts: 89
Website

Re: Transmission & Clutch on CH3SNAS/DNS-323

actually i had compiled transmission earlier this week as well, it is just abit smaller in size. http://www.shadowandy.net/_html/archive … piled.html


SpeedStream 5660, DIR-655,  DNS-323, MLDonkey (DNS-323), DNS-343, DIR-300 Tips & Hacks

Offline

 

#7 2008-03-07 21:15:41

Nasp
Member
Registered: 2008-02-18
Posts: 63
Website

Re: Transmission & Clutch on CH3SNAS/DNS-323

Great, work.

I will test, transmission is one of the best bittorrent clients.

Offline

 

#8 2008-03-07 22:21:54

jules
Member
Registered: 2008-01-26
Posts: 78

Re: Transmission & Clutch on CH3SNAS/DNS-323

Well done kyle!


CH3SNAS - Black Box Ed. • FW:1.03b6a • 2 x WD5000AAKS

Offline

 

#9 2008-03-08 00:16:06

Nasp
Member
Registered: 2008-02-18
Posts: 63
Website

Re: Transmission & Clutch on CH3SNAS/DNS-323

KRH wrote:

how about making just one file whit all the stuff in to get it working ?

well, e need the same, like the mldonkey realsimply.

Offline

 

#10 2008-03-08 19:45:51

mazzer
Member
Registered: 2008-02-11
Posts: 13

Re: Transmission & Clutch on CH3SNAS/DNS-323

Works great, great work. The compile available from shadowandy's link does not work. Use his later version, available here:

http://www.shadowandy.net/_html/archive … n_106.html

It includes a lib file that seemed to be missing from the other release. And the binaries really are much smaller.

Offline

 

#11 2008-03-09 01:28:36

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

That's probably because I compiled statically, and shadowandy produced dynamic binaries.
I tried that as well, but had crashing problems with the daemon due to some threading issues. Weird stuff.

Offline

 

#12 2008-03-10 20:49:13

headman
Member
Registered: 2008-03-09
Posts: 17

Re: Transmission & Clutch on CH3SNAS/DNS-323

After a while of running transmission both of the hdd-leds go red and I cannot get access via windows explorer. Clutch shows me everything is being downloaded okay but then they stop. Any ideas why this happens? I'm back to using MLDonkey for now.

Offline

 

#13 2008-03-17 03:22:18

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Transmission & Clutch on CH3SNAS/DNS-323

I'm experiencing the same issue as headman -- when running transmission, the 2 LEDs turn pink, and I cannot access the drives via explorer.  I followed the steps provided in the shadowandy link.

Offline

 

#14 2008-03-17 03:47:13

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Transmission & Clutch on CH3SNAS/DNS-323

I figured out my problem.  I hadn't changed my download transfer directory, so it defaulted it to the root directory.  Since this is outside of the hard drives, I think it was downloading it into memory and maxing it out.  Well, I changed the download directory in the clutch preferences window to a directory on my hard drive (//mnt/HD_a2/...)and it seems to be working great now.  Thanks!

Offline

 

#15 2008-03-17 15:09:27

Nasp
Member
Registered: 2008-02-18
Posts: 63
Website

Re: Transmission & Clutch on CH3SNAS/DNS-323

moquilok wrote:

I figured out my problem.  I hadn't changed my download transfer directory, so it defaulted it to the root directory.  Since this is outside of the hard drives, I think it was downloading it into memory and maxing it out.  Well, I changed the download directory in the clutch preferences window to a directory on my hard drive (//mnt/HD_a2/...)and it seems to be working great now.  Thanks!

yes, me too.

Offline

 

#16 2008-03-17 16:07:58

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

How do you add another download from Clutch if you are using a tracker where the download link directs you to a PHP script and not the actual .torrent-file? Is it necessary to first download the .torrent-file and point to that? In that case, is it possible to set Transmission to poll a folder for new .torrent files?


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

Offline

 

#17 2008-03-17 16:33:27

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

I'm afraid I can't answer that question. Please visit the Transmission/Clutch forums at www.transmissionbt.com

If there's a redirect involved, you will have to download the torrent first and then upload it from your PC.
Only the Mac client currently has the functionality of a "Watch folder". It's not been integrated in the daemon or Clutch yet.

Offline

 

#18 2008-03-17 17:53:24

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

When Transmission creates new files/folders in my download directory it does so with only read permissions. When I remove a dowload from Clutch, I also wnat to remove the files, but this has to be done manually. The problem is, this becomes impossible from windows explorer without first setting read permissions for "others" using telnet. I tried to change to umask 020 but the folders are still created with permission 755.

Where are the settings for Transmission, beside those few you can access from Clutch?

Last edited by vedeja (2008-03-17 18:53:16)


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

Offline

 

#19 2008-03-17 22:28:38

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

Well, I am up running...sort of. DL is slow (like 10% of bandwidth) and UL is zero kb/s, and I really mean 0.

And what about this?

/ # transmission-remote -i
[warn] epoll_create: Function not implemented
transmission-remote: failed to connect to socket file: //.transmission/daemon/socket: No such file or directory


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

Offline

 

#20 2008-03-17 22:47:56

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

vedeja wrote:

Well, I am up running...sort of. DL is slow (like 10% of bandwidth) and UL is zero kb/s, and I really mean 0.

And what about this?

/ # transmission-remote -i
[warn] epoll_create: Function not implemented
transmission-remote: failed to connect to socket file: //.transmission/daemon/socket: No such file or directory

1. Make sure you forward the port Transmission uses in your router, otherwise you won't get any incoming connection and hence slow speeds.
Transmission supports automatic port mapping via NAT-PMP and UPnP. You can activate it by calling

Code:

transmission-remote -m

2. It looks like you have conflicting settings for the environment variable TRANSMISSION_HOME. In order to work properly, you have to set it in 3 places:
in the transmission.sh startup script (it's in there by default, see first post)
in the fun_plug script in your first HDs root
in the etc/profile configuration file (this one is only used when you connect to the NAS via SSH. In telnet it has no effect)

You can check the current setting of the variable via the export command (without any arguments.

Last edited by KyleK (2008-03-17 22:50:05)

Offline

 

#21 2008-03-17 23:41:13

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Transmission & Clutch on CH3SNAS/DNS-323

Transmission/Clutch is working really well for me thus far -- thanks KyleK and shadowandy for all your work.

I am not able to successfully upload a large .torrent files -- it's 166K.  I found the following message in the lighttpd error log (/mnt/HD_a2/www/logs/error.log):

2008-03-17 18:35:29: (connections.c.1096) denying upload as opening to temp-file for upload failed: /var/tmp/lighttpd-upload-uQ9l7i No such file or directory
2008-03-17 18:35:29: (connections.c.1096) denying upload as opening to temp-file for upload failed: /var/tmp/lighttpd-upload-wN661M No such file or directory

The error message does not appear when I upload smaller .torrent files.  I'm guessing it's attempting to create a temp cache file, but does not have access in that directory.  I would like it to create these temp files in another location for obvious reasons.  Is there a environment variable somewhere or a change in a script somewhere that I can make it use another directory?  I wasn't able to find it anywhere.

Any help would be greatly appreciated -- thanks!

Offline

 

#22 2008-03-17 23:51:10

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

You have to set the variable server.upload-dirs in your lighttpd.conf:

Code:

server.upload-dirs = ( "/tmp" "/mnt/HD_a2/fun_plug.d/tmp" )

Of course you can provide any number of directories, and define their location. You just have to make sure that all the directories exist.
Restart lighttpd and all should be fine.

Offline

 

#23 2008-03-18 00:02:54

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Transmission & Clutch on CH3SNAS/DNS-323

It's working now -- thanks KyleK!

Offline

 

#24 2008-03-18 11:17:59

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Transmission & Clutch on CH3SNAS/DNS-323

Hi - I'm trying to get this up and running using the instructions and downloads on shadowandys pages as they are a little more "newbie" friendly.

I am struggling to find the "lighttpd.conf-with-php-sample" file. According to his comments page it should be included in the MLDonkey download however I've downloaded this and had a look in the downloaded file with WinRAR but can't seem to find lighttpd.conf-with-php-sample in there.

Is there another way to get hold of it? Could someone link to a copy

Thanks


RAP

Offline

 

#25 2008-03-18 11:39:57

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Transmission & Clutch on CH3SNAS/DNS-323

Here's a copy of the file.


Attachments:
Attachment Icon lighttpd.conf-with-php-sample, Size: 11,692 bytes, Downloads: 1,587

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB