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

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-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 : 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 323 - Funplug 0.5 : Move Fun plug to a USB key

dropcap-dns323

If you are running fun_plug on your DNS-323, 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. But with DNS-323 things are not so simple as it doens't handle natively USB mass storage ...

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

  • to install and load a USB mass storage driver
  • to format the USB key with the Ext filesystem used by DNS-323
  • to auto-mount the USB key at boot
  • to reconfigure fun_plug to run from new location

This article will explain how to fully configure a DNS-323 to run a working Fun Plug 0.5 installation from a USB key. It supposes that your DNS-323 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 and FAT formatted. 2 or 4 Gb will be more confortable in case you need to install many Fun plug packages.

Read more: DNS 323 - Funplug 0.5 : Move Fun plug to a USB key

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 323 - Funplug : Generate Twonky video thumbnails from XBMC .tbn

dropcap-dns323-twonky

In previous articles, I've explained how to install fun_plug extension script and TwonkyMedia server 7 on a DNS-323.

This article will explain how to configure TwonkyMedia server 7 to fully use an existing XBMC movies thumbnail database to generate its own video thumbnails.

In fact, if you are already using your DNS-323 thru a samba share to serve movies to some XBMC clients (Windows or Linux), you probably have already some .tbn thumbnails associated with all your movies and all your subdirectories. XBMC thumbnails with .tbn extension are simply jpeg files renamed with this specific extension.

This article will explain how to setup TwonkyMedia server environment to use these .tbn thumbnails to supply TwonkyMedia video thumbnail mecanism. Is has been tested sucessfully on a LG DLNA connected TV.

As a pre-requisite, you must have installed TwonkyMedia server and its dependencies following DNS 323 - Fun_plug 0.5 : Install Twonkymedia Server 7.

Read more: DNS 323 - Funplug : Generate Twonky video thumbnails from XBMC .tbn

DNS 323 - Funplug 0.5 : Install Twonkymedia Server 7

dropcap-dns323-twonky

DNS-323 is a very versatile little NAS that is widely used to serve music and video files thru Samba network shares. With the help of fun_plug scipt, you can extend its capabilities quite easily.

One very interesting extension is to install TwonkyMedia server 7, a very efficient and low memory print DLNA & uPnP media server.

TwonkyMedia is one of the most efficient DLNA server you can get on a low power device like DNS-323.

It can easily serve music and video files to some network clients like :

Roku Soundbridge Network Player (uPnP)
Philips Network Player NP2500 (uPnP)
player-lg-42ml615s LG connected TV (DLNA)

It can handle easily a huge mp3 database (20k+ files) and it can stream 1080p videos (2D or 3D SBS) to your DLNA TV without any problem.

The use of TwonkyMedia server has one drawback : It needs a licence key to run. You can buy one from their site or you can get one attached with some network players, like Philips NPxxxx. Point to be noted, a Twonkymedia server key will work on any number of servers and on any type of supported OS.

This article will explain how to install TwonkyMedia server 7 on the NAS.

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

Read more: DNS 323 - Funplug 0.5 : Install Twonkymedia Server 7

DNS 323 - Extend your NAS possibilities with Funplug 0.5

DNS-323

DNS-323 is a fantastic little NAS storage, able to host 4 Tb of data thru 2 SATA hard disks up to 2 Tb each.

It offers a lot of embedded possibilities (samba & nfs shares, iTunes server, uPnp server, ...).

Thanks to a very active community, its possibilities can be expanded even more thru a scripting method called ffp.

It allows to start some more services, shaping the DNS-323 into a very versatile appliance.

Most of the informations you will get in this article has been collected and consolidated from http://nas-tweaks.net/http://wiki.dns323.info/

So, this article will explain in an easy way how to transform your DNS-323 in a fantastic little home server with lots of open possibilities left.

All following operations have been done on a DNS 323 (firmware 1.08) with one or two disks, but no RAID configured.

Read more: DNS 323 - Extend your NAS possibilities with Funplug 0.5

Page 2 of 3