garym wrote:
> this thread may help:
> http://forums.slimdevices.com/showthread.php?93505-Squeezeplay-plays-up-to-192k
I spent most of yesterday trying to get this to work. The goal was to
have a player that is controllable via a web browser that needs no
intervention to set up.
So.... After a lot of effort, I got it set up. Here's a mini-howto:
You need multi-seat. Really. Pulseaudio requires an X client running,
and we want this to be invisible. So you need an X session in the
background. So set up kdm as your login manager (gdm can't do multiseat
right now).
Set up the user you want, use pavucontrol to configure the correct sound
device, make sure it all works through reboots! Make sure to add your
user to pulse-access and audio groups (I use ldap auth, and it doesn't
like that. The pulse-audio membership has to be stated in /etc/group.
Go figure.)
Then in kdmrc, set up the user you will use to autologin:
Code:
--------------------
[X-:3-Core]
AutoLoginEnable=true
AutoLoginLocked=true
AutoLoginUser=kitchen
ClientLogFile=.xsession-errors
ServerCmd=/usr/bin/Xvfb :3 -I
--------------------
Xvfb is a virtual frame buffer; it acts just like a real X client but
does not actually need any hardware. We autostart this session; that
takes care of starting pulse audio and all of the other stuff. The -I
option tells it to ignore all the options tht kdm throws at it; Xvfb
barfs on vtNN which kdm always adds.
Build squeezeslave. Google for it; it's in the slimdevices wiki. It's
a self-contained binary with no external libs; just copy it where you
want when you're done.
Lastly, in the desktop of your background user, set up squeezeslave to
start up on login. You want to use this invocation:
Code:
--------------------
/opt/squeezeslave/bin/squeezeslave -m 00:00:00:00:00:04
--------------------
The -m option sets a virtual MAC address for the squeezeslave; it shows
up in the squeeze server as "squeezeslave m+1". In the above example,
it would show up as squeezeslave 5. You do not need any of the other
options; in particlar --daemon makes it start up but produce no sound.
You can have multiple squeezeslaves, playing on multiple sound cards, as
long as each squeezeslave has a different mac address and connects to a
different sound card.
Volume control works, playlists work, everything works.
That's it. Yaay!
------------------------------------------------------------------------
cptdondo's Profile: http://forums.slimdevices.com/member.php?userid=55847
View this thread: http://forums.slimdevices.com/showthread.php?t=94875
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix