Are you a big fan of MOC? - So do I. MOC (music on console) is a console audio player for Linux/ UNIX. Some people are always calling it mocp
which is actually it’s binary file name. Like other audio players such as Rhythmbox and Nightingale, MOC can also scrobbled playing track information to your Last.fm account. Here are an instructions to set up Last.fm scrobbler for MOC :
You need python3
installed on your computer.
- Create configuration file on
~/.mocpscrob/config
and should look like below:
Replace login
and password
value with your Last.fm account. Don’t worry, password
will be replaced with password_md5
when the following python script run.
- Download
mocp-scrobbler.py
and put this python script to your $PATH.
- Run the python script
Now, run MOC on other Terminal/ Shell, play a music and the Scrobbler works.
How to Start Scrobbler with MOC?
If you want to start Scrobbler automatically when MOC is running, you can make a simple custom alias.
- Add an alias to last line of
~/.bashrc
file.
- Run the following command
Enjoy and share your favorite track to the world :)