When I like to run several SBS's as services I've started to use
VirtualBox virtual machines, if you install Ubuntu Server and selects
the installation option for a virtual machine it's pretty slim so it
doesn't use too much extra resources. I think the plain OS works with
128MB memory assigned to the virtual machine, possibly even less. The
advantage with using virtual machines is that you can use the standard
installation scripts if you like to.

This is what I have in my environment:
1. 
A virtual machine which runs a standard SBS 7.4.1 installed with
apt-get

2. 
A virtual machine which runs svn version of 7.5, this has a row like
this in /etc/rc.local

Code:
--------------------
    
  su - myuser -c "screen -S squeezecenter75 -d -m squeezecenter75"
  
--------------------

And the squeezecenter75 script which is in /home/myuser/bin looks like
this:

Code:
--------------------
    
  #!/bin/sh
  export PERL5LIB=$PERL5LIB:/opt/squeezecenter75:/opt/squeezecenter75/CPAN
  export PATH=/opt/squeezecenter75:$PATH
  slimserver.pl --cachedir /var/lib/squeezecenter/Cache75 --prefsdir 
/home/myuser/Configurations/Prefs75 --logdir /var/lib/squeezecenter/Logs75 $*
  
--------------------

I've selected to put the prefs dir under /home because that what's
included in my regular backups.

The /opt/squeezecenter75 directory is just svn checkout of
http://svn.slimdevices.com/repos/slim/7.5/trunk/server/

3. 
On the development machine which is also a VirtualBox virtual machine I
don't run them as sevices, I just start the server I like to start
manually in a terminal window. 

In the development setup I have a script like the squeezecenter75
script mentioned above for each configuration I like to have easy access
to. For example, a squeezecenter75_small script that points to a
specific prefs directory which is configured towards a Music Folder with
just a few albums.


The standard debian installation scripts puts "log", "cache" and
"prefs" all under /var/lib/squeezeboxserver, so I'm guessing you should
do the same if you like to have a setup as similar to a real
installation as possible. If you like a fully linux compliant
installation, you probably want the "log" dir somewhere under /var/log/


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=73689

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

Reply via email to