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

#76 2008-04-18 08:41:13

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

rap had the same problem, it turned out it was some error in his lighttpd.conf. I'm not sure though what it was exactly. I'm sure he can jump in and provide support shortly.

Hi - I was getting a 400 error not 403. My error was due to the name of my DNS having an underscore in it which I fixed by renaming it.

Cheers

RAP

Offline

 

#77 2008-04-18 08:47:02

oasis
Member
Registered: 2008-04-17
Posts: 7

Re: Transmission & Clutch on CH3SNAS/DNS-323

i got the error msg "Transmission daemon appear not to be running" , what's the issue?

Offline

 

#78 2008-04-18 10:44:29

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

oasis wrote:

i got the error msg "Transmission daemon appear not to be running" , what's the issue?

I'm no expert but sounds to me you haven't editted the file in /www/pages/clutch/remote/data to point to the location of our socket file whch should be  somewhere in '/mnt/HD_a2/downloads/.transmission' looking at your posts.

RAP

Offline

 

#79 2008-04-18 14:58:40

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

oasis wrote:

Can someone guide me what is the default root password when i start the sshd.sh service? thanks

There is none. You have to set it before you start using sshd (using the "passwd root" command).

Regarding your Transmission problem: Check with the command "top" or "ps | grep trans" if the daemon is actually running. If not, try starting it manually with "transmission-daemon -d". I suspect you forgot to set the TRANSMISSION_HOME variable correctly.

Code:

export TRANSMISSION_HOME=/mnt/HD_a2/.transmission

If you use Telnet, put this line in the fun_plug script.
If you use SSH, put it in etc/profile.

Offline

 

#80 2008-04-18 15:04:30

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Transmission & Clutch on CH3SNAS/DNS-323

oasis wrote:

Can someone guide me what is the default root password when i start the sshd.sh service? thanks

The firmware comes with a disabled root account. You need to set a password yourself or setup password-less login for ssh (public-key auth).

Offline

 

#81 2008-04-20 04:04:41

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

Updated binaries and install instructions are are available in the first post.

Offline

 

#82 2008-04-20 08:47:09

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

Updated binaries and install instructions are are available in the first post.

Hi KyleK - thanks for this, just what I was looking for. I'm using the ffp 0.5 version and unfortunately the start script doesn't seem to work quite right as can be seen by the listing below. It looks to me that it does not set the transmission home directory correctly for some reason as after exporting that manually it works fine.


root@RAPDLINK:/mnt/HD_a2/ffp# cd start/
root@RAPDLINK:/mnt/HD_a2/ffp/start# ./transmission.sh status
transmission-daemon not running
root@RAPDLINK:/mnt/HD_a2/ffp/start# ./transmission.sh start
root@RAPDLINK:/mnt/HD_a2/ffp/start# ./transmission.sh status
transmission-daemon not running
root@RAPDLINK:/mnt/HD_a2/ffp/start# env
SSH_CLIENT=192.168.2.7 1741 22
MAIL=/var/mail/root
USER=root
OLDPWD=/ffp
HOME=/home/root
SSH_TTY=/dev/pts/1
PS1=\u@\h:\w\$
PS2=>
LOGNAME=root
TERM=xterm
PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
SSH_AUTH_SOCK=/tmp/ssh-kGERa14299/agent.14299
SHELL=/ffp/bin/sh
PWD=/ffp/start
SSH_CONNECTION=192.168.2.7 1741 192.168.2.2 22

Offline

 

#83 2008-04-20 17:50:30

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

Yep, seems you're right. It's an easy fix though.
Open start/transmission.sh and add an "export" to the TRANSMISSION_HOME statement.

I've updated the funpkg package as well.

Offline

 

#84 2008-04-24 15:48:13

5h4rk
Member
Registered: 2008-01-26
Posts: 27

Re: Transmission & Clutch on CH3SNAS/DNS-323

Hi, do I have to create the folder ./transmission by myself? Thanks.

edit:

I have created the folder and transmission is running, but when i go to the web interface, i got this error:

http://img113.imageshack.us/img113/7003/ssoc8.png

Last edited by 5h4rk (2008-04-24 16:13:13)


FFP 0.5 | FW 1.0.5

Offline

 

#85 2008-04-24 21:26:53

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

If your lighttpd is not running as root, then you have to make sure that the socket that Transmission creates (/mnt/HD_a2/.transmission/daemon/socket) has full read and write rights for all accounts.

Offline

 

#86 2008-04-25 10:57:40

kenyloveg
Member
Registered: 2008-04-10
Posts: 41

Re: Transmission & Clutch on CH3SNAS/DNS-323

5h4rk wrote:

Hi, do I have to create the folder ./transmission by myself? Thanks.

edit:

I have created the folder and transmission is running, but when i go to the web interface, i got this error:

http://img113.imageshack.us/img113/7003/ssoc8.png

I just fixed the same problem by:
cd  mnt/HD_a2/www/pages/clutch/remote/data
ls -l
"check the user and group for socket.txt, i found the owner is nobody and group is 20" then i
chown root socket.txt
chgrp root socket.txt
ls -l
"check the file again"
stop and restart transmission and lighttpd again
it works fine for me

Offline

 

#87 2008-04-25 11:00:46

kenyloveg
Member
Registered: 2008-04-10
Posts: 41

Re: Transmission & Clutch on CH3SNAS/DNS-323

Kylek, can you modify the transmission.sh to get rid of root only access? The official clutch package runs as "nobody", so maybe that's why many people get 403 access forbiden error.

Offline

 

#88 2008-04-25 15:02:01

5h4rk
Member
Registered: 2008-01-26
Posts: 27

Re: Transmission & Clutch on CH3SNAS/DNS-323

kenyloveg wrote:

5h4rk wrote:

Hi, do I have to create the folder ./transmission by myself? Thanks.

edit:

I have created the folder and transmission is running, but when i go to the web interface, i got this error:

http://img113.imageshack.us/img113/7003/ssoc8.png

I just fixed the same problem by:
cd  mnt/HD_a2/www/pages/clutch/remote/data
ls -l
"check the user and group for socket.txt, i found the owner is nobody and group is 20" then i
chown root socket.txt
chgrp root socket.txt
ls -l
"check the file again"
stop and restart transmission and lighttpd again
it works fine for me

I've done this but still getting the error. And I also chmod 777 to /mnt/HD_a2/.transmission/daemon/socket as Kylek said.


FFP 0.5 | FW 1.0.5

Offline

 

#89 2008-04-25 17:36:35

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

How do I get a log from daemon? Latest transmission-daemon crashes after a while and I don't know the reason, 1.06 seems to be working fine.

Offline

 

#90 2008-04-25 18:04:19

quekky
Member
Registered: 2008-03-30
Posts: 20

Re: Transmission & Clutch on CH3SNAS/DNS-323

run as user nobody (for ffp 0.5)

Code:

--- transmission.sh-orig        Fri Apr 25 22:40:37 2008
+++ transmission.sh     Fri Apr 25 22:57:41 2008
@@ -14,14 +14,14 @@

 transmission_start()
 {
-       $command -f 1>/ffp/var/$name.log 2>/ffp/var/$name.log &
+       su nobody -c "$command -f 1>/dev/null 2>&1 &"
 }

you need to create the .transmission dir from samba (or make sure it's writeable by nobody)

Last edited by quekky (2008-04-25 18:06:45)

Offline

 

#91 2008-04-25 19:03:17

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

quekky wrote:

run as user nobody (for ffp 0.5)

Code:

--- transmission.sh-orig        Fri Apr 25 22:40:37 2008
+++ transmission.sh     Fri Apr 25 22:57:41 2008
@@ -14,14 +14,14 @@

 transmission_start()
 {
-       $command -f 1>/ffp/var/$name.log 2>/ffp/var/$name.log &
+       su nobody -c "$command -f 1>/dev/null 2>&1 &"
 }

you need to create the .transmission dir from samba (or make sure it's writeable by nobody)

How do you do that in ffp 0.4? I have very little knowledge of *nix commands. I'm running it as user nobody already.

Offline

 

#92 2008-04-25 20:57:39

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

headman wrote:

How do I get a log from daemon? Latest transmission-daemon crashes after a while and I don't know the reason, 1.06 seems to be working fine.

Start it like this:

Code:

transmission-daemon -d 1>/mnt/HD_a2/.transmission/daemon.log 2>&1 &

Offline

 

#93 2008-04-28 20:37:14

kikkeraap
Member
Registered: 2008-03-19
Posts: 17

Re: Transmission & Clutch on CH3SNAS/DNS-323

5h4rk wrote:

Hi, do I have to create the folder ./transmission by myself? Thanks.

edit:

I have created the folder and transmission is running, but when i go to the web interface, i got this error:

http://img113.imageshack.us/img113/7003/ssoc8.png

I ran into the same thing, but I solved it by edditing transmission.sh, added the echo part

Code:

transmission_start()
{
        $command -f 1>/ffp/var/$name.log 2>/ffp/var/$name.log &
echo "/mnt/HD_a2/.transmission/daemon/socket" > /mnt/HD_a2/www/pages/clutch/remote/data/socket.txt
}

Offline

 

#94 2008-04-29 05:48:01

metronet
Member
Registered: 2007-06-14
Posts: 8

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

headman wrote:

How do I get a log from daemon? Latest transmission-daemon crashes after a while and I don't know the reason, 1.06 seems to be working fine.

Start it like this:

Code:

transmission-daemon -d 1>/mnt/HD_a2/.transmission/daemon.log 2>&1 &

Hi KyleK,

I also noticed the crash with your latest 1.11 svn build:

ffset is 368789719
inf->fileCount is 9
inf->files[first].offset is 327827
inf->files[first].length is 368461892
transmission-daemon: inout.c: 132: findFileLocation: Assertion `offset < inf->files[first].offset + inf->files[first].length' failed.

I googled that and found:

http://forum.transmissionbt.com/viewtopic.php?t=4508
That isn't version 1.11, that's a build from svn trunk that had a crasher bug in int for a few days over the weekend. Smile
Do an "svn up" and rebuild to make that crash go away...

any thoughts?

keep up the good works!

Offline

 

#95 2008-04-29 16:07:21

Scay
New member
Registered: 2008-04-29
Posts: 2

Re: Transmission & Clutch on CH3SNAS/DNS-323

5h4rk wrote:

Hi, do I have to create the folder ./transmission by myself? Thanks.

edit:

I have created the folder and transmission is running, but when i go to the web interface, i got this error:

http://img113.imageshack.us/img113/7003/ssoc8.png

Had this problem myself, my simple solution was to follow a few instructions on http://www.shadowandy.net/_html/archive … nsmis.html :

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

Last edited by Scay (2008-04-29 16:07:52)

Offline

 

#96 2008-04-29 16:08:49

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

kikkeraap wrote:

Code:

transmission_start()
{
        $command -f 1>/ffp/var/$name.log 2>/ffp/var/$name.log &
echo "/mnt/HD_a2/.transmission/daemon/socket" > /mnt/HD_a2/www/pages/clutch/remote/data/socket.txt
}

The "echo" command has only to be executed once. It's not necessary to add it to the start script.

Last edited by KyleK (2008-04-29 16:14:19)

Offline

 

#97 2008-04-29 16:13:48

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

metronet wrote:

I also noticed the crash with your latest 1.11 svn build:

ffset is 368789719
inf->fileCount is 9
inf->files[first].offset is 327827
inf->files[first].length is 368461892
transmission-daemon: inout.c: 132: findFileLocation: Assertion `offset < inf->files[first].offset + inf->files[first].length' failed.

any thoughts?

keep up the good works!

I'll compile an update tonight. ffp-0.4 or 0.5?

Offline

 

#98 2008-04-29 16:31:12

Scay
New member
Registered: 2008-04-29
Posts: 2

Re: Transmission & Clutch on CH3SNAS/DNS-323

Updated installation instructions for total newbies (like me tongue):

Assuming that you succesfully installed fun_plug 0.5 and enabled Lighttpd with PHP continue below, otherwise look for software and installation instructions here:
http://www.inreto.de/dns323/fun-plug/
http://dns323.kood.org/howto:ffp#version_0.5_beta

With fun_plug 0.5 and Lighttpd with PHP installed;
Telnet to your DNS-323 and type the following:

Code:

cd /mnt/HD_a2
mkdir .transmission
mkdir temp
cd temp
wget http://web.inf.tu-dresden.de/~fa859178/transmission-1.11svn-r5649-ffp0.5.tgz
wget http://clutchbt.com/Files/Clutch-0.4.tar.gz
funpkg -i transmission-1.11svn-r5649-ffp0.5.tgz
cd /mnt/HD_a2/www/pages
tar zvxf /mnt/HD_a2/temp/Clutch-0.4.tar.gz
cd /mnt/HD_a2/ffp/start
sh transmission.sh start
chmod a+x transmission.sh
echo /mnt/HD_a2/.transmission/daemon/socket > /mnt/HD_a2/www/pages/Clutch-0.4/remote/data/socket.txt

This worked for me on a fresh install.... Good luck

Offline

 

#99 2008-04-29 18:55:35

metronet
Member
Registered: 2007-06-14
Posts: 8

Re: Transmission & Clutch on CH3SNAS/DNS-323

KyleK wrote:

metronet wrote:

I also noticed the crash with your latest 1.11 svn build:

ffset is 368789719
inf->fileCount is 9
inf->files[first].offset is 327827
inf->files[first].length is 368461892
transmission-daemon: inout.c: 132: findFileLocation: Assertion `offset < inf->files[first].offset + inf->files[first].length' failed.

any thoughts?

keep up the good works!

I'll compile an update tonight. ffp-0.4 or 0.5?

Hi KyleK,

I am running ffp-0.4 busybox-1.8.1.

cheers,

Offline

 

#100 2008-04-30 01:07:11

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

Re: Transmission & Clutch on CH3SNAS/DNS-323

ffp-0.4:
   Transmission-1.11svn-r5727.tgz

As last time: I'm not using ffp-0.4 anymore, so I was not able to test this. Use at your own risk!


ffp-0.5:
   Transmission-1.11svn-r5727-ffp0.5.tgz

   The newer builds of Transmission require yet another library, libcurl this time. So to use this new build, you have to install an extra
   package:
   curl-7.18.1.tgz


Install instructions are in the first post.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB