Page 1 of 1

Installing on Western Digital My Book World II (White Light)

PostPosted: Mon Feb 28, 2011 8:57 am
by dag0
Hello!

Anyone here managed to install serviio on a Western Digital My Book World II (White Light)? I want serviio on my NAS because serviio really rules! :)

What I did is:
Installed this version of java and followed his instructions.
http://www.raymeskhoury.com/blog/java-o ... d-edition/

mkdir /usr/local/serviio/
cd /usr/local/serviio/
wget http://download.serviio.org/releases/se ... nux.tar.gz
untar -xf serviio-0.5-linux.tar.gz

When I try to run serviio.sh I get the following:
  Code:
/usr/local/serviio # ./serviio.sh
 ARG: -Xmx384M
 ARG: -Djava.net.preferIPv4Stack=true
 ARG: -Dderby.system.home=/usr/local/library
 ARG: -Dserviio.home=/usr/local
 ARG: -classpath
ARG: -Xcvmorg.serviio.MediaServer
java.lang.ClassNotFoundException: org/serviio/MediaServer
        at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
        at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
        at sun.misc.Launcher$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.CVM.runMain(Unknown Source)

perhaps my java-version not suiting for serviio? I had a look at the java DL-page,

http://www.oracle.com/technetwork/java/ ... 35769.html

but there doesn't seem to be a java for my ARM9-processor?
  Code:
cat /proc/cpuinfo

/usr/local/serviio # cat /proc/cpuinfo
Processor       : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 183.09
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 32768
I assoc         : 4
I line length   : 32
I sets          : 256
D size          : 32768
D assoc         : 4
D line length   : 32
D sets          : 256

Hardware        : Oxsemi NAS
Revision        : 0000
Serial          : 00000ba97db76880

It says there: "Java SE for Embedded Products - at least 70MB for Java. Devices having at least 70-80MB for Java can use the Standard Java SE platform products." Can I install this on my MyBook World? I dont know how. My Linux is not rpm-based and I don't know how to install this "bin"-package.

Thanks in advance!
dag0

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Mon Feb 28, 2011 10:10 am
by zip
looks like the .jar files in lib folder are on on the classpath for some reason

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Tue Mar 01, 2011 11:10 am
by dag0
Hi!

Thanks zip for your answer but could you please be a little bit more precise? I don´t know anything about java! :( What do I have to change?

I installed the package jikes as mentioned above

  Code:
ipkg files  jikes
Package jikes (1.22-1) is installed on root and has the following files:
/opt/bin/jikes
/opt/include/jikesapi.h
/opt/share/doc/jikes-1.22/license.htm
/opt/man/man1/jikes.1

and followed this instructions: http://www.raymeskhoury.com/blog/java-o ... d-edition/
  Code:
echo /opt/bin/jikes -classpath /opt/share/jamvm/classes.zip:/opt/share/classpath/glibj.zip $* > /opt/bin/javac
chmod u+x /opt/bin/javac

It says there: "The MyBook comes with a pre-installed stripped down JVM (to run the mionet software which I highly recommend you disable). To make it easier to use, make a symlink:"
  Code:
ln -s /usr/mionet/bin/cvm /opt/bin/java

Thanks,
Patrice

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Tue Mar 01, 2011 11:21 am
by zip
Reading the post it looks like it's an old version of Java anyway. Also Serviio is probably using features that are not included in hte embedded version of JRE, so you'd have to install a proper Java 1.6 on there. I'm not sure if it exists, but you might check out the other topics in this forum for some help.

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 11:19 am
by joaorsfonseca
dag0

Any progress on this thread? I'm searching for something like u, the difference is that i want to install serviio on my book live edition.

Thanks

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 11:45 am
by moltra
I use to do alot of playing around with a MBWE White light and I think it would be too slow and unreliable to run Serviio. I cannot count how many times I had to reload the firmware because MBWE could not take any kind of power without corrupting something on the MBWE. Plus I do not think the processor or the Net card is powerful enough to stream video. I know when I was copying files it was very very slow.

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 11:54 am
by joaorsfonseca
moltra

I use media server TwonkyServer over network. Seems to work with my wd tv player but when i try to play something on my samsung tv it doesn't work keep saying "invalid codecs" on my mkv movies... With serviion on my pc i do not have this problem.. So i want, if it is possible, install serviion on my book live edition..

THanks

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 12:48 pm
by moltra
I will try and go back through my favorites and see if I can find the old sites I use to go to for the MBWE. If I remember right there was a way to install a better java. I will look and see what I can find.

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 1:04 pm
by joaorsfonseca
I will be thankful.

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 1:06 pm
by moltra
I did a quick search and found a site I use to go to alot and followed some links on installing different hardware on the MBWE. I found that they have gotten Debian working on the MBWE. Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

With Debian I think you can update to Sun Java 1.6 .

Here is a link to upgrade your MBWE to debian by overwritting the current harddrive.

http://mybookworld.wikidot.com/forum/t-304045/how-to:debian-on-mybook-white-light

Here is a way to install Debian on a seperate harddrive.

http://mybookworld.wikidot.com/forum/t-308252/how-to:install-debian-on-a-clean-hard-drive-for-the-white-li.

I think I will have to dig my MBWE out and get a new harddrive and try this new system out. I have been looking for a server for my parents house.

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 2:51 pm
by dag0
joaorsfonseca wrote:moltra
I use media server TwonkyServer over network. Seems to work with my wd tv player but when i try to play something on my samsung tv it doesn't work keep saying "invalid codecs" on my mkv movies... With serviion on my pc i do not have this problem.. So i want, if it is possible, install serviion on my book live edition..
THanks

I am using Twonky successfully on my samsung LE40c650. So it should work with serviio concerning cpu and bandwith capacity.
I edited the clients.db of my twonkyserver on my NAS with the following:

  Code:
NA:Samsung LE40B650 DLNA 1.5
HH:DLNADOC/1.50
HP:chunked
XM:DLNA10
XM:DATETIME
DB:AUTO
DL:MP4DLNA
MT:mkv video/MP4V-ES
MT:avi,divx video/x-divx
MT:mp4 video/MP4V-ES
MT:mpeg,mpeg2,vdr,spts,tp,ts,m2ts video/mpeg
MT:ogg audio/x-ogg
MT:flac audio/flac
MT:mp1,mp2,mp3 audio/mpeg
MT:mp3 audio/mp3


Before perhaps you will have to upgrade to twonky6 (i did it successfully on my WD MyBook)
http://mybookworld.wikidot.com/forum/t-305396/

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Thu Jun 23, 2011 8:25 pm
by joaorsfonseca
moltra

Thanks but my book live already have debian..

dag0

i will try it.. by the way!
do have any problems with twonky licence? can u play mkv videos with subtitles on your samsung tv?

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Fri Jun 24, 2011 9:16 am
by dag0
joaorsfonseca wrote:i will try it.. by the way!
do have any problems with twonky licence? can u play mkv videos with subtitles on your samsung tv?

I bought a license for Twonky6 (15€ i think it was). Serviio supports external srt with samsung. Twonky not (i think). And: I incline to use a USB-HDD. The Samsung media-player supports chapters, resume(!), language-selecting (at least with vobs), much faster cueing - all this is missing with twonky dlna. And: My twonky on my NAS sometimes just crashes during playback or even more while cueing (sucks!)

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Fri Jun 24, 2011 10:01 am
by joaorsfonseca
The problem is that i onle have this drive, i don't have any usb.

I install serviion on my home server and it work fine in both wd tv live and my samsung tv. I want to install it on my my book live.. It is possible?

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Sat Dec 01, 2012 1:44 am
by matmat07
Sorry for reviving an old thread, but I would like to do the same. Any development on this?

Re: Installing on Western Digital My Book World II (White Li

PostPosted: Mon Dec 10, 2012 1:21 am
by matmat07
Tried myself at it using the WD live procedure. First to answer the OP original issue with java:
I did some research on that processor:
  Code:
he ARM926EJ-S processor implements the ARMv5TEJ instruction set

My guess was this meant it used ARMv5 and not ARMv( like you tough). So I went on and tried to install that version. What I did is unpack the files and add them to PATH (no sure how I should write this but I think you get the point). Then when I tried to start to start the script, and it told me it couldn't find the files in /usr/lib/jvm/java-6-openjdk/jre. My next try was to simply copy the whole folder I had extracted there.
It than work:
  Code:
2012-12-09 19:28:19,184 INFO  [MediaServer] File encoding: US-ASCII
2012-12-09 19:28:19,193 INFO  [MediaServer] Headless mode enabled: true
2012-12-09 19:28:19,194 INFO  [MediaServer] User home dir: /root
2012-12-09 19:28:19,195 INFO  [MediaServer] Temp dir: /tmp
2012-12-09 19:28:19,196 INFO  [MediaServer] ------------------------------------------------------------------------
2012-12-09 19:28:22,038 INFO  [RestletServer] Starting Restlet server exposed on port 23423
2012-12-09 19:28:23,492 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2012-12-09 19:28:54,421 INFO  [DBSchemaUpdateExecutor] Updating DB schema
2012-12-09 19:29:40,027 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2012-12-09 19:29:52,212 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)

I stopped it there. Then I had to make it run at start. That's where i'm stuck for today. The guide seems to be made for debian, so it will probably be easier if I try to install that instead. I think I've found some guide on that too while searching.
If anyone has an idea what I should do next i'm sure we would both be really glad