Feb 232014



As you’ll no doubt recall from my earlier 2012 article, I have a NAS in my home office.  It is a Thecus N5200XXX 5-bay Network Attached Storage device, and it sits on my home gigabit network.

The Thecus features an OS which accommodates pluggable “modules”, one of which is a licensed copy of Twonky Media Server. 


Twonky is a DLNA (Digital Living Network Alliance) compliant media server which broadcasts (via UPnP) to media receivers on your local network.  The server has device profiles for a range of media receivers, and is pretty easy to configure.


Configuring Twonky

The majority of functionality Twonky exposes is fine out-of-the-box, but there might be some cases where you’d want to modify or augment functionality.  In my case, I wanted to change the way Twonky displays Pictures and Videos when viewing by date (to sort by most recent, and by Day instead of Year./Month).

To make changes you’ll need to hand edit the various Twonky configuration files – a warning up front – if you aren’t confident in messing with configuration files, this might not be a step you want to entertain. 

Accessing Twonky configuration

As would be no surprise to many network gurus, the Thecus module files aren’t directly accessible via a Samba or NFS mount.  This means you’ll need to employ a different approach – namely secure shell (SSH) – in order to get at the Twonky configuration files.

Here’s an easy to follow guide on configuring and using the Thecus SSH module, or see below

  1. Install and start HiSSH module on your Thecus NAS
  2. Activate the HiSSH module (by default it is configured to use your admin account’s password)
  3. Use an SSH client to connect to the NAS (using user: root)

Personally, I disabled the SSH module after I was finished accessing the NAS.

Free SSH Clients for Windows

If you are running a version of Microsoft Windows, these SSH clients are worth a look:

For this article, I’ll be using winSCP as it has a nice Explorer-style User Interface and allows the use of interaction with your clipboard for copy/cut and paste operations.

Accessing the Twonky Configuration

Once you’ve authenticated, you’ll find the main module files under the path:

Warning!  Before you attempt to make any changes to any module files, I highly recommend making backup copies of any files or folders you want to modify.

In my case, I wanted to edit the device configuration for all devices, so I navigated to the following path:

Click on the image for a closer look

Opening the view-definitions.xml file, it was a simple matter of replacing the “bydate” container configuration under the video container configuration, with this:

<container name='bydate' id='video/date' sortcriteria='-dc:title' 
           createClass='object.item.videoItem.movie' class='object.container'> <container buildon='dc:date[1:10]' sortcriteria='+dc:title'
           createClass='object.item.videoItem.movie' class='object.container'/> </container>

I made a similar change for the Pictures container object.  Once saved, the Twonky module needed to be disabled and enabled again.

Useful Links


Jan 282014

So late last year I was having trouble trying to figure out why a web site I’d been writing wasn’t working once published to Windows Azure.  I can’t remember which library it was (JQuery.UI perhaps), but once published I was getting a lot of broken JS calls (“can’t load library”, etc). After a call with [...]

Jan 022014
A simple project effort estimation utility

If you’ve spent any amount of time in the IT industry – and particularly in software development – you’ve probably been asked to forecast the effort associated with some kind of work, outcome or deliverable. Software development is tricky as it involves some degree of guess work – requirements can often be vague or ill-defined; [...]

Nov 062013
Using the Dynamic Data Database Embedded Image Field Template

Introduction Hi all.  I’ve been working with the old ASP.NET Dynamic Data website templates, as I wanted a quick and easy to use web UI for managing the data at http://rs-photography.org. As the site is (obviously) image-centric, I wanted to make some modifications to the out-of-the-box Dynamic Data project to include native image rendering/loading and [...]

Oct 212013
Visual Studio 2013 – Using a Product Key

Introduction Recently, I mentioned that the newly minted Visual Studio 2013 asks you to authenticate with a Microsoft account to tie your copy to a specific account. This comes in the wake of Visual Studio no longer being pre-pidded (when a product has a license key included in the installation media) when you obtain a [...]