gharris999 wrote: > Installing squeezeslave: > > This is the method I use and I think it's appropriate for a headless > server like the one you're configuring. There are other ways of doing > this, of course. > > Start by making sure you've installed the basic development > environment: > > > Code: -------------------- > > > sudo apt-get update > sudo apt-get install build-essential autoconf subversion gettext autopoint libasound2-dev > -------------------- > > > > As a regular user with sudoers privilages (but not root), check out a > copy of the latest code: > > > Code: -------------------- > > > cd ~ > > mkdir squeezeslave > > svn checkout http://squeezeslave.googlecode.com/svn/squeezeslave/trunk/ squeezeslave > -------------------- > > > > Use this script to build squeezeslave. It creates a version of the > makefile that disables the display stuff, which is appropriate as your > server is headless. > > ~/squeezeslave_build.sh: > > Code: -------------------- > > > #!/bin/sh > > # Switch to the squeezeslave dir with makefiles.. > eval cd "~${USER}/squeezeslave/squeezeslave" > > echo "Building from $(pwd)" > > # 64bit? > if [ $(uname -m) = 'x86_64' ]; then > SOURCE='makefile.linux26-i64-alsa-display' > TARGET='makefile.linux26-i64-alsa-nodisplay' > else > SOURCE='makefile.linux26-alsa-display' > TARGET='makefile.linux26-alsa-nodisplay' > fi > > # Can't find the makefile.. > if [ ! -e "$SOURCE" ]; then > echo "What the.." > exit 1 > fi > > # Prepare a nodisplay makefile > cp -f -v -p "$SOURCE" "$TARGET" > > echo "Removing display support from ${TARGET}.." > > # Comment out: > # CFLAGS+=-DINTERACTIVE > sed -i -e 's/^\(CFLAGS.*DINTERACTIVE\)$/#\1/' "$TARGET" > > # Comment out: > # LIBS+=-lcurses -llirc_client > sed -i -e 's/^\(LIBS.*llirc_client\)$/#\1/' "$TARGET" > > # Make sqeezeslave > make -f "$TARGET" realclean > make -f "$TARGET" > > # If make successful, copy the executable to /usr/local/bin > if [ -x ./bin/squeezeslave ]; then > echo "Build completed. Installing to /usr/local/bin.." > sudo cp -v ./bin/squeezeslave /usr/local/bin/squeezeslave > if [ -x /usr/local/bin/squeezeslave ]; then > echo 'Squeezeslave installed. Squeezeslave reports these audio devices on this system:' > /usr/local/bin/squeezeslave -L > fi > fi > > echo 'Done!' > -------------------- > > > > If the initial build attempt failed, consult Ralph's wiki page for > more instructions: > http://wiki.slimdevices.com/index.php/SqueezeSlave#Linux_build_instructions > > If the build did succeed, then the script will have prompted you for > your password and then copied the squeezeslave executable to > /usr/local/bin and then asked squeezeslave to report on what audio > devices it sees on the system. > > Assuming that all that went well, you can then use the script in the > attached zip file to create and configure a service instance for > squeezeslave. This script used a text "gui" to try to make picking > the configuration parameters easy. The important parameters > configured in the service are 1). a fake "mac address" which sets this > squeezeslave as a player with a unique identity to SBS/LMS and 2). > picking the correct audio output device. You may need to experiment > with that last element in order to get things working. > > Once everything is set, you should be able to just forget about > squeezeslave. It will just "be there" running as a service in the > background. You can control it with: > > # sudo service squeezeslave start > # sudo service squeezeslave stop > # sudo service squeezeslave status > > ..and the SBS/LMS webUI should show the new squeezeslave "player" as > available.
Thanks very much. This all worked in the end! I had to remove my old Soundblaster card and use the system sound first - then it worked after a lot of fiddling with the settings! ------------------------------------------------------------------------ saltedlolly's Profile: http://forums.slimdevices.com/member.php?userid=46484 View this thread: http://forums.slimdevices.com/showthread.php?t=97014 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
