Setting Up Mopidy, Ncmpcpp, and Spotify on Debian Buster (Updated)

  In Debian Buster, the main thing that caused me problems was that I had mpd installed, and it caused havic with, but once I uninstalled it, things started working. Here is the breakdown of what I did:

Add the archive’s GPG key: 

wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - 

Add the APT repo to your package sources: 

sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/buster.list 

Install Mopidy and all dependencies: 

 
sudo apt-get update
sudo apt-get install mopidy ncmpcpp mopidy-mpd mopidy-spotify


There are two configuration files that need to be adjusted. 

First, there is the Mopidy configuration file: ~/.config/mopidy/mopidy.conf

Here is my configuration file:

[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
debug_file = mopidy.log
config_file =

[audio]
output = tee name=t t. ! queue ! autoaudiosink t. ! queue ! audioresample ! audioconvert ! audio/x-raw$

[local]
enabled = true
library = json
media_dir = ~/Media

[spotify]

enabled = true
username =  
password =
client_id =
client_secret =
bitrate = 320


You put your username and password, above as requested under the Spotify section. Then you need to now go to https://www.mopidy.com/authenticate/ to get your client_id and client_secret.

Finally, you need to edit (or create) the following ncmpcpp configuration file in order for visualizations to work ~/.ncmpcpp/config

Here is what I have in mine (replace "password" with your user password):

mpd_host = "password@localhost"
mpd_port = "6610"
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "my_fifo"
visualizer_sync_interval = "30"
visualizer_in_stereo = "yes"
visualizer_type = "spectrum"
visualizer_look = "+|"


Most Used Shortcut Keys for Ncmpcpp

  • 1 - Current playlist
  • 2 - Filesystem browser
  • 3 - DB search
  • 4 - Library
  • 5 - Playlist editor
  • 6 - Tag editor
  • 7 - Output selector
  • 8 - Music visualizer
  • = - Clock
  • F1 - Help

Other UI keys

  • q - Quit
  • f - Seek forward
  • b - Seek backward
  • \ - Switch between classic and alternative views
  • i - Show song info
  • I - Show artist info (saved in ~/.ncmpcpp/artists/ARTIST.txt)
  • L - Shuffle between available lyric databases
  • l - Retrieve song lyrics for current song Show/hide lyrics
  • > - Next track
  • < - Previous track
  • p - Play/Pause
  • a - Add item to playlist
  • S - Save playlist
  • c - Clear playlist
  • r - Toggle repeat mode
  • z - Toggle random mode
  • + - Increase volume 2%
  • - - Decrease volume 2%

Additional Backend Extensions:

mopidy-scrobbler - sudo apt install mopidy-scrobbler

[scrobbler]
enabled = true
username = your_username
password = your_password

mopidy-soundclound - sudo apt-get install mopidy-soundcloud

[soundcloud]
enabled = true
explore_songs = 25
auth_token =[go to https://www.mopidy.com/authenticate/ to get it]

mopidy-youtube - I had trouble getting this one to work using the repositories. I had to use 'pip' instead:


sudo apt-get install python-pip [if you don't already have it installed]
sudo pip install --upgrade pafy
sudo pip install --upgrade mopidy-youtube 

mopidy-tunein - Install: sudo apt-get install mopidy-tunein  Then modify ~.config/mopidy/mopidy.conf by adding the following lines:

[tunein]
timeout = 5000


mopidy-internetarchive -

mopidy-somafm -
sudo apt-get install mopidy-somafm

That's it!

mopidy-podcast -

Comments

Van Overbeek said…
Thanks the Spotify Plays API works fine now!
Katrina J said…
This is exactly what I was looking for. I'm so happy that I came across this post. This fixed all the issues that I encountered.
Soundcloud plays
No Name said…
Hello
USA fresh & Verified SSN Leads Available
Tested & Valid Data

Details of Data
First Name | Last Name | SSN | Dob | Address | State | City | Zip | Phone Number | Account Number | Bank NAME | DL Number | House Owner | ID State

*You can ask for sample before any deal
*Price for SSN lead $1
*For specific data $3
*If anyone buy in bulk, I can negotiate
*Sampling is just for serious buyers

==>ACTIVE & FRESH CC FULLZ ALSO AVAILABLE<==
->$5 PER EACH

Hope for the long term deal
Interested can contact me

Whatsapp > +923172721122
Email > leads.sellers1212@gmail.com
Telegram > @leadsupplier
ICQ > 752822040
Ashtikar said…
Hi,

I followed all the steps, but when I go to https://mopidy.com/ext/spotify/ and select Authenticate app, it doesn't give me any Client ID or Client Secret. It just tells me that the app has been authenticated.

What do I do to get the Client ID and Secret??
Anne Markey said…
Clayie is one of the Online Jhumka Delivery and Home Decor Items stores in India, also one of the leading Plants.
Buy Golden Jhumka
Buy Oxidized Earrings
Buy Oxidized Earring
Buy Oxidized Earrings
Buy Oxidized Earrings
Buy Oxidized Earrings


Popular posts from this blog

Base64 decode to file

Swiftboating from the Left - Paul Harris's "The Real McCain"

Installing Virtualbox's Guest Additions on Debian and getting shared folders to work