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

From KDE UserBase Wiki
(Marked up for translation, formatting)
(Marked this version for translation)
Line 1: Line 1:
<languages />
<languages />
<translate>
<translate>
<!--T:1-->
This tutorial will let you scrobble to the '''[http://libre.fm/ Libre.fm]''' scrobbling service the music you hear in '''Amarok.'''
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== <!--T:2-->


<!--T:3-->
You will need [http://www.red-bean.com/decklin/lastfmsubmitd/ lastfmsubmitd daemon] in order to scroll to Libre.fm. So download it from your distribution repositories if available, or compile it from source.
You will need [http://www.red-bean.com/decklin/lastfmsubmitd/ lastfmsubmitd daemon] in order to scroll to Libre.fm. So download it from your distribution repositories if available, or compile it from source.


<!--T:4-->
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:


<!--T:5-->
{{Input|1=<nowiki>
{{Input|1=<nowiki>
[account]
[account]
Line 14: Line 18:
password : your_librefm_password
password : your_librefm_password


<!--T:6-->
[server]
[server]
url = http://turtle.libre.fm/
url = http://turtle.libre.fm/
</nowiki>}}
</nowiki>}}


<!--T:7-->
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.


==Amarok2LibreFM installation==
==Amarok2LibreFM installation== <!--T:8-->


<!--T:9-->
This is the easiest step. You just need to [http://kde-apps.org/CONTENT/content-files/107339-Amarok2LibreFM.tar.gz download Amarok2LibreFM], open Amarok, and go to <menuchoice>Tools -> Script Manager</menuchoice>. There, press <menuchoice>Install Script</menuchoice> 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).
This is the easiest step. You just need to [http://kde-apps.org/CONTENT/content-files/107339-Amarok2LibreFM.tar.gz download Amarok2LibreFM], open Amarok, and go to <menuchoice>Tools -> Script Manager</menuchoice>. There, press <menuchoice>Install Script</menuchoice> 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).


<!--T:10-->
The script will become active as soon as you restart Amarok.
The script will become active as soon as you restart Amarok.


==Permissions configuration==
==Permissions configuration== <!--T:11-->


<!--T:12-->
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:
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:


<!--T:13-->
{{Input|1=sudo chown :audio /var/log/lastfm/ /var/spool/lastfm/ -R
{{Input|1=sudo chown :audio /var/log/lastfm/ /var/spool/lastfm/ -R
sudo chmod -R 775 /var/log/lastfm/ /var/spool/lastfm/}}
sudo chmod -R 775 /var/log/lastfm/ /var/spool/lastfm/}}


<!--T:14-->
[[Category:Amarok]]
[[Category:Amarok]]
</translate>
</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/