******************************************
Setting up Waveinput plugin & PulseAudio
******************************************
*1.* Make sure that Squeezebox Server is running on your computer and
you can successfully connect site localhost:9000. Afterwards, you need
to add your computer to be a new remote library for your SB Touch.
On your SB Touch, go to:
Settings -> Advanced -> Networking -> Remote Libraries -> Add New
Library -> <Your computer's local IP address>
And on your computer, open linux terminal and type:
Code:
--------------------
ifconfig
--------------------
and you should see information about your network. Something like
"Eth0" or "Eth1"... Check line which says "inet addr:<IP Address>". On
local network, with a router, it starts as "192.168.XXX.XXX". This is
the IP you set to be your new remote library for SB Touch. E.G. My
remote library address is 192.168.0.102.
*2.*Open Squeezebox Server page on your web browser (localhost:9000)
and get list of connected Squeezebox devices. Make sure your Squeezebox
Touch is powered on and connected to your local network. You should be
connected to your SB Touch automatically. If not, see the list of
available Squeezeboxes on the top-right corner on front page. Once you
have selected your Squeezebox Touch, click on Settings, bottom-right
corner. A new window is opened.
*3.*On Settings window, Go to -> Plugins -> Scroll down the list, you
should see two check-boxes. Check the latter box, saying something
similar to "Show all 3rd party plugins". Then click Apply on
bottom-right corner. You may get warnings about non-supported and
unstable plugins. Don't care, click OK and go ahead. Restart if asked.
Reload the page, pressing F5 or reopen the Settings window. Scroll down
the Plugins list and you should see "WaveInput (v.1.04)". Enable/Check
it and again, click Apply. Restart if asked.
*4.* Many steps still to go on, and now starts the first tricky part:
You need to locate a folder named "Plugins" on your computer, used by
Squeezeboxserver.
Usually this folder locates at "/usr/share/squeezeboxserver/Plugins/",
linked to "/var/lib/squeezeboxserver/Plugins"
If you're lost, type (in terminal):
Code:
--------------------
sudo locate squeezeboxserver/Plugins
--------------------
Be aware, folder -Plugins- might locate elsewhere, too. Other possible
locations are "/usr/local/squeezecenter/Plugins" and
"/opt/squeezecenter/Plugins", according to Slimdevices wiki page. Mine
locates at "/usr/share/squeezeboxserver/Plugins/"so I use this location
as an example on further steps below. *If your Plugins -folder locates
elsewhere, use its' location on further steps - instead of mine. Keep
in mind while reading!*
*5.* Download Waveinput plugin from 'here'
(http://code.google.com/p/bpaplugins/downloads/list) ("WaveInput for
Linux V1.04", current release at the moment). Be sure you download
Linux version, not Windows one.
*6.* Once you have downloaded the plugin, open and extract it. Copy
folder -WaveInput- to Squeezeboxserver's Plugins folder, described on
step 3. You may need root priviledges to do that. If you are not sure
where to find folder -WaveInput-, run command:
Code:
--------------------
sudo find / -name "WaveInput"
--------------------
and you'll get the location.
You can use either Nautilus/similar folder browser or terminal to copy
folders and files.
-Method 1)- Whether you use Nautilus, type (in terminal):
Code:
--------------------
sudo nautilus
--------------------
And then copy-paste folder -WaveInput- to folder -Plugins- as you'd do
in Windows environments.
-Method 2)- or using terminal, type:
Code:
--------------------
sudo cp -R <LOCATION_OF_EXTRACTED_WAVEINPUT_FOLDER>
<SQUEEZEBOXSERVER_PLUGINS_FOLDER>
--------------------
For example:
Code:
--------------------
sudo cp -R /home/fincer/Downloads/WaveInput
/usr/share/squeezeboxserver/Plugins/
--------------------
In terminal mode, be aware! Uppercase and lowercase letters matter on
Linux! It must be "WaveInput" instead of "waveinput" or "WAVEINPUT"
etc.
Check contents of Squeezeboxserver Plugins folder by typing:
Code:
--------------------
ls -a /usr/share/squeezeboxserver/Plugins
--------------------
The output should be something like:
Code:
--------------------
. .. WaveInput
--------------------
(Notice: "/usr/share/squeezeboxserver/Plugins" is actually a link to a
"/var/lib/squeezeboxserver/Plugins". However, you can still copy folder
WaveInput to "/usr/share/squeezeboxserver/Plugins", since it seems to
add files also into "/var/lib/squeezeboxserver/Plugins")
*7.* Once the folder is successfully copied, then we need to configure
users and groups to meet our needs. You need to...
...add yourself and squeezeboxserver to the following groups: audio,
pulse-access
...add yourself to group "gdm"
...make sure that user -pulse- is a part of group -audio-
To do this all, type the following code in terminal:
Code:
--------------------
sudo nano /etc/group
--------------------
Now you see all groups on your Linux computer.
To add users to groups, simply write them there. Examples:
-audio:x:29:_fincer,pulse,squeezeboxserver_
gdm:x:119:_fincer_
pulse-access:x:115:_fincer,squeezeboxserver_-
Of course, "fincer" is just my account name on my Linux computer. You
NEED to use your own instead!
Once you have modified the groups, save your group -file by pressing
CTRL+o, Enter and CTRL+x, one after another.
*8.* Type in terminal:
Code:
--------------------
sudo chown -R squeezeboxserver.audio /usr/share/squeezeboxserver/Plugins
sudo chmod -R 766 /usr/share/squeezeboxserver/Plugins
--------------------
and then
Code:
--------------------
sudo apt-get install pavucontrol paprefs ; sudo apt-get update ; sudo
apt-get upgrade
--------------------
The latter command will install -PulseAudio Volume Control- and
-PulseAudio Preferences- applications and will update all packages if
needed. Let me say, these two applications are "must be" so you can get
Waveinput & Pulseaudio to function correctly each other.
*9.* Type in terminal:
Code:
--------------------
sudo dpkg --get-selections | grep pulse
--------------------
Make sure you have following packages installed with their
dependencies:
-pulseaudio pulseaudio-esound-compat pulseaudio-module-gconf
pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils-
I have also packages
-gstreamer0.10-pulseaudio libpulse-browse0 libpulse-dev
libpulse-mainloop-glib0 libpulse0-
installed. Not sure whether they are needed or not, but install them (+
dependencies) _later_ if you face troubles with configuring PulseAudio &
WaveInput. To install packages, use command "sudo apt-get install
<packages list>" in terminal.
*10.* Great! If you are here without having get errors, the worst part
is over. Reboot your computer.
*11.* After reboot, open PulseAudio Preferences (paprefs).
- Go to Network Access tab -> Enable checkbox saying
*Make discoverable network
sound devices available locally
- Go to Network Server tab -> Enable checkboxes saying
*Enable network access to local
sound devices,
*Allow other machines on the
LAN to discover local sound devices
*Don't require authentication
- Go to Multicast/RTP tab -> Enable checkboxes saying
*Enable Multicast/RTP Sender
*Create separate audio device
for Multicast/RTP
- Finally, press Close
*12.* Open your web browser and go to address localhost:9000
If you get "site not found", wait a moment and refresh the page. If you
don't still have access, type in terminal:
Code:
--------------------
sudo apt-get install lsof ; sudo lsof -i
--------------------
This will install a command called List Open Files (if not installed
already) and executes "sudo lsof -i" to get List of current IP Sockets.
You should see a few lines similar to
"squeezebo 1492 squeezeboxserver 15u IPv4 11274 0t0 TCP
*:9000 (LISTEN)"
Squeezebox Server is running and listening to port 9000 which is
extremely important. It must listen to port 9000. Otherwise, if you
don't see any lines referring to Squeezeboxserver by lsof -command,
type (in terminal):
Code:
--------------------
/etc/init.d/squeezeboxserver restart
--------------------
(You may get some error messages while starting squeezeboxserver. You
may need find help from topics/forums, depending on your problems. I
had one and resolved it simply by googling.)
And after waiting a moment, type in terminal:
Code:
--------------------
sudo lsof -i
--------------------
*13.* Once you're in, make sure you have WaveInput plugin installed: Go
to Settings -> Plugins -> WaveInput should be on Active Plugins, and
checked/enabled. If not, repeat step 2.
*14.* You have WaveInput plugin enabled both on your Squeezebox Touch
and Squeezebox Server, finally. Navigate to Squeezeboxserver front page
on web browser. Locate Internet Radio -> Tune in URL -> type
-wavin-:-pulse-
*15.* Make sure that -wavin-:-pulse- playback doesn't pause at any
costs on Squeezeboxserver! If it does, make sure that you have
PulseAudio Server running on your computer (see instructions below),
PulseAudio Preferences settings are OK, you are connected to local
network and you have good connection signal. Continual and strange
buffering points at problems with your Network/WiFi signals. (see Edit
& Edit2, my previous reply)
Type "sudo lsof -i" in terminal and see if "pulseaudio" is listed there
and it listens to ports 4713 & 16001 (LISTEN). (Notice: You may need to
wait a moment after lines saying "pulseaudi" will appear)
Otherwise, type "/etc/init.d/pulseaudio restart" and repeat command
"sudo lsof -i". If PulseAudio Server seems still not to run, make sure
you have all required packages installed, see step 9.
*To be continued...*
--
Fincer
------------------------------------------------------------------------
Fincer's Profile: http://forums.slimdevices.com/member.php?userid=44701
View this thread: http://forums.slimdevices.com/showthread.php?t=49584
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins