FAQ  •  Register  •  Login

Running server side on FreeBSD

<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Thu Sep 30, 2010 9:16 pm

Re: Running server side on FreeBSD

Hi guys

sorry for the delay getting back to you.

Mrks: I have serviio server running in background but that is thanks to freenas user-friendliness, not because of my bsd knowledge:) see picture attached

Ursus: you ll find my serviio.sh below.
One comment though: I could not connect to the bsd server (192.168.1.5) from the xp client, although I also modified the client side to refer to the ip 192.168.1.205.
I am happy to have someone to correct my config if needed.

Fafa

-------------------------------------
#!/bin/sh
### ====================================================================== ###
## ##
## Serviio start Script ##
## ##
### ====================================================================== ###

DIRNAME=`dirname $0`
PROGNAME=`basename $0`

# OS specific support (must be 'true' or 'false').
cygwin=false;
darwin=false;
linux=false;
case "`uname`" in
CYGWIN*)
cygwin=true
;;

FreeBSD)
linux=true
;;

Linux)
linux=true
;;
esac

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$SERVIIO_HOME" ] &&
SERVIIO_HOME=`cygpath --unix "$SERVIIO_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi

# Setup SERVIIO_HOME
if [ "x$SERVIIO_HOME" = "x" ]; then
# get the full path (without any relative bits)
SERVIIO_HOME=`cd $DIRNAME/..; pwd`
fi
export SERVIIO_HOME

# Setup the JVM
if [ "x$JAVA" = "x" ]; then
if [ "x$JAVA_HOME" != "x" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA="java"
fi
fi

# Setup the classpath
SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/serviio.jar:$SERVIIO_HOME/lib/derby.jar:$SERVIIO_HOME/lib/jcs.jar:$SERVIIO_HOME/lib/concurrent.jar:$SERVIIO_HOME/lib/freemarker.jar:$SERVIIO_HOME/lib/httpcore.jar:$SERVIIO_HOME/lib/jaudiotagger.jar:$SERVIIO_HOME/lib/jul-to-slf4j.jar:$SERVIIO_HOME/lib/jcl-over-slf4j.jar:$SERVIIO_HOME/lib/log4j.jar:$SERVIIO_HOME/lib/sanselan.jar:$SERVIIO_HOME/lib/slf4j-api.jar:$SERVIIO_HOME/lib/slf4j-log4j12.jar:$SERVIIO_HOME/lib/org.restlet.jar:$SERVIIO_HOME/lib/org.restlet.ext.xstream.jar:$SERVIIO_HOME/lib/xstream.jar:$SERVIIO_HOME/config"

# Setup Serviio specific properties
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/local/bin/ffmpeg -Dserviio.remoteHost=192.168.1.205"

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
SERVIIO_HOME=`cygpath --path --windows "$SERVIIO_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
SERVIIO_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CLASS_PATH"`
fi

# Execute the JVM in the foreground
"$JAVA" -Xmx384M $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@"
Attachments
untitled.JPG
untitled.JPG (62.32 KiB) Viewed 30623 times
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Thu Sep 30, 2010 10:40 pm

Re: Running server side on FreeBSD

Oops. Rewind everything, I need some sleep:
- I could not run serviio server in background, even using the nice ui of freenas
- I can run serviio server from a putty windows and then connect from windows ui to the shell-launched serviio.sh

The windows client works properly * except * that I have to play with the path of the media: whatever the path I enter (/mnt/data/somefolderswithmedia) the gui always get troubled with the windows and unix syntax (which is fine I guess) but also more strangely with the root of the media directory: it always adds up the unix path of the serviio.sh:

[LibraryUpdatesCheckerThread] Looking for removed/updated files in repository: /mnt/sgt160/serviio-0.4.2/bin/\\192.168.1.205\shared\MediaLibrary\Music

the workaround consists in playing manually with the media path, see picture.

So 2 questions:
- why does the background mode resist/what are we missing?
- a potential minor bug to be explored on the gui side?

thx!

fafa
Attachments
untitled2.JPG
untitled2.JPG (49.9 KiB) Viewed 30623 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Oct 01, 2010 4:54 pm

Re: Running server side on FreeBSD

you should just be able to add a path using the "Add path.." button and entering a path local on the server side, e.g. /home/user/videos. Not sure how are paths resolved on the NAS though.
<<

ursus

Serviio newbie

Posts: 3

Joined: Thu Sep 30, 2010 10:36 am

Post Sat Oct 02, 2010 7:22 am

Re: Running server side on FreeBSD

Thanks a lot! It's now running...
Connecting with my xp client doesn't work here either..
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Sat Oct 02, 2010 9:12 am

Re: Running server side on FreeBSD

1- @ ursus

To be able to connect from the xp client you have to:
a- modify the ServiioConsole.exe.vmoptions on the xp side, so that it includes the ip of the server. Just add the line
-Dserviio.remoteHost=192.168.xxx.yyy
in the text file

b- make sure the serviio.sh on the server side has the same "-D option" in the JAVA opts:

# Setup Serviio specific properties
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/local/bin/ffmpeg -Dserviio.remoteHost=192.168.xxx.yyy"

, notice the ip address in the two locations is the **same**, the one of the server.

That works for me.

2- @ zip
a. you are right, adding the resource through the 'add path' works ok, this is the 'add local' that mixes up nt and bsd syntax. I ll stick to the first one I guess!

b. I have a substantial media library and so far it has been taking more than 10 hours to go through it. So far I can browse all the folders structure but cannot launch any video, the server is temporarily unavailable my bravia says. I ll further check bravia's users experience as I have seen there is plenty.

c. I wonder how serviio handles two media with the same name, located in different folders. typical example is img1.jpg in folder 20100101 and img1.jpg in folder 20090101

Is the second one going to be skipped because already found in the library?

thx !
<<

ursus

Serviio newbie

Posts: 3

Joined: Thu Sep 30, 2010 10:36 am

Post Sat Oct 02, 2010 12:27 pm

Re: Running server side on FreeBSD

thanks ! It now works! Thank you very much for your help..

btw: I got it to autostart in freenas.. I've added a command in System|Advanced|Command scripts .
type postinit
cd /mnt/SystemData/serviio/serviio-0.4.2/bin && ./serviio.sh
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Sat Oct 02, 2010 7:43 pm

Re: Running server side on FreeBSD

yep, i got that working too
btw what is the difference with ./mnt/SystemData/serviio/serviio-0.4.2/bin/serviio.sh ?

can you play movies/transcode ?

only pictures and audio work for me so far
Last edited by fafa on Sun Oct 03, 2010 12:12 pm, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Oct 02, 2010 8:13 pm

Re: Running server side on FreeBSD

fafa wrote:a. you are right, adding the resource through the 'add path' works ok, this is the 'add local' that mixes up nt and bsd syntax. I ll stick to the first one I guess!

Add local is meant to add files 'local' to the console. For remote console there is the Add path option.

c. I wonder how serviio handles two media with the same name, located in different folders. typical example is img1.jpg in folder 20100101 and img1.jpg in folder 20090101


It's no problem, they'll both be added.
<<

jerrycheung

Serviio newbie

Posts: 1

Joined: Mon Nov 22, 2010 9:17 am

Post Mon Nov 22, 2010 9:59 am

Re: Running server side on FreeBSD

I have been able to run the Serviio server on Freenas by following the information above. Everything runs OK and I can browse and retrieve mpg videos from my upnp able media box. At the same time, I have also enabled Samba sharing on Freenas, so that my media box can also see the same mpg videos through the Samba share.

However I have a problem with listing of filenames with Chinese characters through Serviio (while there is no similar problem with the Samba share file listing). Note that the mpg videos can be played OK in both cases (just the Chinese characters in the filenames got scrambled on Serviio).

The files are created under WinXP/ntfs (and mounted directly without conversion on Freenas).

I have also run the Serviio server on my Windows PC (Chinese WinXP) with no problem of displaying the Chinese filenames on Serviio. But I rather like this Freenas+Serviio combination given its very small footprint that I can comfortably put everytime in a 1G CF card.

Grateful for any suggestions to enable proper display of filenames with Chinese characters through Serviio on Freenas.
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Fri Dec 10, 2010 7:17 am

Re: Running server side on FreeBSD

Hi,

also run serviio (0.4.2) on freenas using the above instruction.
working very well with samsung B7000 TV.
But, also have probelms with non latin (hebrew) folder names and files.
The media files are under UFS drive in my freenas which I access my windows 7 machine through smb share.
running serviio server on the windows 7 machine and accesing the same files through the smb is working ok and I can see all the files and folder both in latin and non latin. but using the serviio server on the freenas accessing the same mount point will show the non latin folder names on the TV but without the name and you can't access the folder.
BTW, fuppes on the same freenas pointing the same mount point can handle the non latin files/folders well.

Any insight?

Thanks, Great Project.
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Mon Dec 13, 2010 8:00 am

Re: Running server side on FreeBSD

Any suggestion?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 13, 2010 9:30 am

Re: Running server side on FreeBSD

can you give an example of what a folder looks like on the file system and how it's presented on the TV?

Also check Serviio log (the beginning), it should say what character encoding is used on your OS.
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Tue Dec 14, 2010 6:29 am

Re: Running server side on FreeBSD

thanks please see attached.

the log:

  Code:
2010-12-13 12:20:54,671 INFO  [MediaServer] ------------------------------------------------------------------------
2010-12-13 12:20:54,684 INFO  [MediaServer] Serviio DLNA media streaming server v 0.4.2 (rev. 683706a96104)
2010-12-13 12:20:54,684 INFO  [MediaServer] Petr Nejedly 2009-2010
2010-12-13 12:20:54,684 INFO  [MediaServer] http://www.serviio.org
2010-12-13 12:20:54,685 INFO  [MediaServer]
2010-12-13 12:20:54,685 INFO  [MediaServer] Java 1.6.0_07-The FreeBSD Foundation
2010-12-13 12:20:54,685 INFO  [MediaServer] OS FreeBSD i386 7.3-RELEASE-p3
2010-12-13 12:20:54,685 INFO  [MediaServer] File encoding: ISO-8859-1
2010-12-13 12:20:54,685 INFO  [MediaServer] ------------------------------------------------------------------------
2010-12-13 12:20:54,905 INFO  [RestletServer] Starting Restlet server exposed on 10.0.0.20:23423
2010-12-13 12:20:54,946 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2010-12-13 12:20:56,518 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2010-12-13 12:20:56,687 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2010-12-13 12:20:56,762 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2010-12-13 12:20:56,834 INFO  [ProfilesDefinitionParser] Added profile 'XBox 360' (id=3)
2010-12-13 12:20:56,851 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2010-12-13 12:20:56,875 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2010-12-13 12:20:56,934 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2010-12-13 12:20:56,955 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C-series)' (id=7)
2010-12-13 12:20:56,969 INFO  [ProfilesDefinitionParser] Added profile 'LG BD player' (id=8)
2010-12-13 12:20:57,063 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV' (id=9)
2010-12-13 12:20:57,162 INFO  [ProfilesDefinitionParser] Added profile 'Sony BD Player' (id=10)
2010-12-13 12:20:57,465 INFO  [VideoDeliveryEngine] Cleaning transcode engine and its data
2010-12-13 12:20:57,549 INFO  [WebServer] WebServer starting on port 8895
2010-12-13 12:20:57,562 INFO  [Device] Created UPnP Device with UUID: 461c11b5-b7d4-34d6-a97a-0cf6e58b040b, bound address: 10.0.0.20
2010-12-13 12:20:57,618 INFO  [CompositeCacheManager] Creating cache manager from config file: /cache.ccf
2010-12-13 12:20:57,628 INFO  [ThreadPoolManager] thread_pool.default PoolConfiguration = useBoundary = [true] boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4] keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4]
2010-12-13 12:20:57,630 INFO  [CompositeCacheConfigurator] Setting default auxiliaries to null
2010-12-13 12:20:57,630 INFO  [CompositeCacheConfigurator] No special CompositeCacheAttributes class defined for key [jcs.default.cacheattributes], using default class.
2010-12-13 12:20:57,632 INFO  [CompositeCacheConfigurator] setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2010-12-13 12:20:57,632 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.default.elementattributes], using default class.
2010-12-13 12:20:57,632 INFO  [CompositeCacheConfigurator] setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1292242857632, LastAccessTime = 1292242857632, getTimeToLiveSeconds() = -1, createTime = 1292242857632 ]
2010-12-13 12:20:57,633 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_resetafterplay.elementattributes], using default class.
2010-12-13 12:20:57,644 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_resetafterplay
2010-12-13 12:20:57,644 INFO  [CompositeCache] Constructed cache with name [local_resetafterplay] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2010-12-13 12:20:57,645 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_default.elementattributes], using default class.
2010-12-13 12:20:57,645 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_default
2010-12-13 12:20:57,645 INFO  [CompositeCache] Constructed cache with name [local_default] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2010-12-13 12:20:57,645 INFO  [CompositeCacheConfigurator] Parsed regions [local_resetafterplay, local_default]
2010-12-13 12:20:57,646 INFO  [CompositeCacheConfigurator] Finished configuration in 17 ms.
2010-12-13 12:20:57,646 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2010-12-13 12:20:57,647 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface 10.0.0.20
2010-12-13 12:20:57,649 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2010-12-13 12:20:57,650 INFO  [EventDispatcher] Starting EventDispatcher
2010-12-13 12:26:42,782 INFO  [UpdateChecker] Checking if a new version is available
2010-12-13 18:55:02,500 INFO  [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2010-12-13 19:42:19,360 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2010-12-13 19:42:19,365 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2010-12-13 19:42:19,372 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2010-12-13 19:42:36,846 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2010-12-13 19:42:36,847 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2010-12-13 19:42:36,851 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2010-12-13 19:58:35,041 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2010-12-13 19:58:35,044 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2010-12-13 19:58:38,889 INFO  [LibraryAdditionsCheckerThread] Added file 'עברית.JPG' to Library
2010-12-13 19:58:39,413 INFO  [LibraryAdditionsCheckerThread] Added file 'eng.JPG' to Library
2010-12-13 19:58:39,974 INFO  [LibraryAdditionsCheckerThread] Added file 'עברית.JPG' to Library
2010-12-13 19:58:40,766 INFO  [LibraryAdditionsCheckerThread] Added file 'eng.JPG' to Library
2010-12-13 19:58:40,767 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2010-12-13 19:58:52,548 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2010-12-13 19:58:52,554 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2010-12-13 19:58:52,699 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Tue Dec 14, 2010 6:35 am

Re: Running server side on FreeBSD

pictures of the SMB view in wodws of the main folder the english named folder and the hebrew named folder.

main_folder.jpg
main_folder.jpg (235.09 KiB) Viewed 21874 times


eng_folder.jpg
eng_folder.jpg (219.85 KiB) Viewed 21874 times


heb_folder.jpg
heb_folder.jpg (228.88 KiB) Viewed 21874 times
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Tue Dec 14, 2010 6:36 am

Re: Running server side on FreeBSD

pictures of what is seen on the tv of both the main folder and the english folder.
I can't enter at the tv to the hebrew folder but on the english folder I can play the hebrew file although it's name is not shown.

tv_main.JPG
tv_main.JPG (55.77 KiB) Viewed 21873 times


tv_eng.JPG
tv_eng.JPG (74.4 KiB) Viewed 21873 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 14, 2010 7:11 pm

Re: Running server side on FreeBSD

so if you log into the NAS, can you see the Hebrew characters of the folders properly? It might be the mounting is not configured right, as it works from the Windows box. You might also try adding
  Code:
-Dfile.encoding=UTF-8
to serviio.sh among the other -D parameters.
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Wed Dec 15, 2010 6:35 am

Re: Running server side on FreeBSD

Hi thanks,

but setting to UTF-8 doesn't seem to help (verfifed at the serviio log that it was really changed to UTF-8).

logging into the NAS shows
  Code:
?????
on the hebrew file names....
nevertheless the fuppes server know how to threat them with the current configuration (but I perfer serviio for the rest of the reasons...).

Any other insight?

thanks.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Dec 15, 2010 9:43 am

Re: Running server side on FreeBSD

I was not able to reproduce it on my Windows box - the file names got the proper Hebrew names. So it must be the way Java sees the mounted folders on the NAS. Not really sure what to try next, as I cannot reproduce it ;-(
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Fri Dec 17, 2010 7:07 am

Re: Running server side on FreeBSD

OK, thanks for now.
<<

clancy76

Serviio newbie

Posts: 8

Joined: Thu Dec 09, 2010 8:22 pm

Post Thu Dec 23, 2010 7:20 pm

Re: Running server side on FreeBSD

found the way!

just need to set the LANG to en_US.UTF-8. (I think that I already tried that before but maybe did somthing wrong anyway now it works...).
as I still don't know how to set this as global variable on freenas (it seems like it overwrites everyhting on boot...).
I just added this to the serviio.sh:

  Code:
LANG=en_US.UTF-8
export LANG


so my serviio.sh file is now as follows:

  Code:
#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  Serviio start Script                                                    ##
##                                                                          ##
### ====================================================================== ###

DIRNAME=`dirname $0`
PROGNAME=`basename $0`

# OS specific support (must be 'true' or 'false').
cygwin=false;
darwin=false;
linux=false;
case "`uname`" in
    CYGWIN*)
        cygwin=true
        ;;

    Darwin*)
        darwin=true
        ;;
       
    Linux)
        linux=true
        ;;
esac

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
    [ -n "$SERVIIO_HOME" ] &&
        SERVIIO_HOME=`cygpath --unix "$SERVIIO_HOME"`
    [ -n "$JAVA_HOME" ] &&
        JAVA_HOME=`cygpath --unix "$JAVA_HOME"`   
fi

# Setup SERVIIO_HOME
if [ "x$SERVIIO_HOME" = "x" ]; then
    # get the full path (without any relative bits)
    SERVIIO_HOME=`cd $DIRNAME/..; pwd`
fi
export SERVIIO_HOME

# Setup the JVM
if [ "x$JAVA" = "x" ]; then
    if [ "x$JAVA_HOME" != "x" ]; then
   JAVA="$JAVA_HOME/bin/java"
    else
   JAVA="java"
    fi
fi

# Setup the classpath
SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/serviio.jar:$SERVIIO_HOME/lib/derby.jar:$SERVIIO_HOME/lib/jcs.jar:$SERVIIO_HOME/lib/concurrent.jar:$SERVIIO_HOME/lib/freemarker.jar:$SERVIIO_HOME/lib/httpcore.jar:$SERVIIO_HOME/lib/jaudiotagger.jar:$SERVIIO_HOME/lib/jul-to-slf4j.jar:$SERVIIO_HOME/lib/jcl-over-slf4j.jar:$SERVIIO_HOME/lib/log4j.jar:$SERVIIO_HOME/lib/sanselan.jar:$SERVIIO_HOME/lib/slf4j-api.jar:$SERVIIO_HOME/lib/slf4j-log4j12.jar:$SERVIIO_HOME/lib/org.restlet.jar:$SERVIIO_HOME/lib/org.restlet.ext.xstream.jar:$SERVIIO_HOME/lib/xstream.jar:$SERVIIO_HOME/config"

# Setup Serviio specific properties
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/local/bin/ffmpeg -Dfile.encoding=UTF-8 -Dserviio.remoteHost=10.0.0.20"

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
    SERVIIO_HOME=`cygpath --path --windows "$SERVIIO_HOME"`
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
    SERVIIO_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CLASS_PATH"`
fi

LANG=en_US.UTF-8
export LANG

# Execute the JVM in the foreground
"$JAVA" -Xmx384M $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@"         






Thanks for the help, and hope that I also helped someone.
Next

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 16 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.