DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-07-01 15:35:22

Emacs
Member
Registered: 2007-06-24
Posts: 110

Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hi there,

I can confirm that the Oxyl media-server software for Pinnacle ShowCenter 200 runs extremely well on the DNS-323.

My DNS-323 is running Debian Etch. I added the packages for Apache 2.2.3 and PHP 5.2.0-8 and installed Oxyl according to the Oxyl Linux documentation.

Oxyl on the DNS-323 outperforms my old install (Oxyl on a Linksys NSLU2) so much it is unbelievable.
The web GUI on my TV is absolutely smooth and responsive (it was kind of sluggish - no pun intended - on my old NSLU).

Cheers,

Emacs

Offline

 

#2 2007-07-01 19:10:43

DNS-323 Talker
Member
Registered: 2007-05-21
Posts: 245

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

I wasn't aware that we had PHP or Apache running on the DNS-323...is this more than an Oxyl Media Server breakthrough?


DNS-323 w/two Seagate 500 GB RAID1
Fonz's Fun_Plug- Don't DNS-323 without it!

Offline

 

#3 2007-07-01 19:25:25

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

It's running in a Debian chroot (meaning that Debian is installed into a directory with its own set of libraries and config files. Then, programs are run inside that "jail").

Offline

 

#4 2007-07-01 19:43:45

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

DNS-323 Talker wrote:

I wasn't aware that we had PHP or Apache running on the DNS-323...is this more than an Oxyl Media Server breakthrough?

As fonz stated, Apache and PHP work very well on the DNS-323 if you use the Debian chroot environment.
Oxyl is probably a not very well known media server which works particularly good with the Pinnacle ShowCenter200.
The ShowCenter has a problem since it's UPNP support is rather limited - which renders most of the more common media servers (Twonky, etc.) useless.

I'm very happy that managed to get Oxyl running on my DNS!

Currently I'm just trying to build a stable environment which makes the DNS fire up Oxyl automatically after re-boot.

Cheers,

Emacs

Offline

 

#5 2007-08-16 11:46:52

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

i'm looking for a better upnp server with subtitle support for the dns323. Maybe oxyl is worth a try, as i am a linux newbie, could you post a little howto?

Offline

 

#6 2007-08-16 13:48:07

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hi erostiff,

I guess I could - but Oxyl is NOT an UPNP server.
The Pinnacle ShowCenter uses a different method to access the media on the server which is basically based on a html interface.
Oxyl is mostly written in PHP and creates the needed html structure.

Let me know, if the how-to is still interesting ;-)

Cheers,

Emacs

Offline

 

#7 2007-08-16 16:38:14

HerbertH
Member
Registered: 2007-08-16
Posts: 14

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hi Emacs,

I have also a  SC200 connected via UPNP to the original DNS firmware. It is running very stable but more or less no features.
This means no playlists, only playing one file in a folder and stopping afterwards etc.
Can you give me details about the changes you made? What are the advantages of OXYL? Is it also necessary to make changes in the SC200 too?
What happens to the other functions of the DNS323 as a NAS?

Thanks Herbert

Offline

 

#8 2007-08-16 17:09:29

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hi Emacs,

thx for the reply, i have a dsm-520 and a pinnacle showcenter. Running 1 good server would be better then running 2 (not so good). The dlink media server software (from dsm-520) does pop up in the pinnacle and i can connect, but a lot of the times the video gets interrupted.
I would like to try oxyl (especially because the pinnacle is in the bedroom and since the dns 323 is running most of the time, i don't have to get up to shutdown my laptop/desktop ;-)

if it's not too much trouble, i'd love to see a little how-to...
thx

Offline

 

#9 2007-08-16 18:16:35

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Okay - no problem ;-)

>What are the advantages of OXYL?

Well, Oxyl allows you to stream shoutcast radio through the SC200, to get the latest weather reports, read some RSS feeds, and so on. It is build in a modular way and a range of plugins are available that you can install via a webinterface into the server. These plugins range from a simple digital clock, to a (german language) online TV-Shedule. It's rather cool.

Here is a link to the english Oxyl forum for more details:

http://www.oxyl.de/wbboard/board.php?bo … c8a881b28f

>Is it also necessary to make changes in the SC200 too?
There is no change done on the client (Pinnacle ShowCenter 200 in my case).

>What happens to the other functions of the DNS323 as a NAS?
Nothing. They remain as they are ;-)
Technically you are just adding an lighttp webserver with PHP module using Fonz' funplug.
Oxyl is an "inteligent" webpage written in PHP which is run by the lighttp /PHP server.
So, aside from the CPU load caused by the server (which is usually very little, expect for pictures - see below) and having to funplug the box, there is no impact.


Here is an updated version with the latest details:

1.) Your DNS323 needs access to the Internet to start Oxyl (it checks for updates). Verify if this is working beforehand
1.1) Example: Telnet to the DNS323 and type "nslookup www.cnn.com" -> If you get a valid ip address returned, you are connected and have name resolution working
1.2) Only continue after above test works

2.) You need Fonz' latest funplug (0.3 if I'm not mistaken) and the php-5.2.3 plugin. Additionally libpng and libjpeg are required if the php-gd version is used. Recommendation: install libpng and libjpeg anyway ;-)
3.) You need to download the Oxyl tar file http://www.oxyl.de
3.1) On the Oxyl page (which is in german) click on "Downloads" and choose the third link "DOWNLOAD oxyl~box V2.50 TAR für Linux (2645 kB)". The filename is "oxylbox-V2.50_lin.tar.gz"
4.) Copy the tar file to your DNS 323 (either by FTP or copy to a mounted drive)
5.) telnet to the DNS 323, find the "oxylbox-V2.50_lin.tar.gz", and gunzip and untar it into a dedicated folder
5.1) this is done by the following steps:
5.2) mkdir /mnt/HD_a2/www/
5.3) mkdir /mnt/HD_a2/www/oxyl
5.4) Find the "oxylbox-V2.50_lin.tar.gz" and move it to the new directory. The linux command to move a file is "mv" - you need to find the file yourself ;-)
5.5) cd /mnt/HD_a2/www/oxyl
5.6) "gunzip oxylbox-V2.50_lin.tar.gz"
5.7) and then "tar -xvf "oxylbox-V2.50_lin.tar"
6.) Set up the lighttp config file ( /mnt/HD_a2/fun_plug.d/etc/lighttpd.conf )
6.1) -> see attached file in the files.tar. Note: my DNS323 is 192.168.0.202. If yours has another IP address change the address entry to match your IP. The TCP/IP port for the Oxyl server is "8001" in this file. Change if you want.
7.) Set up Oxyl "functions.inc" file in the /mnt/HD_a2/www/oxyl/common folder
7.1) -> see this description: http://www.oxyl.de/wbboard/thread.php?t … 238a3e1e6d
7.2) Or take the attached "functions.inc" file (in the files.tar)
7.3) Create a symbolic link to the libformat.so:  ln -s /mnt/HD_a2/fun_plug.d/lib/libformat.so /mnt/HD_a2/www/oxyl/bin/libformat.so

8.) Create some media folders for your videos, music and pictures
8.1) A sidenote here: pictures work, but depending on the size they will be extremely slow (like 5 minutes to bring up a new picture). This is due to the CPU power of the DNS323 which is not up to rescaling 5 megapixel pictures. I recommend to forget about picture display and concentrate on video and music
8.2) So I did "mkdir /mnt/HD_a2/media", "mkdir /mnt/HD_a2/media/videos", "mkdir /mnt/HD_a2/media/music", and "mkdir /mnt/HD_a2/media/photos".
9.) Copy some media files in the new folders. Make sure they can be read by everyone.
10.) Make the start lighttp script from Fonz' funPlug executable (chmod a+x /mnt/HD_a2/fun_plug.d/start/lighttpd.sh) and reboot
10.1) Alternative (probably better): start the lighttpd manually first an see if it works (see 11.1 for logfile locations) ;-)
11.) Connect to the lighttp /Oxyl server from a PC using the webbrowser of your choice (with my config: http://192.168.0.202:8001 )
11.1) If you cannot connect to the Oxyl server, we should check the lighttpd log file. Telnet to the DNS323, go to "/mnt/HD_a2/fun_plug.d/log/www/" and read "error.log" and "access.log"
12.) Use the webinterface to update all needed modules -> the oxyl server will download everything from the internet (hence the connection mentioned at the beginning). This can be painfully slow. Don't be alarmed. It works in the end.
12.1) Click on Oxylbox Setup
12.2) Click (again) on Oxylbox Setup
12.3) Click on Softwareupdate
12.4) Click on each available update

13.) Checkout the available plugins for Oxyl and install whatever you like
13.1) Click on Oxylbox Setup
13.2) Click (again) on Oxylbox Setup
13.3) Click on Softwareupdate
13.4) Download attachments and skins as you wish

14.) Configure the media locations within the Oxyl webinterface
14.1) Click on Oxylbox Setup
14.2) Click on Video-Browser
14.3) Click on "Basispfade browsing"
14.4) Enter "/mnt/HD_a2/media/video"
14.5) repeat for Audio-Browser
14.6) Check install by clicking on Oxylbox Setup and then Oxyl Check. You'll see a red error cross for "Apache version" (which is okay, as we're using lighttpd) and one for "Playlist Paths" (which is okay for me as I never use playlists)

15.) Fire up your SC200 and enter the IP and port of the new Oxyl server and connect
16.) Enjoy

I'm sure I missed some details, but that is the general course of action.

Let me know if it works for you!

Cheers,

Emacs

Last edited by Emacs (2007-08-17 21:06:17)

Offline

 

#10 2007-08-16 23:25:40

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

i have copied the attached file and put it in the HD_a2/fun_plug.d/etc folder (don't know if i have to change the 2 ip's in the conf file (192.168.0.202 and 192.168.0.101)).
Don't really know what i shoud do in the oxyl config file (even with link, do i start from 15. or earlier? i"m guessing i have to change /opt/share into /mnt/HD_a2)
All the rest (your instruction are crystal clear, so thx...)

Offline

 

#11 2007-08-17 09:21:48

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hi erostiff,

the 192.168.0.202 is the IP address of my DNS323. You have to change this to the IP address of your of DNS.
The 192.168.0.101 is mentioned in a line which is commented (the '#' at the beginning of the line) - meaning this line is ignored by lighttpd.

As far as the linked NSLU2 description is concerned, yep, you're right. Everthing before step 15 is relating to the setup of an apache webserver - which we won't use (lighttpd is used instead).
On a second thought - maybe we should skip that installation. I'll post my Oxyl "functions.inc" file here later today.

One thing came to my mind last night: when I had the initial Oxyl running and went for the online update, it took ages. So don't be alarmed if that happens on your end too. It ran through fine after all.

Cheers,

Emacs

Offline

 

#12 2007-08-17 11:11:18

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

success (or at least almost): i could access the web interface and i changed the functions.inc myself (but for the how-to it would be an addition). It's updating now and i will look into the plugins later.
Maybe one important (i have searched a while for this, stupid as it is) suggestion for the how-to: if you are going to use fonz fun_plug, make sure you install the php add-on!!!

Last edited by erostiff (2007-08-17 11:24:27)

Offline

 

#13 2007-08-17 11:23:04

HerbertH
Member
Registered: 2007-08-16
Posts: 14

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hi Emacs,

thanks for this detailed instructions. I will try to do this. Can something happen to the DNS because of this changes?

Thanks Herbert

Offline

 

#14 2007-08-17 11:30:54

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

erostiff wrote:

suggestion for the how-to: if you are going to use fonz fun_plug, make sure you install the php add-on!!!

Consider it done ;-)

Cool to hear that it is working for you too !

Cheers,

Emacs

Offline

 

#15 2007-08-17 11:31:57

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

HerbertH wrote:

Can something happen to the DNS because of this changes?

No, not really. The critical step is to get Fonz' fun_plug running - but that is rather simple and I don't see how you could harm your DNS323 with it.

Cheers,

Emacs

Offline

 

#16 2007-08-17 11:39:44

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Emacs wrote:

Consider it done ;-)
Cool to hear that it is working for you too !

thanks for the excellent help !

Greetz
Erostiff

edit: found an error while browser in the web interface (while adding content path)

Fatal error: Call to undefined function utf8_decode() in /mnt/HD_a2/www/oxyl/common/functions.inc on line 745

i'm also @ work now, so i can't test it with the showcenter, but i'm guessing something is still wrong...
any ideas?

Last edited by erostiff (2007-08-17 12:57:04)

Offline

 

#17 2007-08-17 13:37:10

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hi Emacs,

because of my previous error (utf8) i was looking around and when i install fonz's php-with_gd (instead of normal php) i can't access the web interface anymore, but i believe i'm gonna need gd to solve the utf8 error.
Any ideas?

greetz
Erostiff

Offline

 

#18 2007-08-17 14:03:23

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

erostiff wrote:

Fatal error: Call to undefined function utf8_decode() in /mnt/HD_a2/www/oxyl/common/functions.inc on line 745

i'm also @ work now, so i can't test it with the showcenter, but i'm guessing something is still wrong...
any ideas?

Yes, I remember that one - vaguely ;-)

There are two functions in the Oxyl "functions.inc". One is "utf8_decode()" and on is "utf8_encode()".
If I'm not mistaken the content of both functions needed to be removed (or commented out).

Found something on the net: add the following lines to the functions.inc


Code:

    function utf8_decode($text)
    {
         return $text;
    }

    function utf8_encode($text)
    {
         return $text;
    }

This is basically creating dummy functions for utf8 encoding which do essentially nothing but returning the unconverted string.


Cheers,

Emacs

Last edited by Emacs (2007-08-17 14:09:17)

Offline

 

#19 2007-08-17 14:06:10

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

erostiff wrote:

Hi Emacs,

because of my previous error (utf8) i was looking around and when i install fonz's php-with_gd (instead of normal php) i can't access the web interface anymore, but i believe i'm gonna need gd to solve the utf8 error.
Any ideas?

greetz
Erostiff

I tried that as well, since the libgd can be used for picture resizing (didn't work out in the end due to the limited CPU power).

To find the reason of the webinterface not showing I suggest to check the error.log and the access.log of lighttpd.
I remember that I had one occasion where the links to the individual icon graphics were wrong - but I believe that was related to a wrong ServerName in the lighttpd.conf.

In an older post Fonz reminded me that you need libpng and libjpeg as well when using the php-with_gd. Have you installed this packages?

Cheers,

Emacs

Last edited by Emacs (2007-08-17 14:16:25)

Offline

 

#20 2007-08-17 14:12:08

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

erostiff wrote:

because of my previous error (utf8) i was looking around and when i install fonz's php-with_gd (instead of normal php) i can't access the web interface anymore, but i believe i'm gonna need gd to solve the utf8 error.
Any ideas?

gd needs the libpng and libjpeg libraries.

Code:

/ # ldd /mnt/HD_a2/fun_plug.d/bin/php-cgi 
        libcrypt.so.0 => /lib/libcrypt.so.0 (0x4000d000)
        libpng12.so.0 => /mnt/HD_a2/fun_plug.d/lib/libpng12.so.0 (0x40029000)
        libz.so.1 => /mnt/HD_a2/fun_plug.d/lib/libz.so.1 (0x4004e000)
        libjpeg.so.62 => /mnt/HD_a2/fun_plug.d/lib/libjpeg.so.62 (0x40067000)
        libm.so.0 => /lib/libm.so.0 (0x4008a000)
        libc.so.0 => /lib/libc.so.0 (0x400a0000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x400f9000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)

Offline

 

#21 2007-08-17 14:17:00

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Hehe - he just did again ;-)

Cheers,

Emacs

Offline

 

#22 2007-08-17 14:18:18

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

Emacs wrote:

This is basically creating dummy functions for utf8 encoding which do essentially nothing but returning the unconverted string.

dummy's worked for the dummy ( = me!)
i can browse through my shared folders, can't wait to test this out tonight

thx again ;-)

Greetz
Erostiff

Offline

 

#23 2007-08-17 14:25:03

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

fonz wrote:

gd needs the libpng and libjpeg libraries.

accidentely found it out, just installed all your add-ons from fun_plug 0.3, great stuff, can't wait to see what's next for my little black box...

Last edited by erostiff (2007-08-17 14:25:24)

Offline

 

#24 2007-08-17 21:01:51

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

I have updated the description above with all the information I remember ;-)

Note point 7.3 about the libformat.so which escaped me before.

Cheers,

Emacs

Last edited by Emacs (2007-08-17 21:10:11)

Offline

 

#25 2007-08-21 13:35:18

erostiff
Member
Registered: 2007-07-14
Posts: 30

Re: Success: Oxyl media-server for Pinnacle ShowCenter 200 runs fine

I'm playing around with openshowcenter, using your instructions from oxyl to adjust everything. Seems to be working, i can play the movie files in the folder  (made a symbolic link)
Maybe worth a try

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB