We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
Very nice but i have a small correction. I have written it in a bit more detail that necessary for those who are still learning to use linux. TL;DR in the bottom.
The step where you explain how to change the name of the raspberry/shairplay unit, is not right. You write
"For instance, if we wanted to name it HiFiPi, we'd make the AP_NAME line look like this (by default, it's set to the Raspberry Pi's hostname):"
Here is how you say it should be done:
pi@raspberrypi ~/shairport $ sudo nano shairportAP_NAME=HiFiPi # look for this line in shairport file
This tries to edit the "shairport" file in the ~/shairport directory, which is not a plain text file. If you cat the file it will return a bunch of gibberish
Here's the correct way according to volumino, link: https://volumio.org/forum/c...
SSH into your Raspberry Pi / VolumioType: "sudo nano /etc/init.d/shairport"
That command edits the "shairport" file in the /etc/init.d/ folder. The defaults entry is the following (line 30 in /etc/init.d/shairport ):
Which will default the name of to the hostname of the raspberry pi, which you correctly stated.
TL;DR: These two lines (Step called: "For instance, if we wanted to name it HiFiPi, [...]")
pi@raspberrypi ~/shairport $ sudo nano /etc/init.d/shairportAP_NAME=HiFiPi # look for this line in shairport file
It's two different files
Thanks! I've updated the article to correctly reference /etc/init.d/shairport and clarified AP_NAME a bit.
I think when I originally composed this article, this specific instruction was provided *before* copying said file to the /etc/init.d/ directory.
By the way: The shairport setup worked perfectly (just followed step by step) as of 19th January 2017. System: Raspberry Pi B+OS: Raspbian Jessie.
I'm still new to this and i have set up pulseaudio like this: http://raspberrypi.stackexc...Even though those instructions are slightly outdated.
I ran into issues setting up the sound card on Raspbian Jessie
The problem is that i couldn't find the alsa-base.conf file on Jessie. (It's not there)
However I followed these instructions to get the usb-sound card (Focusrite 2i2) working:http://raspberrypi.stackexc...
Those instructions are supposedly the correct way to get sound card set up as default audio card.
Here's what i did:
First of all, check to see what order your cards have been loaded in:
$ cat /proc/asound/modules
0 snd_bcm2835 1 snd_usb_audio
I first create a file named /etc/modprobe.d/alsa-base.conf
Then write the following into the file:
# This sets the index value of the cards but doesn't reorder.options snd_usb_audio index=0options snd_bcm2835 index=1
# Does the reordering.options snd slots=snd_usb_audio,snd_bcm2835
Then reboot the raspberry and it should work. After reboot you can type
and see that the order has changed. Before I rebooted i wanted to make sure that pulseaudio starts automatically on boot.
The way you do that in Jessie is by:
editing or creating the file:
Put the following in the file:
[Service]Type=simplePrivateTmp=trueExecStart=/usr/bin/pulseaudio –system –realtime –disallow-exit –no-cpu-limit
Then ‘systemctl enable pulseaudio’ and ‘systemctl start pulseaudio’ – you now have a properly set up Pulseaudio daemon.
I found it in the comments in the thread called "pulseaudio start on boot?" on raspberrypi.orgLink. The guy found it somewhere else. Cheers. It's working great.
Looks like the most recent builds of Raspbian Jessie do not include a stock alsa-base.conf (oi!)
Thanks for noting your approach to compensate. I'll have to test myself on a fresh Raspian install to edit my instructions accurately.