Installing Fun Plug (FFP) on D-Link DNS 320, 323, 325, 323, 343 and 345


Overview:

The main reason why people go this route is to extend their NAS with servers features such as, BitTorrent and Usenet to co-inside with additional services such as SickBeard, Couch Potato and Headphones. Other abilities including web servers. Other typical uses are to add extensions which fix current limitations of the device (e.g. time accuracy, fan noise).

What you need:

  • A Compatible Device
  • PuTTY (Telnet and SSH client) available here
  • Download of files listed here :
    Download the latest files from fonz’ fun_plug repository:
    fun_plug (this contains both fun_plug and fun_plug.tgz both files are required)
    Note: If you want to install fun_plug on the D-Link DNS-320/DNS-325/DNS-345, download this file: fun_plug

Installing Fun_Plug:

Once you’ve downloaded the appropriate files for your device, open up the root folder (Volume_1 on the D-Link devices) and place fun_plug and fun_plug.tgz in the Volume_1 part of the drive (not in a folder or sub directory).

Now here comes the complicated part so hold onto your hats; Reboot the unit. Yup you heard me, reboot the unit via the web interface or by holding the power button down for 5 to 10 seconds.

Once the unit has rebooted it may take a minute or two for the telnet prompt to become active so you may need to keep trying to connect in the next step until you get the telnet prompt.

Connecting via Telnet:

Telnet allows you to “login” on a remote machine via a command line window.

So fire up the PuTTY.exe you should have downloaded earlier (link above) and then in the PuTTY configuration screen you need to set the following before pressing Open:

  • Host name (or IP address): use the name of the share (e.g.CH3SNAS) or its IP address (the factory default is 192.168.0.20)
  • Select Connection type “Telnet” (which defaults to port 23)

After connecting to the device, the first line telnet will show:

/ #

Now you are logged in and at the command prompt. This command prompt is where you can type in commands and do virtually everything we need to with the unit and it’s newly installed Fun_Plug. This prompt works similar to the Windows Command prompt in the sense that this shows us that we are in the root directory.

You can now continue to the next step which is….

Chaning the root password:

So type in on our new telnet command prompt :

pwconv

We then need to change the password of user “root” to prevent unauthorized access.
Run the ‘passwd’ command and enter a new password twice (note that Linux passwords are case-sensitive):

passwd

Next, activate the root-user which is disabled by default:

usermod -s /ffp/bin/sh root

And change the home-directory of root to a permanent one:

mkdir -p /ffp/home/root/
usermod -d /ffp/home/root/ root

Now check if everything went right using:

login

If this was successful then continue down, if not return to “passwd“.

We now need to store the password in the NAS. If you don’t do this the password will be reset on reboot. Please see below before executing the command itself:

  • For the D-Link DNS-343, you need a different store-passwd.sh script. So Please run the following command prior to running store-passwd.sh
    wget http://wolf-u.li/u/121 -O /ffp/sbin/store-passwd.sh
  • For the D-Link DNS-320/DNS-325/DNS-345, you need a different store-passwd.sh script. Please run the following command prior to running store-passwd.sh
    wget http://wolf-u.li/u/172/ -O /ffp/sbin/store-passwd.sh

Now execute the command:

store-passwd.sh

This invokes another shell (.sh) script which copies the password-related files to data partitions in Flash memory (mtd1 and mtd2).

Activate SSH

Now activate SSH. Such lines can best be copied line-by-line or together into PuTTY:

chmod a+x /ffp/start/sshd.sh
sh /ffp/start/sshd.sh start

Logging in using SSH

Now you can login using an ssh session as user root. That means closing PuTTY and re opening to connect via SSH instead of Telnet.

Once you were logged in, you can deactivate telnet using:

chmod -x /ffp/start/telnetd.sh

Note that at this point telnet is actually still running, but it will stop working the next time you reboot the NAS.

Now what?

Well now you’ve installed Fun_Plug you can start installing additional packages and even follow this guide on installing Debian Squeeze on the units the guide also includes instructions on installing and configuring SickBeard, SABnzbd, CouchPotato and Headphones.

 

 

Leave a Comment