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 :
python3 installed on your computer.
- Create configuration file on
~/.mocpscrob/configand should look like below:
password value with your Last.fm account. Don’t worry,
password will be replaced with
password_md5 when the following python script run.
mocp-scrobbler.pyand 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
- Run the following command
Enjoy and share your favorite track to the world :)