DNS 320 & 325 - Extend your NAS possibilities with Funplug 0.7

dropcap-dns325

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.

Read more: DNS 320 & 325 - Extend your NAS possibilities with Funplug 0.7

DNS 325 - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with SNMP

dropcap-dns325-snmpWhen you run Net-SNMP on your DNS-325, you must have realised that standard SNMP MIBs are not providing a way to supervise your NAS temperature sensors (internal case & hard disk).

Thanks to the open nature of Net-SNMP project, it is possible to extend the Net-SNMP MIBs thru simple shell scripts.

The principle is quite simple :

  • Some new MIBs are declared to SNMP daemon with associated shell scripts
  • SNMP daemon publishes these new MIBs with the standard ones
  • When the MIB is called, SNMP daemon triggers the associated shell scripts to read the sensor values

With this approach, it becomes quite simple to publish DNS-325 fan speed and temperature sensors MIB.

This article explains how to setup your DNS-325 SNMP deamon so that it publishes some extended MIBs to read fan speed and internal case & disks temperature thru their respective sensors.

This will allow you to supervise your DNS-325 temperature levels thru SNMP with supervision softwares like Nagios, Munin, ... A Munin node example under Debian is also provided in this article.

A pre-requisite is to have have fully prepared your DNS-325 with fun_plug 0.7 and adds-on and to have Net-SNMP installed.

Even if not tested, this procedure should also be compatible with DNS-320 devices.

Read more: DNS 325 - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with SNMP

DNS 320L - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with Munin

dropcap dns320 muninWhen you run a DNS-320L NAS, as it is holding your important data secure, it may of great interest to check its important health data, like :

  • fan rotation
  • case temperature
  • harddisk temperature

This article explains how to setup your DNS-320L to report its fan rotation speed and its internal temperatures (case & hard disks) as a Munin node.

All these sensor data will then be reported to your centralised Munin console.

A pre-requisite is to have fully prepared your DNS-320 to run as a Munin node. To do so, you need to follow these articles :

  1. DNS 320 & 325 - Extend your NAS possibilities with Funplug 0.7
  2. DNS 320 & 325 - Funplug 0.7 : Install Compilation Environment
  3. DNS 320, 323 & 325 - Funplug 0.7 : Install a Munin node with Muninlite

This procedure has been tested on a DNS-320 running firmware V1.00.

Read more: DNS 320L - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with Munin

DNS 325 - Funplug 0.7 : Setup your NAS as a Permanent BTSync Peer

dropcap-dns325-btsync

BitTorrent Sync is a young p2p tool which opens some fantastic possibilities. It may revolutionize the way you'll handle your private file sharing as it allows you to share & synchronize your files across multiple devices (PC, tablet, smartphone, ...) on the net in almost real time.

Some examples of the possibilities opened by BTSync are described in the article BTSync - How peer-to-peer may Simplify your Life.

Like with any p2p network, BTSync needs to get some accessible peers to start synchronisation.

So, to allow synchronisation to be done at any time, you can setup a permanent BTSync peer on a NAS running 24/24. As your NAS is always connected, it will handle all your devices connexions whenever they need it.

This article explains how to install a BTSync client on a DNS-325. It will transform it as a permanent BTSync network peer. Any device (PC, smartphone, tablet, ...) will then be able to synchronize any time. You will have then created your self hosted Dropbox or Google Drive replacement.

It has been tested on a DNS-325 running firmware 1.04. As a pre-requisite, funplug 0.7 must be installed on your DNS-325.

Read more: DNS 325 - Funplug 0.7 : Setup your NAS as a Permanent BTSync Peer

DNS 320, 323 & 325 - Funplug 0.7 : Install a Munin node with Muninlite

dropcap-dns325-munin

If you are the owner of a DNS-323, DNS-320 or DNS-325 NAS device, you may have noticed that there is no simple way to supervise like any other network equipment.

In some previous articles, I explained how to install Net-SNMP on these devices to be able to supervise them. Main advantage of SNMP is that you'll be able to use any supervision tool like Nagios, Munin, ...

But, if you are using a Munin supervision console, a simple approach would be to install a munin node client on your NAS. But munin-node client compilation is quite tricky on devices like DNS-323 & DNS-325.

So, another approach to get a Munin node is to use Muninlite client, which has been especially designed to be installed on tiny devices with limited OS capabilities.

This article explains how to install and configure a Muninlite client on a DNS-323, DNS-320 or DNS-325 NAS running funplug. This will allow you to supervise your NAS device thru any Munin supervision console.

As a pre-requisite, funplug 0.7 must be installed on your NAS device and your compilation environment operational.

Installation guides are available for :

Read more: DNS 320, 323 & 325 - Funplug 0.7 : Install a Munin node with Muninlite

DNS 325 - Funplug 0.7 : SSLH ... share port 443 for Https, Ssh, OpenVPN and Tinc

dropcap-dns325-sslh

If you need to administrate your home network while on the move, you will soon realize that you need different type of accesses.

The standard accesses you may need are :

  • HTTS to access your secured pages or webdav shares
  • SSH to administrate your main server
  • OpenVPN or Tinc to get a full unrestricted access to your LAN

The only problem is that many Internet providers are blocking most of the ports used by these protocols. With some very restrictive providers (or with some corporate proxy) the only available ports may be 80 & 443.

So the solution to that problem is to allow HTTPS, SSH, OpenVPN or Tinc to share the same 443 port. With such setting, all your connexions needs can be handled from any type of network.

To help us to reach that goal, a fantastic little tool is available under Linux : SSLH

This tool listens on one specific port, analyse the stream & forward it to a specific local port according to its type.

This guide explains how to install the latest version of sslh on your DNS-325 which will become the conductor of your secured streams.

As this guide will need few compilation steps, you need to have setup a DNS 325 - Compilation Environment as a pre-requisite.

Read more: DNS 325 - Funplug 0.7 : SSLH... share port 443 for Https, Ssh, OpenVPN and Tinc

DNS 323 & 325 - Funplug : Send mail from shell scripts using your Gmail account

dropcap-dns325-gmail

Once you have prepared your DNS-323 or your  DNS-325 with Fun plug and adds-on, a lot of possibilities are opened, especially in terms of automated batch processing.

For example, if you automate some processes like backup, database dump, ... you may be interested in sending reports by email straight from your batchs.

This article will explain how to configure your NAS to be able to send emails from command line.

The sendmail client used will be the one provided by the NAS firmware : msmtp.

Configuration will be done to be able to use a Gmail account, but it can obviously be adapted to any other smtp provider.

This article has been tested on DNS-323 running Fun plug 0.5 and on DNS-325 running Fun plug 0.7. It should also be applicable to a DNS-320 as well.

Read more: DNS 323 & 325 - Funplug : Send mail from shell scripts using your Gmail account

DNS 325 - Funplug 0.7 : Supervise your NAS thru SNMP

dropcap-dns325-snmp

If you own a DNS-325, you may have noticed that there is no simple way to supervise it.

Hopefully, thanks to funplug and to Mijzelf repository, it is possible to install Net-SNMP on this NAS.

Once it is installed, your DNS-325 becomes a fully featured SNMP device. A lot of possibilities are then opened in term of management and supervision.

This article explains how to setup an operational net-SNMP agent on a DNS-325 NAS running funplug.

This will allow you to supervise your DNS-325 thru SNMP with supervision softwares like Nagios, Munin, ...

A pre-requisite is to have have fully prepared your DNS-325 with fun_plug 0.7 and adds-on.

Even if not tested, this procedure should also be compatible with DNS-320 devices.

Read more: DNS 325 - Funplug 0.7 : Supervise your NAS thru SNMP

DNS 325 - Funplug 0.7 : Move Fun plug to a USB key

dropcap-dns325

If you are running fun_plug on your DNS-325, you may have noticed that since your NAS is running the fun_plug script from a filesystem located on the first hard disk, this disk is not able to go into power saving mode anymore.

To allow your hard disk to enter power saving mode as often as possible, one elegant solution is to run Fun plug and its services from the filesystem of a connected USB key.

To be able to run fun_plug from a USB key filesystem, it means that you need :

  • fix a bad chmod 777 behaviour of the DNS-325
  • to format a USB key with Ext2 filesystem
  • to auto-mount USB key at boot
  • to reconfigure fun_plug to run from new location

This article will explain how to fully configure a DNS-325 to run a working Fun Plug 0.7 installation from a USB key. It supposes that your DNS-325 is already running Fun plug.

As a result, your NAS first hard disk will regain the possibility to enter power saving mode as soon as user data are not accessed.

The USB key should be at least a 1 Gb. A key of 2 or 4 Gb will be more confortable in case you need to install many Fun plug packages.

This guide is based on fun_plug 0.7. It's pre-requisite installation can be done following DNS 325 - Extend your NAS possibilities with Fun plug 0.7.
All following operations suppose that your are connected to the DNS-325 console thru SSH or Telnet.

This article has been tested on DNS 325 with firmware 1.03.
I've not succeeded to make it work under firmware 1.04. So, please downgrade to 1.03 if you really need this feature.

Read more: DNS 325 - Funplug 0.7 : Move Fun plug to a USB key

DNS-325 - Funplug 0.7 : Subsonic server with realtime MP3 and AAC transcoding

dropcap-dns325-subsonic

Subsonic is a really efficient music streaming server that allows you to share your complete music collection to any internet connected device like laptop, mobile phone or tablet. It can handle on-the-fly transcoding for devices connected to low speed networks like 3G or even Edge networks. You can get a good overview of the possibilities of Subsonic from the project site http://www.subsonic.org/.

Even if Subsonic is very efficient, it is not that easy to install on a device like DNS-325, as it is running under Java (which is CPU and RAM hungry) and as it's supposed to be able to do real time transcoding (which is also very CPU intensive). The main limitation of DNS-325 for this purpose is that it offers a 1.2 GHz ARM processor, with only 256 Mb memory and no Floating Point Unit.

But, with the help of Oracle Java 7 SE Embedded for ARM devices, Shineenc fixed point mp3 encoder and Fraunhofer fdk-aac encoder, it is possible to setup a fully functionnal installation of Subsonic on the DNS-325, including realtime MP3 and AAC transcoding. Yes, realtime transcoding !

So, this article will explain how to do a complete installation of Subsonic music server on a DNS-325. It will deals with the following steps :

* Installation of Oracle Java 7 SE

* Installation & setup of Subsonic

* Setup of a realtime mp3 & aac transcoding chain using ffmpeg, shineenc & libfdk-aac library

* Apache 2 reverse proxy configuration for internet access

This setup has been tested on a mp3 music collection, but it may be applicable for any musical file types accepted by ffmpeg.

Read more: DNS-325 - Funplug 0.7 : Subsonic server with realtime MP3 and AAC transcoding

DNS 325 - Funplug 0.7 : Compile x264, lame, shine, fdk-aac, twolame, ffmpeg and sox

dropcap-dns325-gnu

This article will explain how to easily setup a complete GNU compilation environment on your DNS-325 and to compile latest multimedia tools optimised for ARM architecture :

  • shineenc mp3 integer encoder library (liquidsoap version, 8x faster than lame with acceptable quality)
  • fdk-aac encoder library from fraunhofer (high quality real-time aac encoder, open-sourced by Google for jelly bean android platform)
  • twolame encoder library (successor of TooLame)
  • opus encoder library (newly standardized by the IETF)
  • x264 encoder (not optimised for ARM, but a reference)
  • lame 3.9.5 (not optimised for ARM, but also a reference)
  • ffmpeg encoder/decoder multimedia framework
  • sox audio processor, a swiss army knife of sound processing programs

With the resulting binaries, you will be able to :

  • Encode aac and mp3 stream with ffmpeg in more than 3x realtime (perfect for subsonic media streamer)
  • Apply some Dynamic Range Compression on audio files with sox
  • Encode some h264/aac video files with ffmpeg & x264 as a background process
Read more: DNS 325 - Funplug 0.7 : Compile x264, lame, shine, fdk-aac, twolame, ffmpeg and sox

DNS 325 - Funplug 0.7 : Install Transmission p2p client

dropcap-dns325-transmission

This article explains how to install a Transmission peer-2-peer client on a DNS-325.

Transmission client on a DNS-325 is very interesting for different aspects :

  • usually, a NAS is running 7/7 - 24/24
  • Transmission is fully Web controlled
  • It is using very less RAM
  • It is very light on CPU power
  • It is offering lots of parameters (ports limitation, speed throttle, ...)

So, with this setup, you will be able to serve 24h/24 your latest Linux distributions torrents from home without any computer on.

As a pre-requisite, you must have installed Fun_plug 0.7 and declared Slacker repositories following DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities.

This procedure should also be compatible with a DNS-320, which is running the same system with less memory and less processor power.

Read more: DNS 325 - Funplug 0.7 : Install Transmission p2p client

DNS 325 - Funplug 0.7 : Install Twonkymedia Server 7

dropcap-dns325-twonkymedia

This Tutorial explains how to install TwonkyMedia Server 7, a very efficient uPnP media server, on a DNS-325 NAS.

TwonkyMedia Server is one of the most efficient uPnP network server, able to stream music to some wireless network clients like :

  Roku Soundbridge  
  Philips NP2500 or NP2900         

It allows to browse easily a huge mp3 database (15k+), thru tags like genre/artist/album and can efficiently replace Firefly media server.

Twonkymedia server main drawback is not to be free and to need an activation key to run. But, on the other end, you will get an unlimited activation key with every Philips network media player you buy. Point to be noted, a Twonkymedia server key will work on any number of servers and on any type of supported OS.

As a pre-requisite, you must have installed Fun_plug 0.7 following DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities.

Read more: DNS 325 - Funplug 0.7 : Install Twonkymedia Server 7

DNS 325 - Funplug 0.7 : Administrate your NAS with Ajaxterm

dropcap-dns325-ajaxterm

You may have to administrate your DNS-325 in console mode when you are away from home, without any SSH client available.

An easy and efficient solution is to use Ajaxterm SSH Web terminal.

It allows you to connect to your NAS with a simple Browser. You will be in front of a real SSH console, but within your browser.

This article will explain how to install Ajaxterm on your DNS-325. It should also be compatible with a DNS-320, but I've not tested it.

A pre-requisite is to have fully prepared your DNS-325 following DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities (Optware is not needed anymore).

Read more: DNS 325 - Funplug 0.7 : Administrate your NAS with Ajaxterm