Nohup bash -c "xinit /xinit-script.The open-source and cross-platform PulseAudio sound system has been updated recently to version 11, a major release adding numerous new features and improvements to the audio to make it sound better on your favorite GNU/Linux distribution. I recommend to use it as user pi, since this is the user all our audio daemons will run.Īnd you’re done pairing with 34:D2:XX:XX:XX:XX PulseAudio/Bluetooth SetupĪdd the following to the /etc/rc.local # bluetooth pulseaudio You can use bluetoothctl to configure new bluetooth devices. Vi /etc/machine-info PRETTY_HOSTNAME=device-name To set a global default name you can configure the following To add configure each bluetooth devices you’ll need their mac address.īluetoothctl will show your devices (internal and usb device) pulling the usb stick out and plugging it in again can help you which one is the internal one and which one is the external one.Įach devices has it’s own configuration beneath /var/lib/bluetooth//settings The usb bluetooth stick gets the name you want your bluetooth devices connect to. To avoid conflicts with the internal raspberry-pi bluetooth module I recommend to give the internal bluetooth module the hostname of the raspberry pi. Nohup bash -c 'while true do su -c "shairport-sync" -l pi sleep 5 done' &īluetooth Sink Configure Bluetooth USB Stick Make startable withour systemd (systemd doesn’t work in this particular pulseaudio setup)Īdd the following to /etc/rc.local # shairport audio configure -sysconfdir=/etc -with-alsa -with-pa -with-avahi -with-ssl=openssl -with-metadata -with-soxr #-with-systemd
#Pulseaudio airplay install
Sudo apt-get install -y xmltoman autoconf automake libtool libdaemon-dev libasound2-dev libpopt-dev libconfig-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev libpulse-dev While true do su -c "DISPLAY=:1 pulseaudio -v" -l pi sleep 5 done Xvfb xinit dbus and dbus-x11 are needed for pulseaudio-module-bluetooth to workĪdd user pi to the needed groups sudo usermod -aG pulse,pulse-access,lp piĪdd a new file with the following content and make it executable /xinit-script.sh #!/bin/bash Sudo apt-get install -y alsa-base alsa-utils pulseaudio pulseaudio-module-bluetooth bluez bluez-tools xvfb xinit dbus dbus-x11 Sudo apt-get install -y build-essential git
#Pulseaudio airplay update
Install the follwoing sudo apt-get update Pulseaudio and shairport-sync will run as user pi and will be started via an entry in /etc/rc.local
#Pulseaudio airplay android
Use pulseaudio (Amazon Echo wasn’t able to play sound via bluez-alsa, but Android was)