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

#26 2008-08-10 15:45:25

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

New version of transmission (1.30 and newer) do not need domain sockets any more, neither it do not need php and webserver. Soon I am going to return from vacation and then I will compile this version for DSM-G600.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#27 2008-08-11 20:33:13

pim
Member
Registered: 2008-07-27
Posts: 28

Re: Transmission and Clutch

great!

Offline

 

#28 2008-08-14 11:22:21

procke
Member
Registered: 2008-08-10
Posts: 5

Re: Transmission and Clutch

This is worth waiting for wink

Offline

 

#29 2008-08-14 12:59:24

pim
Member
Registered: 2008-07-27
Posts: 28

Re: Transmission and Clutch

Indeed. Then all there is left for me to do is figuring out how to include RSSDler into this all...

Offline

 

#30 2008-08-18 16:41:19

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

http://dns323.kood.org/downloads/untest … 32.tar.bz2

This version is very simple to use. For webui you'll need only web directory and transmission-daemon:

Code:

export TRANSMISSION_HOME=/mnt/HD_a2/.transmission
export CLUTCH_HOME=/mnt/HD_a2/web
/mnt/HD_a2/transmission-daemon --port=8080 --auth --username=test --password=test --download-dir=/mnt/HD_a2/downloads

All values should be self explanatory.
After this you should be able to access http://test:test@dsmg600ip:8080/transmission/web

As of I haven't tested these binaries, please report back any errors you see smile


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#31 2008-08-18 16:47:22

medlatek
Member
From: Clamart (France)
Registered: 2007-05-19
Posts: 21

Re: Transmission and Clutch

Thanks!
Feed back in few days.

Offline

 

#32 2008-08-18 20:06:31

pim
Member
Registered: 2008-07-27
Posts: 28

Re: Transmission and Clutch

Thanks for the effort, but it gives a "segmentation fault". Could it be that i need to update my busybox (v1.2.1)?

Last edited by pim (2008-08-18 20:07:47)

Offline

 

#33 2008-08-19 09:05:41

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

Does it segfault with --help switch to? Will it give some details to dmesg?

I did recompile some variants. Maybe static versions works better.
http://dns323.kood.org/downloads/untest … 32.tar.bz2


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#34 2008-08-19 09:47:16

pim
Member
Registered: 2008-07-27
Posts: 28

Re: Transmission and Clutch

sala wrote:

Does it segfault with --help switch to?

Nope, still the segmentation fault


sala wrote:

Will it give some details to dmesg?

How do i do that? If i look into the dmesg.out, it gives a list of the start-up, as i run the dmesg.out in the first line of the fun_plug.


sala wrote:

I did recompile some variants. Maybe static versions works better.
http://dns323.kood.org/downloads/untest … 32.tar.bz2

Once again, thanks. I tried to run the --help first, which works for all the daemon files (plain, static, stiped, static striped).

If i run the last line:

Code:

/mnt/HD_a2/transmission-daemon --port=8080 --auth --username=test --password=test --download-dir=/mnt/HD_a2/downloads

with the transmission-daemon replaced by transmission-daemon.static, i do see the proces when using the PS command:

Code:

 4190 root        256 S   /mnt/HD_a2/transmission-daemon.static --port=8080 --a
 4191 root            Z   [transmission-da]

But, if i try to access the nas with a browser using the link you provided (i did replace the url to the name of my nas), it gives a connection error.

With regard to the other versions of the daemon: only the static ones show in the PS command; the .striped version does not start as a process. These also do not work with the url in a browser.

Does this help you in solving the problem?

Last edited by pim (2008-08-19 09:48:32)

Offline

 

#35 2008-08-19 10:20:36

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

For dmesg, you can simply run this command using telnet session.

As of connection error, if your DSM-G600 has netstat, you can look if 8080 port is listening connections. If you do not have netstat, then you can telnet to 8080 port and see if it accepts connections.

Also, you'll need to export needed values before starting transmission-daemon!

Code:

export TRANSMISSION_HOME=/mnt/HD_a2/.transmission
export CLUTCH_HOME=/mnt/HD_a2/web

If you still cant access 8080 port with your browser, then you can try transmission daemon --foreground switch and see if transmissions says something useful.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#36 2008-08-19 10:51:12

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: Transmission and Clutch

I tried both, normal and static version with --foregound switch.

I get this error:
[err] evsignal_init: socketpair: Address family not supported by protocol

Offline

 

#37 2008-08-19 11:12:30

medlatek
Member
From: Clamart (France)
Registered: 2007-05-19
Posts: 21

Re: Transmission and Clutch

I tried only your first release,
The daemon started correctly, I can connect to the web gui.
But when I add a torrent, the dl list stay empty. Any idea?
(I use fwimage-04-sala-20070128)

Offline

 

#38 2008-08-19 11:25:32

pim
Member
Registered: 2008-07-27
Posts: 28

Re: Transmission and Clutch

n3rd wrote:

I tried both, normal and static version with --foregound switch.

I get this error:
[err] evsignal_init: socketpair: Address family not supported by protocol

I have the same error while using the foreground switch. This using the standard most up-to-date FW (not the custom one).

Offline

 

#39 2008-08-19 14:31:58

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

medlatek wrote:

I tried only your first release,
The daemon started correctly, I can connect to the web gui.
But when I add a torrent, the dl list stay empty. Any idea?
(I use fwimage-04-sala-20070128)

Check your TRANSMISSION_HOME directory. Is it accessible and do transmission have rights to write files to there. chmod 777 would be good to try. And same thing with download directory will also be needed.

Also look clutch settings (little button, left side and at the bottom of Clutch window).


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#40 2008-08-19 14:37:05

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

n3rd wrote:

I tried both, normal and static version with --foregound switch.

I get this error:
[err] evsignal_init: socketpair: Address family not supported by protocol

This error does not look good. Looks like it still needs unix domain sockets. Maybe insmod unix.o will help. You can get unix.o from http://dns323.kood.org/downloads/untest … 00.tar.bz2


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#41 2008-08-19 15:13:40

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: Transmission and Clutch

sala wrote:

This error does not look good. Looks like it still needs unix domain sockets. Maybe insmod unix.o will help.

It seems to help, the ouput now changes to

Transmission 1.32 (6455) started
"erving the web interface files from "/mnt/HD_a2/transmission/web
transmission-daemon: requiring authentication
Port Forwarding: Opened port 51413 to listen for incoming peer connections

When i go to the webui (http://ch3wnas:8080/transmission/web) it outputs:

Error: 404

I double checked the web path.

Offline

 

#42 2008-08-19 15:27:54

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

n3rd wrote:

sala wrote:

This error does not look good. Looks like it still needs unix domain sockets. Maybe insmod unix.o will help.

It seems to help, the ouput now changes to

Transmission 1.32 (6455) started
"erving the web interface files from "/mnt/HD_a2/transmission/web
transmission-daemon: requiring authentication
Port Forwarding: Opened port 51413 to listen for incoming peer connections

When i go to the webui (http://ch3wnas:8080/transmission/web) it outputs:

Error: 404

I double checked the web path.

Make sure you have web files in /mnt/HD_a2/transmission/web directory.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#43 2008-08-19 16:09:17

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: Transmission and Clutch

Shame on me!
I used windows to make the start file so the return characters where the problem.

Now the webui works fine, but when i upload a file, a "Torrent is corrupt" message appears in the console.
I tried with torrents from several different locations.

Offline

 

#44 2008-08-19 19:51:22

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

n3rd wrote:

Shame on me!
Now the webui works fine, but when i upload a file, a "Torrent is corrupt" message appears in the console.

Static and striped version of daemon will give same error?

From source, these errors are from metainfo.c

Code:

    if( !inf->fileCount || !inf->totalSize )
    {
        tr_nerr( inf->name, _( "Torrent is corrupt" ) ); /* the content is missing! */
        goto fail;
    }

    /* TODO add more tests so we don't crash on weird files */

    if( (uint64_t) inf->pieceCount !=
        ( inf->totalSize + inf->pieceSize - 1 ) / inf->pieceSize )
    {
        tr_nerr( inf->name, _( "Torrent is corrupt" ) ); /* size of hashes and files don't match */
        goto fail;
    }

DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#45 2008-08-19 22:07:48

raccoon8888
Member
Registered: 2008-03-05
Posts: 6

Re: Transmission and Clutch

tried both of versions, both start ok, but can't upload torrent files..i gave all the related directories permission 777, but it can not fix the issue.

Last edited by raccoon8888 (2008-08-19 22:08:21)

Offline

 

#46 2008-08-19 23:30:12

procke
Member
Registered: 2008-08-10
Posts: 5

Re: Transmission and Clutch

I'm afraid that this might make me look stupid, but is this supposed to work in "ordinary enviroment" or only in chrooted enviroment (or perhaps both)? I have not taken the leap over to Gentoo yet, I haven't had any good enough reason before... (and I am completely new to Linux in general and chroots in particular).

I have installed Busybox (with working Telnet), USB-Printserver and Mediatomb without any larger problems, so I don't think that it will be impossible for me though...

Thanks wink

Offline

 

#47 2008-08-20 02:08:47

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

procke wrote:

is this supposed to work in "ordinary enviroment" or only in chrooted enviroment (or perhaps both)?

chrooting is not needed.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#48 2008-08-22 19:59:18

procke
Member
Registered: 2008-08-10
Posts: 5

Re: Transmission and Clutch

Is there anyone that has gotten this to work properly without "Torrent is corrupt"-message when trying to download with transmissioncli?

Offline

 

#49 2008-08-25 15:48:58

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Transmission and Clutch

Ill try to recompile soon, but someone else might also try. I think I had some problems with openssl and this might cause this problem.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#50 2008-08-25 20:12:10

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: Transmission and Clutch

sala wrote:

Ill try to recompile soon, but someone else might also try. I think I had some problems with openssl and this might cause this problem.

I tried, but I end up with an error when running make on transmission-1.33 :

/home/ubuntu/Desktop/powerpc-uclibc-toolchain/toolchain_powerpc/lib/gcc-lib/powerpc-linux-uclibc/3.3.3/../../../../powerpc-linux-uclibc/bin/ld: cannot open /home/ubuntu/Desktop/cross/curl/build/7.18.2/opt/lib: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [blocklist-test] Error 1

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB