DNS-323: Initial set-up

I purchased (a shamefully long time ago, welcome to tech live as a mom with a toddler) a DNS-323 (and two 1T drives) with the hope of moving most of our shared files onto it. Now that we don't record TV shows anymore, having that box on all the time is just a power drain. So: the goal is a DNS-323 with all of our files (photos, music, finance stuff, some movies, etc.) onto the first volume of that drive, and then using an rsync shadow with hardlinks to do nightly backups to the second drive. Some RAID configurations have been reported as less than stable, and using a mirror configuration requires both drives to be active: a nightly rsync backup will do.

Applying firmware and extra software

A firmware update became available between when I bought the unit and when I finally got a chance to work on it-- so I updated the firmware to 1.08, and installed the optional NFS package, though I haven't set NFS up yet.

  1. Download the firmware update (as a zip) from dlink.com (under "Support Resources")
  2. Unzip the download
  3. Using the Web UI, go to the Tools tab, select Firmware from the left-hand menu
  4. Use the browse button to find the firmware update (dns323_firmware_108 in my case)
  5. Use the apply button (which is in the text above the form, oddly enough) to apply the firmware update
Additional Software / NFS update
  1. Download the additional software package from dlink.com (under "Additional Downloads")
  2. Unzip the download
  3. Using the Web UI, go to the Advanced tab, and select "ADD-ONS"
  4. Browse to the unzipped file using the appropriate form (Application Pack, in my case, with the file dns323_NFS _Package_v1.00)
  5. Use the apply button to install the software: it will show up in the table below (in the case of the application pack, anyway), and you can toggle the status there (enable/disable via start/stop).

Setting up funplug, etc.

First, install fun_plug (v0.5).

  • I used the Web UI to create a new user, and then used the FTP to transfer fun_plug and fun_plug.tgz to Volume 1 as described here.
  • Easy to follow instructions to install additional packages from in the README:
    telnet <your-dns-323>
    cd /mnt/HD_a2
    rsync -av inreto.de::dns323/fun-plug/0.5/packages .
    cd packages
    funpkg -i *.tgz
    That does install all of the additional packages, but fonz's how-to recommends,

    There's nothing in the install tarball (fun_plug.tgz) that's not in a package. The simplest way to stay current is to install all the main packages ( http://www.inreto.de/dns323/fun-plug/0.5/packages/ ).

    I suggest to keep a local copy of the packages using rsync (don't forget –delete). Then use 'funpkg -i *.tgz' and 'funpkg -u *.tgz' to install and upgrade.

    So, that's what I did. At the end of the day, I'll be using quite a few of the extra packages anyhow...
All of the above was easy enough, and gave me a telnet shell with root access (no password).

Fixing the root user

fonz's how-to includes a section on "fixing" the root user.

pwconvEnsures we have an /etc/shadow file based on the contents of /etc/passwd
passwdSet a password for root
usermod -s /ffp/bin/sh rootSet the root user's shell to one that won't prompt for an obscure unlock code
pwckSanity check the /etc/passwd file; ignore missing home directories for nobody and admin
grpckSanity check the /etc/group file; ignore bad group names 500/501
loginTest your changes: verify you can log in with the password you think you set. ;)