Sunday, 29 July 2012 09:47

Fun_Plug 0.5 on D-Link DNS-320 ShareCenter

D-LINK DNS-320 Sharecenter D-LINK DNS-320 Sharecenter

Fun_plug is a collection of applications compiled and packaged by fonz. fun_plug is install on top of D-Link firmware. It is much more powerful than the D-Link original firmware. The following modules is install by default:

  • Lighttpd – a lightweight HTTP server for hosting web pages on the NAS
  • OpenSSH – Secure Shell (which you already used to login to the NAS)
  • Mediatomb – a UPnP media server (alternative to the one provided by Conceptronic)
  • NTP – Network Time Daemon (to synchronize the NAS’ clock with accurate time servers on the Internet)
  • UNFS3 – user-space NFS server (a file server protocol which is often used by computers running Linux)
  • NFS-Utils – NFS server (efficient file transfer and synchronization utility)

This guide is based on fun_plug 0.5 & D-Link DNS-320 ShareCenter and assumes an SATA hard disk is installing to the DNS-320 ShareCenter formatted as ext3.

 



INSTALLING FUN_PLUG:
fun_plug 0.5: http://www.divshare.com/download/18196850-7e3
Once you’ve downloaded the appropriate files for your device, open up the root folder and place fun_plug and fun_plug.tgz in the Volume_1 part of the drive using Windows Explorer (My Network Places). 

Files in the topmost directory of D-LINK DNS-320 ShareCenter

 

Reboot the  DNS-320 NAS. This causes the NAS to go and find the file fun_plug on Volume_1 and execute it. Fun_plug is successful install if you see this screen:

 Installing fun plug sucessful

Changing Root Password

Telnet to DNS-320 ShareCenter and change password as below:

pwconv
passwd

 

usermod -s /ffp/bin/sh root
mkdir -p /ffp/home/root/
usermod -d /ffp/home/root/ root

 It should look like this:

/ # pwconv
/ # passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Bad password: too simple.
Warning: weak password (enter it again to use it anyway).
New password:
Re-enter new password:
Password changed.
/ # usermod -s /ffp/bin/sh root
usermod: no changes
/ # mkdir -p /ffp/home/root/
/ # usermod -d /ffp/home/root/ root
usermod: no changes
/ #

You still can use a simple password even though it prompted for "Bad password". Just enter same password for 3 times, it should continue without error.

 

Testing login password

login

 It should look like this:

/ # login
nas login: root
Password:
No mail.
[email protected]:/mnt/HD/HD_a2/ffp/home/root#

 

Store Password Permanently

This step is essential, otherwise your password will be cleared on the next reboot. Make sure the ShareCenter is connected to internet.

#!/ffp/bin/sh

echo "Saving Userdata to /usr/local/config/"
cp -f /etc/passwd /usr/local/config/
cp -f /etc/group /usr/local/config/
cp -f /etc/shadow /usr/local/config/
cp -f /etc/samba/smbpasswd /usr/local/config/
wget http://wolf-u.li/u/172/ -O /ffp/sbin/store-passwd.sh

 For DNS-324 ShareCenter, you should follow this link to store password permanently.

Now execute

store-passwd.sh

 

Activate SSH

SSH is a network protocol that provides file access, file transfer, and file management functionalities over any reliable data stream. You should use SSH to manage your ShareCenter for security reason. 

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

 

Deactivate Telnet

Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. But it is not secure.

For security purpose, you should deactivate Telnet. Make sure you can SSH to DNS-320 ShareCenter before deactivate Telnet

chmod -x /ffp/start/telnetd.sh

 

Installing Additional Packages

You might need to install additional packages after install fun_plug. Read here for more information. Following step will download and update packages from Fonz and Uli. It takes about 30 to 60 minutes to complete the download depend on the internet speed.

mkdir -p /ffp/pkg/
cd /ffp/pkg/
wget http://wolf-u.li/u/173/ -O /ffp/pkg/updater.sh
chmod a+x /ffp/pkg/updater.sh
sh /ffp/pkg/updater.sh

 

Using the following step to download packages manually either from Fonz or Uli.

Download Repository provided by Fonz

mkdir -p /ffp/pkg/
cd /ffp/pkg/
/ffp/bin/rsync -av --delete inreto.de::dns323/fun-plug/0.5/packages .

 

Download Repository provided by Uli

mkdir -p /ffp/pkg/
cd /ffp/pkg/
/ffp/bin/rsync -av --delete ffp.wolf-u.li::ffp/additional .

 

Update Existing Packages

funpkg -u /ffp/pkg/packages/funpkg*.tgz
funpkg -u /ffp/pkg/packages/*.tgz
funpkg -u /ffp/pkg/additional/*/*.tgz

 

Installing Optware

wget http://wolf-u.li/u/233 -O /ffp/start/optware.sh
chmod a+x /ffp/start/optware.sh
/ffp/start/optware.sh start

/ffp/bin/rsync -av --delete ffp.wolf-u.li::ffp/additional .
Read 15065 times Last modified on Monday, 07 October 2013 22:42

Leave a comment

Back to Top