Skip to content

Instantly share code, notes, and snippets.

@biggyspender
Last active October 22, 2018 13:33
Show Gist options
  • Save biggyspender/cd6b5d5a566261ce22db to your computer and use it in GitHub Desktop.
Save biggyspender/cd6b5d5a566261ce22db to your computer and use it in GitHub Desktop.
install mopidy/mopify/moped with libspotify on Raspberry Pi 2 fresh Raspbian image
sudo apt-get update
sudo apt-get upgrade -y
mkdir ~/mopidytemp
cd ~/mopidytemp/
wget https://apt.mopidy.com/mopidy.gpg
sudo apt-key add mopidy.gpg
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/mopidy.list
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install python-pip
sudo apt-get install mopidy
sudo apt-get install mopidy-spotify-tunigo
sudo pip install --upgrade six
sudo pip install Mopidy-Mopify
sudo pip install Mopidy-Moped
sudo pip install Mopidy-WebSettings
sudo nano /etc/modprobe.d/alsa-blacklist.conf
#disable on-board soundcard:
#add following
blacklist snd_bcm2835
sudo nano /etc/modprobe.d/alsa-base.conf
line at bottom (names from /proc/asound/modules) to set usb soundcard as default
options snd_usb_audio index=0
#if there's anything snd_bcm2835 related, comment it
#options snd_bcm2835 index=1
sudo nano /etc/asound.conf
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
sudo nano /etc/mopidy/mopidy.conf
[logging]
config_file = /etc/mopidy/logging.conf
debug_file = /var/log/mopidy/mopidy-debug.log
[local]
enabled = true
data_dir = /var/lib/mopidy/local
media_dir = /var/lib/mopidy/media
playlists_dir = /var/lib/mopidy/playlists
[http]
hostname = 0.0.0.0
[mpd]
hostname = 0.0.0.0
[spotify]
username = [your-spotify-premium-username]
password = [your-spotify-premium-password]
enabled = true
bitrate = 320
[gmusic]
enabled = false
[tunein]
enabled = true
[podcast]
enabled = true
[internetarchive]
enabled = true
[youtube]
enabled = false
[audioaddict]
enabled = false
quality = 40k
difm = false
radiotunes = false
rockradio = false
jazzradio = false
frescaradio = false
[somafm]
enabled = true
[soundcloud]
enabled = false
[audio]
output = alsasink
[dirble]
enabled = false
[scrobbler]
enabled = false
[subsonic]
enabled = false
ssl = no
sudo dpkg-reconfigure mopidy
sudo reboot
@tatoosh
Copy link

tatoosh commented Jul 13, 2015

How do get music with Hifiberry DAC+ !?

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