Post Mon Feb 03, 2014 11:40 pm

New to Unix/Linux Commands, Unable to run Serviio.sh

I've seen one or two topics on this but don't understand the explained answers simply from my lack of working knowledge with Unix (The research I've done only makes further disconnects between what I need to do, and what I have the ability to do).

So I'm attempting to install Serviio on a Western Digital MyBook Live 3TB NAS, I've already got ipkg fully set up along with the features pack, ect. Other programs are working fine and SSH access is correct.

I've been following http://wiki.serviio.org/doku.php?id=install_wd

I'm to the point of attempting to run Serviio.sh to test and come out with the error of:

  Code:
./serviio.sh: line 8: /usr/bin/dirname: cannot execute binary file
Exception in thread "main" java.lang.NoClassDefFoundError: org/serviio/MediaServer
Caused by: java.lang.ClassNotFoundException: org.serviio.MediaServer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
Could not find the main class: org.serviio.MediaServer. Program will exit.


I've got the Serviio user account created, though I noticed that I cannot log in as the serviio user through SSH (As I normally would log in with Root as my user) I have a feeling that is problem number 1. So I googled some information on users to see what I could determine about potential permissions as I've read this error comes from lack of access of Serviio being able to run the .jar file. The most I could figure out to see was to view the passwd list:

  Code:
BearCloud:/etc# $ cat /etc/passwd
-bash: $: command not found
BearCloud:/etc# cat passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data,,,:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:99:1000:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin
ntp:x:102:104::/home/ntp:/bin/false
mysql:x:104:108:MySQL Server,,,:/var/lib/mysql:/bin/false
statd:x:105:65534::/var/lib/nfs:/bin/false
avahi-autoipd:x:106:109:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
messagebus:x:103:106::/var/run/dbus:/bin/false
avahi:x:107:110:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
ftp:x:108:1001:ftp daemon,,,:/srv/ftp:/bin/false
Debian-exim:x:109:104:Debian exim,,,:/nonexistent:/bin/false
daapd:x:501:1000:forked daap daemon,,,:/shares:/bin/sh
guest:x:500:1000::/shares:/bin/sh

ledgetheorc:x:999:1000:System Administrator,1,,:/shares:/bin/sh
Danoindigo:x:1000:1000:Danny,2,,:/shares:/bin/sh
Guest:x:1001:1000:Guest,3,,:/shares:/bin/sh
serviio:x:1002:1003::/home/pc5dczcbl5yt:/bin/sh


BearCloud is the name of the NAS and I see serviio as a user, and it does have a user folder where I can navigate to the Serviio.Sh, though I'm not sure what to change or how to even change something as I can't find what terminology I need to accomplish giving the serviio user root access (Which I assume is what it needs).

So, I'm at a loss. Not sure what to do from here, JRE is installed, and I've re-installed it to double check. (Not sure if it's normal or not, but it does ask to install the Lib bits of it without authentication, is that a potential problem?)

Any help, answers or further knowledge is much appreciated. I'm learning as I go here with Unix.