Amarok/Manual/Draft/Scrobbling to Libre.fm: Difference between revisions

From KDE Wiki Sandbox
< Amarok‎ | Manual‎ | Draft
(Done, wonder if it's OK to use <code></code> tags with directories...)
 
(Marked up for translation, formatting)
Line 1: Line 1:
This tutorial will let you scrobble to the '''[http://libre.fm/ Libre.fm]''' scrobbling service the music you hear in Amarok.
<languages />
<translate>
This tutorial will let you scrobble to the '''[http://libre.fm/ Libre.fm]''' scrobbling service the music you hear in '''Amarok.'''


==lastfmsubmitd installation and configuration==
==lastfmsubmitd installation and configuration==
Line 7: Line 9:
Once it is installed, it's time to configure it. First you will need to manually edit its configuration file, whose location will depend on your distribution. When you know its location, edit it as root and fill in your libre.fm user information (username and password) and add the lines needed to specify Libre.fm's server:
Once it is installed, it's time to configure it. First you will need to manually edit its configuration file, whose location will depend on your distribution. When you know its location, edit it as root and fill in your libre.fm user information (username and password) and add the lines needed to specify Libre.fm's server:


<pre>
{{Input|1=<nowiki>
[account]
[account]
user : your_librefm_userid
user : your_librefm_userid
Line 14: Line 16:
[server]
[server]
url = http://turtle.libre.fm/
url = http://turtle.libre.fm/
</pre>
</nowiki>}}


It's done. Now, you have to start lastfmsubmitd and lastmp daemons, and you might want to make sure they are started in your system on every boot. The way to do it vary from a distro to another, so ask yours.
It's done. Now, you have to start lastfmsubmitd and lastmp daemons, and you might want to make sure they are started in your system on every boot. The way to do it vary from a distro to another, so ask yours.
Line 26: Line 28:
==Permissions configuration==
==Permissions configuration==


Now you need to make sure you have permissions to write to the folders <code>/var/log/lastfm/</code> and <code>/var/spool/lastfm/</code>. In case your user is part of the <code>audio</code> group (whih you can see running <code>id</code> in a console as your user), these lines (both) should do the job:
Now you need to make sure you have permissions to write to the folders <tt>/var/log/lastfm/</tt> and <tt>/var/spool/lastfm/</tt>. In case your user is part of the <code>audio</code> group (whih you can see running <code>id</code> in a console as your user), these lines (both) should do the job:


{{Input|1=sudo chown :audio /var/log/lastfm/ /var/spool/lastfm/ -R
{{Input|1=sudo chown :audio /var/log/lastfm/ /var/spool/lastfm/ -R
Line 32: Line 34:


[[Category:Amarok]]
[[Category:Amarok]]
</translate>

Revision as of 13:29, 15 September 2012

This tutorial will let you scrobble to the Libre.fm scrobbling service the music you hear in Amarok.

lastfmsubmitd installation and configuration

You will need lastfmsubmitd daemon in order to scroll to Libre.fm. So download it from your distribution repositories if available, or compile it from source.

Once it is installed, it's time to configure it. First you will need to manually edit its configuration file, whose location will depend on your distribution. When you know its location, edit it as root and fill in your libre.fm user information (username and password) and add the lines needed to specify Libre.fm's server:

[account]
user : your_librefm_userid
password : your_librefm_password

[server]
url = http://turtle.libre.fm/

It's done. Now, you have to start lastfmsubmitd and lastmp daemons, and you might want to make sure they are started in your system on every boot. The way to do it vary from a distro to another, so ask yours.

Amarok2LibreFM installation

This is the easiest step. You just need to download Amarok2LibreFM, open Amarok, and go to Tools -> Script Manager. There, press Install Script and search for the archive you have just downloaded (in case you can't see it, make sure the file browser is not filtering results following any pattern).

The script will become active as soon as you restart Amarok.

Permissions configuration

Now you need to make sure you have permissions to write to the folders /var/log/lastfm/ and /var/spool/lastfm/. In case your user is part of the audio group (whih you can see running id in a console as your user), these lines (both) should do the job:

sudo chown :audio /var/log/lastfm/ /var/spool/lastfm/ -R
sudo chmod -R 775 /var/log/lastfm/ /var/spool/lastfm/