Skip to content

Instantly share code, notes, and snippets.

@rgov
Last active March 2, 2017 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgov/ae3a2ceb3bde964b8836d83c88b11924 to your computer and use it in GitHub Desktop.
Save rgov/ae3a2ceb3bde964b8836d83c88b11924 to your computer and use it in GitHub Desktop.

MusicBox From Scratch

Hardware: Raspberry Pi 3 Model B v1.2

Software: Raspbian Jessie Lite (2016-05-27)

Host OS: macOS Sierra

Chapter 1 - Install Raspbian

  1. Download Raspbian Lite: https://www.raspberrypi.org/downloads/raspbian/

  2. Install it to the SD card: https://www.raspberrypi.org/documentation/installation/installing-images/mac.md

  3. Insert SD card in Raspberry Pi, hook up Ethernet, and boot.

Chapter 2 - Network Configuration

The SSH user is pi and the password is raspberry

  1. Connect to the Wi-Fi network
$ wpa_cli
> add_network
0
> set_network 0 ssid "********"
OK
> set_network 0 psk "********"
OK
> enable_network 0
OK
<3>CTRL-EVENT-SCAN-STARTED 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>Trying to associate with SSID '********'
<3>Associated with **:**:**:**:**:**
<3>WPA: Key negotiation completed with **:**:**:**:**:** [PTK=CCMP GTK=CCMP]
<3>CTRL-EVENT-CONNECTED - Connection to **:**:**:**:**:** completed [id=0 id_str=]
> save_config
OK
  1. Change the hostname: sudo sed -i -e 's/raspberrypi/musicbox/' /etc/hosts /etc/hostname

  2. Reboot the device

Chapter 3 - Audio Configuration

  1. Add audio_pwm_mode=2 to /boot/config.txt to enable the higher quality audio driver (per this)

  2. Run speaker-test -c 2 to test that audio output is working

Chapter 4 - Mopidy Configuration

  1. Install Mopidy per https://docs.mopidy.com/en/latest/installation/debian/

  2. Configure Mopidy to run as a service: sudo systemctl enable mopidy

  3. apt-get install gstreamer1.0-plugins-bad && easy_install pip && /usr/local/bin/pip install mopidy-moped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment