How to install transmission?

Post Reply
User avatar
leslie21
Posts: 6
Joined: Sat Jan 03, 2015 11:38 am

How to install transmission?

Post by leslie21 » Tue Jan 13, 2015 11:22 am

Hi All!
I bought an unknown type of NAS (ZZZ Smart Group NAS310 media server, for more info : http://e-support.dk/?p=184 ). It has a simple, very limited bit torrent client. It can to run max 8 torrent one time. I vould like to change this BT client to Transmission.
The server runs on a Debian(?) linux, but no telnet or ssh.
Could somebody help me to this?
Best regards : -=L=-
You do not have the required permissions to view the files attached to this post.

Mijzelf
Posts: 6205
Joined: Mon Jun 16, 2008 10:45 am

Re: How to install transmission?

Post by Mijzelf » Tue Jan 13, 2015 8:17 pm

I downloaded the firmware from the download link on the page you pointed to, and I could partly sift it. According to the kernel strings the box runs an oxnas SoC.

The linuxrc in initramfs basically does:

Code: Select all

mount /dev/sda2 /mnt/data
if [ -f /mnt/data/conf/.inital_hd.lock ] ; then
   cd /mnt/data
   pivot_root . initrd
   exec usr/sbin/chroot . bin/sh -c "\
                        test -x sbin/cunstom && exec sbin/custom
                        test -x sbin/init && exec sbin/init"
fi

test -x sbin/init && exec sbin/init
So it seems the rootfs is located on /dev/sda2. You can take the disk out and have a look. Unfortunately the gzipped file which contains that rootfs is not decompressible for me.

An oxnas is an Arm processor, so you could install ffp, to get ssh access, and to be able to install transmission.

BTW, why do you think the box runs Debian?

User avatar
leslie21
Posts: 6
Joined: Sat Jan 03, 2015 11:38 am

Re: How to install transmission?

Post by leslie21 » Mon Jan 19, 2015 12:19 pm

Hi!
I took out the hdd, and find three primary disks : sda1 /Swap 133.32 MiB, sda2 (xfs, system, 133.35 MiB), sda3 (xfs, data, the rest of the disk).
I renamed the firmware binary bin to gz and I opened it with ark. I found two section inside:
mini_firmware.bin 4.0 MiB owner/group Benjamin 2011-06-23
nas_firmware.bin 10.1 MiB owner/group Benjamin 2011-06-23
The installed file system on sda2 same as a typical linux file system. I think, so it uses Debian, because the Debian 2.4.xxx kernel is ported to ARM processors.
I saw the directory sda2/conf a subdirectory /transmission_daemon.
When I opened it, I found a settings.json :

"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "/mnt/data/public/BTDownload",
"encryption": 1,
"incomplete-dir": "//Downloads",
"incomplete-dir-enabled": false,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "",
"rpc-port": 9091,
"rpc-username": "",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": true,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"umask": 18,
"upload-slots-per-torrent": 14

Is possible to change the limitation (8 torrent one time) in settings.json? I think, this is the simple way to modify the system.

Best regards : -=L=-

Mijzelf
Posts: 6205
Joined: Mon Jun 16, 2008 10:45 am

Re: How to install transmission?

Post by Mijzelf » Mon Jan 19, 2015 3:01 pm

The installed file system on sda2 same as a typical linux file system. I think, so it uses Debian, because the Debian 2.4.xxx kernel is ported to ARM processors.
Is that is the reason you think it's Debian?
Indeed Debian has ARM support, but *lots* of Linux distro's have. Ubuntu, Arch, OpenWRT, Gentoo, Yocto, ...
The Linux kernel has ARM support and gcc has ARM support, which makes it relatively easy to compile any distro for ARM.

In most cases a Debian derivative can be recognized by a file /etc/debian_version.
Is possible to change the limitation (8 torrent one time) in settings.json? I think, this is the simple way to modify the system.
Read the transmission documentation.

User avatar
leslie21
Posts: 6
Joined: Sat Jan 03, 2015 11:38 am

Re: How to install transmission?

Post by leslie21 » Fri Mar 27, 2015 6:59 pm

Hi!
Sorry, I did not have time to engage with the problem. Yes, it is not Debian ( one for you ). I modified RPC_WHITELIST, and after that, I can to connect to the torrent cilent with Transmission Remote GUI 5.0.1 ( thanks for Yury Sidorov ). The NAS310 uses an old version of Transmission ( 1.92 ). With this GUI, I can to run more then 8 torrents ( now about 22 run ).

I'm face of the new problem. When I switch off the NAS with power switch, after restart, it owerwrites the rpc_whitelist. I send you a link, with the NAS's files. I can not to modify nothing inside the packed files, but I think, there is the solution.

Best regards : -=L=-
Last edited by leslie21 on Mon Oct 05, 2015 5:53 am, edited 1 time in total.

Mijzelf
Posts: 6205
Joined: Mon Jun 16, 2008 10:45 am

Re: How to install transmission?

Post by Mijzelf » Fri Mar 27, 2015 8:10 pm

There is some very nasty code in /etc/init.d/rc.sysinit, around line 170:

Code: Select all

if [ -f /conf/transmission-daemon/settings.json ] ; then
	rm -f /conf/transmission-daemon/settings.json
fi
This deletes the transmission settings. I guess they are auto-recreated then.

User avatar
leslie21
Posts: 6
Joined: Sat Jan 03, 2015 11:38 am

Re: How to install transmission?

Post by leslie21 » Sat Mar 28, 2015 12:09 am

Hi!
Many thanks for your help!
I'll try to comment this lines ( or delete ) and back soon with result.
Best regards : -=L=-

User avatar
leslie21
Posts: 6
Joined: Sat Jan 03, 2015 11:38 am

Re: How to install transmission?

Post by leslie21 » Mon Apr 13, 2015 12:34 am

Hi!
I commented that lines inside the compressed file as a superuser. Since everything works fine.
Many thanks again and have a nice day!
Best regards : -=L=-

chrakaonn
Posts: 2
Joined: Sun Oct 04, 2015 8:26 am

Re: How to install transmission?

Post by chrakaonn » Sun Oct 04, 2015 8:28 am

Hi Do you have software and manual for this NAS? I would like to have it. e-support.dk is not working anymore.

best regards.
Christian

User avatar
leslie21
Posts: 6
Joined: Sat Jan 03, 2015 11:38 am

Re: How to install transmission?

Post by leslie21 » Mon Oct 05, 2015 5:46 am

Hi!

Open this link : https://yadi.sk/d/eUqpMu5sfwFPD

I hope, this help you.

chrakaonn
Posts: 2
Joined: Sun Oct 04, 2015 8:26 am

Re: How to install transmission?

Post by chrakaonn » Tue Oct 06, 2015 6:44 am

Thanks Leslie. It was ust what i needed :-)

Regards./Christian

garcha
Posts: 1
Joined: Sat Nov 07, 2015 7:53 pm

Re: How to install transmission?

Post by garcha » Sat Nov 07, 2015 8:11 pm

Did someone test performance of this NAS, samba share transfer speed...

Post Reply