Table of Contents

1st little steps

This is a beginners step-by-step guide on how can you enhance your DNS-323 box with fun_plug tweaking.


This guide supposes you use Unix/Linux desktop (altough, with very small effort it is usable for windows users as well, if using putty ssh/telnet application) with IP address 10.10.10.150.

It is assumed that your NAS device is plugged into home network 10.10.10.0/24, having DHCP server turned on.

It is assumed that your NAS device has gotten the 10.10.10.1 IP address from DHCP server (later this address will be changed to 10.10.10.123, or whatever by your choice).


Don't forget to substitute all IP addresses and passwords mentioned below to your environment.

Step 0.(optional) Clean from previous fun_plug

Step 1. HW reset

Step 2. The very first init

Step 3. Prepare Ftp server for FunPlug

Step 4. Install FunPlug with Telnet enabled

See details at http://wiki.dns323.info/howto:fun_plug (chapter Transfer using FTP)

Step 5. Enable SSH, disable Telnet

See details at http://nas-tweaks.net/CH3SNAS:Tutorials/fun_plug

Step 6. Install repository for local use

See at http://nas-tweaks.net/CH3SNAS:Tutorials/ffp-packages See at http://ffp.wolf-u.li/additional/

It appears that inreto.de is no longer accepting connections via rsync. The following commands are no longer working. If they do not work for you, you can download the packages by some other means (such as wget).

  $ ssh -l root 10.10.10.123
     cd /ffp/
     mkdir pkg ; cd pkg ; rsync -av --delete inreto.de::dns323/fun-plug/0.5/packages .
     rsync -av --delete wolf-u.li::ffp/additional .
     rsync -av --delete inreto.de::dns323/fun-plug/0.5/extra-packages .

Note, if you are using the 0.7 version the command is:

rsync -av --delete inreto.de::dns323/fun-plug/0.7/XXXXXXXXXXXXXX/packages/

Were XXXXXXXXXXXXXX is the architecture of your NAS

Step 7. Install MidnightCommander

# funpkg -i /mnt/HD_a2/ffp/pkg/additional/app-misc/mc-*.tgz

Step 8. Install NTP Time synchronisation

See a complete Tutorial at http://nas-tweaks.net/CH3SNAS:Tutorials/ntp See at http://wiki.dns323.info/howto:ffp (chapter NTP Network Time Protocol)

    # cd /ffp/etc
    # cp examples/ntp.conf .
    # chmod a+x /ffp/start/ntpd.sh
    # sh /ffp/start/ntpd.sh start
    # ntpq -p
Fix: HDD stand by issue

It is recommended to change drift file path in /ffp/start/ntpd.sh file to /tmp/ntp.drift. Otherwise drive won't go to stand by anymore. @yozik04

Issue with DNS-313

ntpd seems incompatible with (some versions of?) DNS-313

Step 9. Install Lighttpd web server

See a complete Tutorial at http://nas-tweaks.net/CH3SNAS:Tutorials/lighttpd See at http://wiki.dns323.info/howto:lighttpd_php (chapter Easy Ways )
See at http://wiki.dns323.info/howto:ffp (chapter Lighttpd Web Server)

Step 10. Add PHP packages into to Lighttpd

See a complete Tutorial at http://nas-tweaks.net/CH3SNAS:Tutorials/php See at http://forum.dsmg600.info/viewtopic.php?id=3466

Step 11. Add MySQL packages into to Lighttpd

See a complete Tutorial at http://nas-tweaks.net/CH3SNAS:Tutorials/Mysql See at http://forum.dsmg600.info/viewtopic.php?id=3466

Comment extension dir line. This line is under the Paths and Directories heading, which is 42% of the way through the file.

    ;extension_dir = "./"

Below it, add a new extension directory path. (fun_plug 0.5)

    extension_dir = "/ffp/lib/php/extensions/no-debug-non-zts-20060613/"

Below it, add a new extension directory path. (fun_plug 0.7)

    extension_dir = "/ffp/lib/php/extensions/no-debug-non-zts-20090626/"
    # The MySQL server
    [mysqld]
    port		= 3306
    socket		= /ffp/var/run/mysql/mysql.sock
    skip-locking
    key_buffer_size = 16K
    
    # The MySQL server
    [mysqld]
    port		= 3306
    socket		= /ffp/var/run/mysql/mysql.sock
    datadir		= /ffp/var/lib/mysql
    skip-external-locking
    key_buffer_size = 16K

Create space for logs, then initialize the data directory. (fun_plug 0.7)

    # mkdir -p /srv/mysql
    # mysql_install_db --datadir=/ffp/var/lib/mysql

Prepare MySQL. Be careful, initial password setting is possible only at the first time

    # sh /ffp/start/mysqld.sh start
    # mysql_secure_installation

Step 12. Allow remote connection to MySql

See http://nas-tweaks.net/96/installation-and-configuration-of-mysql-on-fonz-fun_plug/#Allowing_external_access
See http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html
See http://forums.mysql.com/read.php?108,62926,199511