TurnKey Linux Virtual Appliance Library

Updated DLNA media server patch with webui

Alex Bassett's picture

Here ia an updated Dlna media server patch that now includes a simple webui .

Licence included in readme

Serviio is developed by Petr Nejedly who lives in London and works as a freelance Java consultant.

build notes

#!/bin/bash -ex
# By Alex Bassett

install()
{
    DEBIAN_FRONTEND=noninteractive apt-get -y \
        -o DPkg::Options::=--force-confdef \
        -o DPkg::Options::=--force-confold \
        install $@
}


#Update package information
apt-get update

#Install Additional packages
install ffmpeg openjdk-6-jre-headless

#use wget for main package ( go to downloads page for new links )
wget http://download.serviio.org/releases/serviio-0.6.0.1-linux.tar.gz
tar xzf serviio-0.6.0.1-linux.tar.gz
rm serviio-0.6.0.1-linux.tar.gz


#Clean up any leftovers cruft
apt-get -y autoremove
apt-get clean

looks simple I hope

I also added a simple overlay script to start Serviio

# serviio.conf
# used to start serviio after networking starts
# start on started networking

description  "start on started networking"

start on runlevel [2345]
stop on runlevel [!2345]

exec /serviio-0.6.0.1/bin/serviio.sh

 

I also added a start script for the webui.

# serviio-webui.conf
# used to start serviio-webui after serviio starts
# start on started networking

description  "start on started serviio"

start on runlevel [2345]
stop on runlevel [!2345]

exec /serviio-0.6.0.1/bin/serviio-webui.sh

The overlay also adds :

/serviiopatch/overlay/serviio-0.6.0.1/bin/serviio-webui.sh

/serviiopatch/overlay/serviio-0.6.0.1/plugins/serviio-webclient (an executable Jar file)

 

All default services stay un-touched as do usernames and passwords.

Included in the attached zip file is serviiopatch.tar.gz and a short read me which gives more details for the setup of the console in windows and linux , serviio console also works on Mac.

feed back is most welcome

Alex Bassett

Alex Bassett's picture

Updated DLNA media server patch with webui

Seems this patch has a problem reported on this site with Ubuntu udev upgrade.

work around is  : echo udev hold | dpkg --set-selections


Alex Bassett's picture

Updated DLNA media server patch with webui

More information on serviio can be found at : http://www.serviio.org/

The patch can be used on tkl-fileserver and tkl-torrentserver .

If you could be more specific on what information you need I will be able to help more .


where do the conf files go?

Interesting. I have created /etc/init.d scripts to start/stop serviio.sh and serviio-webui.sh. Ideally, the webui should not start unless serviio is running. So I like your idea best. But I cant see where to install your .conf files and which sys prog invokes them. I am running etch on ReadyNAS.

Alex Bassett's picture

Hi Berny g turnkey uses at

Hi Berny g

turnkey uses at the moment ubuntu lucid server as a base, my conf scripts install to /etc/init ( note no .d after init) .

I believe lucid uses the upstart system.

regards Alex


Ah! that exlains it then. I

Ah! that exlains it then. I guess I got confused as I read in your script "....DEBIAN_FRONTEND=noninteractive..." so assumed  a native debian dist.

Oh well, thanks anyway.

I am finding that if I kill -TERM the pid for serviio-webui.sh, it dies, then auto restarts but java kicks up a storm because the port is already in use. I guess there is no clean way to "-stop" servio-webui.sh in an init.d script.

But anyways.....serviio is a really cool peice of software....Petr Nejedly us da man!

Alex Bassett's picture

I will be updating

I will be updating tklfileserver + serviio + webui when the tkl devs update to 12.04. hopefully then i will be able to get live tv  streaming working !


Jeremy's picture

Been having a bit more of a look at Serviio...

I'm in the process of converting an old compact desktop into an HTPC (I'm using XBMC on Bodhi Linux at this stage and it's working sweet). And I'm thinking of having a backend server running, rather than just a file server. I also plan to have TV streaming from my server which runs ProxmoxVE (from what I've been reading MythTV backend seems to integrate with XBMC pretty well so was thinking of installing that into an OpenVZ container if I can get the PCI passthrough working ok).

But then I thought I'd have a bit more of a look at Serviio too. I like the idea of having options and Android devices (at this point there are 2 phones and a tablet at home) seem to work well with DLNA (apparently). It looks really nice and I think it's fantastic that you've made this patch. Only thing is, that although it's free, it's not actually open source (see licence here).

That doesn't make it a problem to produce a patch to share with others, but it does mean that it is unlikely to be released as an official TKL appliance. That was a dissapointing discovery I must say. I was really hoping to take advantage of your work.

The only open source software that I found that seems close is PS3 Media Server. But it doesn't have a nice WebUI (only a basic Admin WebUI). It seems some community members have been playing with that, but I couldn't (yet) find one that is polished and stable. Also while it seems quite good and the development seems very active, it also seems quite fragmented (as open source can be some times when very community orientated and not lead by a company) with multiple community versions with different tweaks and bug fixes, many which seem not to be making it back into the 'official' version.

So Alex, I was wondering a couple of things. Firstly have you played with PMS at all? If so what were/are your thoughts on it? Whilst Serviiio looks like an ideal piece of software, seeing as it probably won't be released officially, would you consider looking at PSM (or something else) as a DLNA media server? I'd really love to see your work pay off and be released as an official appliance (and get the recognition you deserve for development)? Any other thoughts?

Alex Bassett's picture

Thanks Jeremy for your

Thanks Jeremy for your intrest in my Serviio patch , I have played with PS3 media server and found the same Ui problems as you did , I also found it very finicky towards codecs and playback of certain files. 

One idea i have had is to try XBMC as a front end  inside TKL  fileserver or maybe TKL core  running miniDLNA as the backend .  XBMC has an option to use hardware acceleration from a gpu to lower cpu usage.

I may need to have another look round the net to see if there are any other DLNA server sources i could try to use .

Leave it with me and i will have a hack about with different sources


Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)