Hi again!

Here as promised the start/configuration scripts, as a ZIP.

Notes on implementation:

0. Download JSW and copy it into a handy directory, such as /opt/jsw.
It takes about 2.3 MB of space. Now check out the tutorial here:
http://wrapper.tanukisoftware.org/doc/english/integrate.html. The rest
of this post concerns itself with Method 1. Note that to use Method 1
you need to know the name of the main softsqueeze class. This,
"com.slim.softsqueeze.Application", I have found out by unpacking the
JAR file. See http://wrapper.tanukisoftware.org/doc/english/faq.html#2
for more details.

1. Copy the softsqueeze files into their own directory, e.g.
/opt/softsqueeze. This makes things easier for file paths, etc. The
files are somewhere under the slimserver file tree, beneath
HTML/EN/html/softsqueeze. Copy everything.

2. Make sure that your new directory, /opt/softsqueeze, has the
additional subdirectories for Java Service Wrapper. These are
directories like lib/, conf/, logs/ and bin/.

3. Read the JSW tutorial mentioned above and make sure that you have
copied files into these directories correctly. This includes copying
wrapper.jar and libwrapper.so into lib/, and the executable wrapper
script into bin/.

4. An example of wrapper.conf is in the ZIP file from this post. You'll
need to check it: most configuration work goes into "wrapper.conf", but
these values will probably work for any system running softsqueeze in
/opt/softsqueeze, with the exception of the setting for the softsqueeze
"audio-mixer" parameter, which you should change to the correct one for
your system.

5. Also provided is the "softsqueeze" shellscript, which is provided by
JSW anyway. There is not much to change here, apart from the name of the
application, location of PID file, etc.

6. Lastly, it's recommended to start the shellscript via a symbolic
link from your rc.d directory. On a Debian system, this means something
like: "ln -s /opt/softsqueeze/bin/softsqueeze /etc/init.d/softsqueeze".
Don't forget to make it executable. To add it to your startup sequence,
run update-rc.d, for example as "update-rc.d softsqueeze defaults".

Hope some of this helps. Running softsqueeze on my VIA EPIA system,
with an 800Mhz CPU and 375MB of RAM I get  a load of about 0.5-0.7,
with 20-30% CPU usage from the Java process, the lower value being when
FLAC is played, since softsqueeze does this natively.

Cheers,


Ed


+-------------------------------------------------------------------+
|Filename: softsqueeze.tar.gz                                       |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=1397|
+-------------------------------------------------------------------+

-- 
nalfeshnee
------------------------------------------------------------------------
nalfeshnee's Profile: http://forums.slimdevices.com/member.php?userid=5523
View this thread: http://forums.slimdevices.com/showthread.php?t=24192

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to