DNS-320 and DNS-325, like their elder brother DNS-323, are some a very versatile NAS that can be extended heavily by installing the latest Fun_plug 0.7 script, which opens the gate to some very interesting extension possibilities.
The main advantage of DNS-325 over DNS-323 or even DNS-320, is its horse power (1.2 GHz processor) and its embedded RAM (256 Mb). We are in front of a real home server !
This article explains all the steps needed to get the latest Fun_plug 0.7running on a DNS-320 or a DNS-325. It also explains how to remove previous Fun_plug 0.5 version, which is a pre-requisite.
Once Fun_plug is fully installed, you will be able to install some very usefull extensions :
- a LAMP server
- a Rsync server
- a Transmission client
- a pyLoad client
A lot of information found here is coming from various threads on NAS Tweak site.
This article has been tested on a DNS-325 with firmware V1.02 and a DNS-320 with firmware V1 as well.
1. Uninstall Fun_plug 0.5
This section only interests you if you have a Fun_plug 0.5 running on your DNS-325, as both version cannot run at the same time.
Fun_plug 0.5 has to be properly uninstalled, prior to Fun_plug 0.7 installation.
Uninstallation of Fun_plug 0.5 is very easy, but it involves few steps :
- On Volume_1 share, rename fun_plug to fun_plug.v05
- Reboot your NAS
- On Volume_1 share, rename ffp directory to ffp.v05
Fun_plug 0.5 is now unistalled in a reversible way. As you've noticed, all the files are still there.
In case you want to reinstall it, just rename the file and directory and reboot.
2. Install Fun_plug 0.7
All the commands starting with $ have to be executed from your desktop.
All the commands starting with # have to be executed from the DNS-320 or DNS-325 console.
Download following files from http://ffp.inreto.de/ffp/0.7/arm/ and place them at the root of your Volume_1 network share.
Then, edit the fun_plug file with any text editor (compatible with Linux text files) and replace all occurences of /mnt/HD_a2 with /mnt/HD/HD_a2
Once done, reboot your NAS.
If everything has gone fine, you should be able to connect via Telnet :
As this telnet connexion is very unsafe without password, we will replace it by a safe, password-encrypted, ssh connection.
Therefore we need an appropriately configured user root, what we we do with the following commands:
usermod: no changes
sh-4.1# mkdir -p /ffp/home/root/
sh-4.1# sed -ie 's#:/home/root:#:/ffp/home/root:#g' /etc/passwd
pwconv: failed to change the mode of /etc/passwd- to 0600
Afterwards, we will set a new root password and test it by logging in as root.
If you are able to login, you now need to save this configuration in the flash memory, otherwise your new password will be lost after every boot.
If you get an error message with "bad address", your NAS internet configuration should not be set properly.
Saving to: '/ffp/sbin/store-passwd.sh'
100%[==============================================================>] 875 --.-K/s in 0s
2012-05-22 12:29:52 (7.45 MB/s) - '/ffp/sbin/store-passwd.sh' saved [875/875]
Saving Userdata to flash storage
Next step is to :
- make ssh daemon executable so that it starts automatically at every boot
- start the daemon (to avoid a reboot)
Note that first start may take a while, because on first run ssh generates key pairs.
Therefore some funny looking images are printed. At last, it will start /ffp/sbin/sshd
root@NAS:~# sh /ffp/start/sshd.sh start
Generating public/private rsa1 key pair.
Your identification has been saved in /ffp/etc/ssh/ssh_host_key.
Your public key has been saved in /ffp/etc/ssh/ssh_host_key.pub.
| * E S |
| + = |
| o . |
| . |
The SSH daemon is now running.
DO NOT close the telnet session to prevent from locking yourself accidentally out of the machine.
From your desktop, open a second SSH session on your NAS :
root@ 192.168.x.x's password:
Last login: Tue May 22 12:38:18 2012 from 192.168.x.y
If everything worked well, you've been able to login with your newly set password.
You can now disable telnet (as you have ssh now) with this command :
From now, every time your NAS will boot, SSH daemon will be started and Telnet daemon won't.
You are done !
The basic Fun_plug 0.7 extension is now installed and operational on your DNS-320 / DNS-325.
3. Declare Software repositories
One of the strengh of fun_plug is the number of applications available as additionnal packages from some specific repository.
All these packages will make life much more simple when it comes to install some software on the NAS.
3.1. Add package sources
Fun_plug 0.7 comes with a brand new software installer called slacker.
We first need to declare all available repositories for slacker in /ffp/etc/funpkg/sites.
The following list is not exhaustive. It is the one available at the time of this article.
The last command will update slacker cache with the content of the new repositories.
# echo "memiks http://ffp.memiks.fr/pkg" >> /ffp/etc/funpkg/sites
# echo "kylek http://kylek.duckdns.org:31337/files/ffp/0.7-arm" >> /ffp/etc/funpkg/sites
# echo "uli rsync://funplug.wolf-u.li/funplug/0.7/arm/packages" >> /ffp/etc/funpkg/sites
# slacker -U
3.2. Update Existing packages
As the new repositiories are providing some software update, we will update the pre-installed packages.
Select all proposed packages from s: repository and click OK.
Update will take place.
4. Install Console Editors
Some of the first packages to install are nano and midnight commander.
nano is a very simple and light console text editor.
midnight commander is a very advanced console file manager, which is also providing an inbuilt text editor. It can replace vi, nano, ...
Lets launch the software installer :
From the list, select the following packages :
- uli:glib (library needed by mc)
- mijzelf:mc (midnight commander)
Click OK to install.
You can start midnight commander file manager with :
You can directly edit a file with midnight commander :
5. What's next ?
You are now ready to use your new home server to its full potential, installing some very interesting pieces of software.
Here are some ideas for next steps :
- DNS 320 & 325 - Extend your NAS possibilities with Funplug 0.7
- DNS 325 - Funplug 0.7 : Install Transmission p2p client
- DNS 325 - Funplug 0.7 : Install Twonkymedia Server 7
- DNS 323 & 325 - Funplug : Send mail from shell scripts using your Gmail account
- DNS 325 - Funplug 0.7 : Move Fun plug to a USB key
- DNS 320 & 325 - Funplug 0.7 : Install Compilation Environment
- DNS 325 - Funplug 0.7 : Compile x264, lame, shine, fdk-aac, twolame, ffmpeg and sox
- DNS-325 - Funplug 0.7 : Subsonic server with realtime MP3 and AAC transcoding
- DNS 325 - Funplug 0.7 : SSLH ... share port 443 for Https, Ssh, OpenVPN and Tinc
- DNS 325 - Funplug 0.7 : Administrate your NAS with Ajaxterm
- DNS 325 - Funplug 0.7 : Supervise your NAS thru SNMP
- DNS 325 - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with SNMP
- DNS 320, 323 & 325 - Funplug 0.7 : Install a Munin node with Muninlite
- DNS 325 - Funplug 0.7 : Setup your NAS as a Permanent BTSync Peer
- DNS 320L - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with Munin