I’m writing these instructions, mainly for a reminder for myself as I add more raspberry pi’s to my home audio setup.
1. Use SDformatter to format my sd card (set options to “on”)
2. Place card in Raspberry pi and hook up to a wired connection, then attach power cable (use a 2 amp power supply, or you will run into difficulties booting into the pi via wifi)
3. go to http://max2play/ and edit settings (change name if you wish). Turn off airplay and don’t autostart. Turn on squeezelite and autostart. Under squeezelite advanced options, select Use USB-DAC.
4. Install squeezbox server, if this will be the server, otherwise, leave it uninstalled.
5, Go to wifi settings and enter the SSID and password and check “load wifi interface”.
6. While connected via ethernet cable, reboot.
7. To fix a boot error (this may not be necessary as bugs are fixed in the future), open up SSH (I like putty) and enter in the server hostname (the name you changed in 3). Root login is root:max2play, or your can use pi:raspberry. Then do this:
mv 70-persistent-net.rules 70-persistent-net.rulesOLD
8. Enter this code:
sudo nano /etc/modprobe.d/alsa-base.conf
Change this line from this:
options snd-usb-audio index=-2
#options snd-usb-audio index=-2
The purpose for step 8 is to make the USB DAC the default device, but if there is no USB DAC, then it will default to the headphones or HDMI (HDMI if one is present).
9. Setup Wifi:
sudo apt-get update
sudo apt-get upgrade
Then, edit this file:
sudo nano /etc/network/interfaces
And add these lines if not already there (should already be there):
iface wlan0 inet dhcp
pre-up wpa_supplicant -B w -D wext -i wlan0 -c /opt/max2play/wpa_supplicant.conf
post-down killall -q wpa_supplicant
Sometimes, the above settings don’t work, so forcing the network settings can be done with this supplicant.conf file:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
and add these lines:
10. Bring up wifi
sudo ifup wlan0
11. Reboot with ethernet cable still plugged in
12. Disconnect cable, verify that wireless is working
14 verify that wireless is still working (I can’t figure out why, but the pi gives errors when loading after settings changed if not connected via ethernet cable)
15. shutdown, and move pi to intended location in the home, then bring it up again.