These instructions relate to versions of the lastfmsubmitd daemon prior to 1.05.
1. Install the lastfmsubmitd daemon, you will be prompted for your last.fm userid and password, enter your libre.fm userid and password here instead.
2. Edit /usr/bin/lastfmsubmitd and change the following line of code:
HANDSHAKE_URL_BASE = 'http://post.audioscrobbler.com/'
to
HANDSHAKE_URL_BASE = 'http://turtle.libre.fm/'
3. Enter the following in your ~/.moc/config file:
OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %r"
You need to restart the lastfmsubmitd daemon and MOC before scrobbling will work.