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

#151 2008-05-27 13:02:54

egg_nostic
Member
Registered: 2008-05-15
Posts: 13

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

What router do you use? It either does not support UPnP or NAT-PMP, or it is not enabled. Try to forwared one specific port in your router to the CH3SNAS, and use that as port for Transmission (the default is 51413).
You can test with this link if the port is properly accessible: http://www.utorrent.com/testport.php?port=<your port>  (replace <your port> with the actual port number).

I finaly found out what the problem was. I probably had no connections to trackers since I didnt set a correct DNS server address in the CH3SNAS. It first pointed to the internal ROUTER IP. I changed it to the DNS servers that are present in the Lease that my router gets ET VOILA smile

I was working on mldonkey to get that working which also wasnt. It gave me a DNS resolution error. That is how I got the idea of settings the correct DNS server addresses in my CH3SNAS.

Transmission is downloading as we speak so I can say i'm very happy.

Still I want to thank you guys on helping out here smile

Last edited by egg_nostic (2008-05-27 17:22:46)

Offline

 

#152 2008-05-28 00:24:26

K.P.A.X.
Member
Registered: 2008-05-28
Posts: 6

Re: Transmission & Clutch on CH3SNAS/DNS-323

Hi all, I'm new here and my english is not best...but it doesn't matter...

Have a question. I've just switched from mldonkey to transmission, because transmission is more allowed/legal on the most trackers I use. But I really miss a schedule function in transmission. Is there any way that trasmission automatically limit/unlimit the upload/download rate?
Thx

Offline

 

#153 2008-05-28 00:34:30

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

I'm afraid that functionality doesn't exist.
But since Transmission can be controlled via transmission-remote, it would be possible to write a script that, based on some form of schedule, limits up and download automatically.
Haven't seen such an app yet, though.

Offline

 

#154 2008-05-28 12:36:25

K.P.A.X.
Member
Registered: 2008-05-28
Posts: 6

Re: Transmission & Clutch on CH3SNAS/DNS-323

Yes, I've seen that you can send commando's via transmission-remote, and its probably possible to make it work with some script, but can't find one though... Nobody need this function? Only mac users does!? smile

Offline

 

#155 2008-05-28 16:55:05

assuncap
Member
From: ByTheSea@Portugal
Registered: 2007-11-23
Posts: 26

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

I'm afraid that functionality doesn't exist.
But since Transmission can be controlled via transmission-remote, it would be possible to write a script that, based on some form of schedule, limits up and download automatically.
Haven't seen such an app yet, though.

You can use the crontab for that. you only need to develop a web interface for that. It's not that complicated.

Last edited by assuncap (2008-05-28 16:56:32)

Offline

 

#156 2008-05-28 18:26:42

K.P.A.X.
Member
Registered: 2008-05-28
Posts: 6

Re: Transmission & Clutch on CH3SNAS/DNS-323

I probably found a script for scheduling transmission. On this site http://kyyhkynen.net/stuff/mybook/torrent_helper.php one guy made a script with schedule and watchdir functions for transmission...
I'm trying to make it work now... )

Offline

 

#157 2008-05-28 21:58:18

assuncap
Member
From: ByTheSea@Portugal
Registered: 2007-11-23
Posts: 26

Re: Transmission & Clutch on CH3SNAS/DNS-323

K.P.A.X. wrote:

I probably found a script for scheduling transmission. On this site http://kyyhkynen.net/stuff/mybook/torrent_helper.php one guy made a script with schedule and watchdir functions for transmission...
I'm trying to make it work now... )

the script looks good but i would remove the sleep loop. is better to set the script on the crontab then to let it sleep for 5min. i guess i will use it my self.

thanks K.P.A.X for sharing this with us smile

Last edited by assuncap (2008-05-28 22:00:37)

Offline

 

#158 2008-05-29 01:43:23

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

Why is it better to use crontab than to use the sleep loop?

Offline

 

#159 2008-05-29 01:44:31

K.P.A.X.
Member
Registered: 2008-05-28
Posts: 6

Re: Transmission & Clutch on CH3SNAS/DNS-323

You welcome:)
But I'm a such noob that I cant even figure out how crontab works. I tried to edit it with commando ".../crontab - e" but i get some infinite loop, I tried commando ".../vi .../crontab" and get a bunch of hieroglyphs... I need some help. I need to put :
0 0 * * * transmission-remote -U
0 9 * * * transmission-remote -u 40
in my crontab to unlimit/limit transmission, right? How can you do it? I really cant figure it out, i'm a totally linux noob!
Thx

Offline

 

#160 2008-05-29 01:54:15

SilentException
Member
From: Island of Krk, Croatia
Registered: 2008-05-04
Posts: 148

Re: Transmission & Clutch on CH3SNAS/DNS-323

K.P.A.X. wrote:

You welcome:)
But I'm a such noob that I cant even figure out how crontab works. I tried to edit it with commando ".../crontab - e" but i get some infinite loop, I tried commando ".../vi .../crontab" and get a bunch of hieroglyphs... I need some help. I need to put :
0 0 * * * transmission-remote -U
0 9 * * * transmission-remote -u 40
in my crontab to unlimit/limit transmission, right? How can you do it? I really cant figure it out, i'm a totally linux noob!
Thx

use
#crontab -l >/tmp/tmp.crontab
#vi /tmp/tmp.crontab
i (for insert), edit the file (add those 2 lines). use full paths to transmission-remote!
esc, :wq
#crontab /tmp/tmp.crontab
#crontab -l
(to verify)


KyleK wrote:

Why is it better to use crontab than to use the sleep loop?

mostly resources i would say.. shell script in the background takes some ram and even the sleep takes some cpu cycles smile it's neglectable if you ask me but i like to use crond more..

Last edited by SilentException (2008-05-29 01:56:34)


D-Link DNS-323 v1.05 fun_plug-ed + many mods,  2 x 320GB Seagate Barracuda 7200.10 RAID0, Cat6 Gigabit Network, 9k Jumbo Frames, Average (WRITE): 19,32 MB/sec, Average (READ): 28,6 MB/sec

Offline

 

#161 2008-05-29 02:40:57

assuncap
Member
From: ByTheSea@Portugal
Registered: 2007-11-23
Posts: 26

Re: Transmission & Clutch on CH3SNAS/DNS-323

I agree. The thing here is more about control. crontab gives you more control. and you do not need to edit the code every time you want to change the refresh rate.
in my case  i have also a crotab web interface i made in perl a few years ago that makes things a lot easier.

Offline

 

#162 2008-06-02 21:30:16

K.P.A.X.
Member
Registered: 2008-05-28
Posts: 6

Re: Transmission & Clutch on CH3SNAS/DNS-323

2 SilentException

thx for explaining man, it works now )

Offline

 

#163 2008-06-05 10:33:21

wlgspotter
New member
Registered: 2008-06-05
Posts: 4

Re: Transmission & Clutch on CH3SNAS/DNS-323

K.P.A.X. wrote:

2 SilentException

thx for explaining man, it works now )

Hi:

I'm a relative newbie to both Linux and the DNS-323.  I've been trying to get the script as mentioned in the linked web page to work with the scheduling and watchdir, but doesn't seem to work for me.

I'm running fun_plug_0.5 on my DNS-323.

Any suggestions/ideas?

Thanks.

Offline

 

#164 2008-06-05 18:24:23

dweezil
Member
Registered: 2008-01-26
Posts: 18

Re: Transmission & Clutch on CH3SNAS/DNS-323

Hi everyone,

I installed the Transmission/Clutch duo with no problems ( well, I used a lot of your tips and advices... Thanks for that).

My only drawback for now is the speed.  I setup my DNS like egg_nostic suggested but I still can't get over 40KB/s for
a torrent that is seeded by over 2000 people...


---------------------------------------------------------------
I have a message to deliver to the cute people of the world...if you're
cute, or maybe you're beautiful...there's MORE OF US UGLY MOTHERFUCKERS
OUT THERE THAN YOU ARE!! So watch out.  -- Frank Zappa

Offline

 

#165 2008-06-11 06:16:56

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

Any way to verify that Transmission is correctly using the blocklist? I'm pretty sure I have it set up correctly, but I'd like to be sure...

Offline

 

#166 2008-06-11 13:00:35

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

If you haven't modified the startup script (transmission.sh), then Transmission will log all events to $TRANSMISSION_HOME/transmission-daemon.log (which should be /mnt/HD_a2/.transmission/transmission-daemon.log).
If the blocklist is enabled and present in the blocklists  folder, entries about IPs being blocked should pop up.

Alternatively, you could start the the server directly from the command-line with the -f switch (and the -b switch as well). This way Transmission won't go into the background and you'll see all it's output.

Offline

 

#167 2008-06-11 16:05:54

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

What is the easiest way to auto start Transmission at bootup in blocklist mode? Do I need to edit the program call in transmission.sh?

Offline

 

#168 2008-06-11 18:05:35

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

Yes. Add the command switch "-b" after "$command" on line 23 in start/transmission.sh.

Offline

 

#169 2008-06-11 19:28:48

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

This is weird; after making the suggested change and rebooting, now I can't SSH into the box, or open up the clutch page. The normal DNS-323 setup page is responding, and I seem to be able to FTP in, as well as access samba shares.

How can I fix this?

Offline

 

#170 2008-06-11 19:46:36

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

Looking at my funplug log, it looks like the transmission.sh is hanging, before lighttpd and sshd can even start. So it won't let me access to SSH... is there anyway to fix this through FTP or Samba, or to get sshd to boot up before transmission.sh?

Offline

 

#171 2008-06-11 20:06:14

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

I figured out a fix for my problem; since I had Samba access, I was able to edit the funplug startup script and add in a specific call to the sshd daemon at the start of the run commands section. This gave me SSH access to the box once again. Once I was in, I chmod a-x transmission.sh to keep it from starting again at reboot. Now everything is back to normal (minus the non-functioning transmission).

Looking at the logs for funplug, I got the following transmission error at startup, which prevented anything from loading after:

* /ffp/start/transmission.sh ...
Starting transmission-daemon
Thread 'libeventThreadFunc' started
Starting libevent thread
setrlimit( RLIMIT_NOFILE, 712 )
200 usable file descriptors
Transmission 1.21 (5905) started
Found 0 torrents in "/mnt/HD_a2/.transmission/torrents"
transmission-daemon: invalid torrent file
transmission-daemon: invalid torrent file
Bound socket 15 to port 51413
Opened port 51413 to listen for incoming peer connections

Any ideas what is going on here?

Offline

 

#172 2008-06-11 20:48:03

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

Can you post the line that you changed in transmission.sh?
Also, make sure that you don't change any of these .sh files with Windows Notepad. It will screw up the encoding of the files, making them unusable for the linux running on the NAS.

I suggest something like SciTE or Notepad++, or any editor with the option to save files in Linux mode (LF mode).

Offline

 

#173 2008-06-11 23:11:08

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

I'm using Notepad++ and saving in Linux format.

I changed the following line (line 23 in transmission.sh)

from:
su $user -c "$command -f -v 2 1>$TRANSMISSION_HOME/$name.log

to:
su $user -c "$command -b -f -v 2 1>$TRANSMISSION_HOME/$name.log

(adding in the -b flag to use the blocklist)

Offline

 

#174 2008-06-11 23:36:30

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

There must be an & at the end of the command:

Code:

su $user -c "$command -f -v 2 1>$TRANSMISSION_HOME/$name.log 2>&1 &"

Offline

 

#175 2008-06-11 23:50:26

indiematt
Member
Registered: 2008-06-11
Posts: 11

Re: Transmission & Clutch on CH3SNAS/DNS-323

so including the -b tag, line 23 in its entirety should read:

su $user -c "$command -b -f -v 2 1>$TRANSMISSION_HOME/$name.log 2>&1 &"

Is that correct?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB