General NAS-Central Forums

Welcome to the NAS community
It is currently Tue Dec 12, 2017 11:30 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Tue Jan 13, 2015 11:22 am 
Offline
User avatar

Joined: Sat Jan 03, 2015 11:38 am
Posts: 6
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.


Top
 Profile  
 
PostPosted: Tue Jan 13, 2015 8:17 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6087
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:
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?


Top
 Profile  
 
PostPosted: Mon Jan 19, 2015 12:19 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 11:38 am
Posts: 6
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=-


Top
 Profile  
 
PostPosted: Mon Jan 19, 2015 3:01 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6087
Quote:
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.

Quote:
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.


Top
 Profile  
 
PostPosted: Fri Mar 27, 2015 6:59 pm 
Offline
User avatar

Joined: Sat Jan 03, 2015 11:38 am
Posts: 6
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.

Top
 Profile  
 
PostPosted: Fri Mar 27, 2015 8:10 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6087
There is some very nasty code in /etc/init.d/rc.sysinit, around line 170:
Code:
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.


Top
 Profile  
 
PostPosted: Sat Mar 28, 2015 12:09 am 
Offline
User avatar

Joined: Sat Jan 03, 2015 11:38 am
Posts: 6
Hi!
Many thanks for your help!
I'll try to comment this lines ( or delete ) and back soon with result.
Best regards : -=L=-


Top
 Profile  
 
PostPosted: Mon Apr 13, 2015 12:34 am 
Offline
User avatar

Joined: Sat Jan 03, 2015 11:38 am
Posts: 6
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=-


Top
 Profile  
 
PostPosted: Sun Oct 04, 2015 8:28 am 
Offline

Joined: Sun Oct 04, 2015 8:26 am
Posts: 2
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


Top
 Profile  
 
PostPosted: Mon Oct 05, 2015 5:46 am 
Offline
User avatar

Joined: Sat Jan 03, 2015 11:38 am
Posts: 6
Hi!

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

I hope, this help you.


Top
 Profile  
 
PostPosted: Tue Oct 06, 2015 6:44 am 
Offline

Joined: Sun Oct 04, 2015 8:26 am
Posts: 2
Thanks Leslie. It was ust what i needed :-)

Regards./Christian


Top
 Profile  
 
PostPosted: Sat Nov 07, 2015 8:11 pm 
Offline

Joined: Sat Nov 07, 2015 7:53 pm
Posts: 1
Did someone test performance of this NAS, samba share transfer speed...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group