Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.43 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.43 KB

MediaPi

This repo contains configuration files to create a small standalone multimedia node that can play/stream music via:

  • Bluetooth A2DP
  • ZeroConf PulseAudio streaming

Installation Instruction

Clone this repo into the default user /home/alarm/media-pi. Copy everything from etc into /etc

Command sequence

Run as root:


git clone https://github.com/MasterQ32/media-pi

cp -r media-pi/etc /etc

useradd --home-dir /var/run/pulse pulse
gpasswd -a pulse audio

pacman -Syu alsa-firmware alsa-lib alsa-utils avahi pulseaudio pulseaudio-zeroconf bluez python-dbus python-gobject pulseaudio-bluetooth brcm-patchram-plus

echo "dtparam=audio=on" >> /boot/config.txt
echo "audio_pwm_mode=2" >> /boot/config.txt

systemctl --global disable pulseaudio.service pulseaudio.socket

systemctl enable avahi-daemon
systemctl enable pulseaudio
systemctl enable bluetooth
systemctl enable bluetooth-agent
systemctl enable bluetooth-driver

Changing bluetooth device name

bluetoothctl system-alias 'MediaPi'

Further Reading