Amarok/Manual/Organization/Collection/RemoteCollections

From KDE Wiki Sandbox
Revision as of 23:46, 17 December 2010 by Danielmarth (talk | contribs)

Introduction

Often it is very comfortable to share your media files across the network. This can be done in different ways.

Ampache

Amarok is able to play music from an Ampache-media-server. Ampache needs an Apache-server to work.

Server

On Debian-based distributions like Ubuntu you can install a Ampache-server using sudo apt-get install ampache.
You need to tell the Apache-server where it can find the Ampache-files. Create the file /etc/apache2/conf.d/ampache with the following content:

Alias /music "/usr/share/ampache/www/"
<directory />
    DirectoryIndex index.php index.html
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</directory>

Restart Apache with the command /etc/init.d/apache2 restart so you can access the Ampache-webinterface using http://localhost/music/ . You get the following page:

Choose your language and click Start configuration to configure Ampache. Enter the configuration of your MySQL-database:

Click Insert Database to create the user and database. You will get an error message because there is already a configuration file which is empty. Just enter your MySQL-configuration again and click Write Config and you will get a configuration file as download.

Save this file to /usr/share/ampache/www/config/ampache.cfg.php and overwrite the existing (empty) configuration. After you clicked Continue to Step 3 you can create the initial account to manage Ampache.
File:Remotecollections ampache installation4
Log into your newly created account:

And you will get the webinterface:

Click on Add a Catalog in the Admin on the left to create a new catalog of music.

Create a new guest account using Admin -> Add User:

Now you need to allow guest access on your server. Open the configuration in /usr/share/ampache/www/config/ampache.cfg.php and remove the ';'-character before auto_user = "guest". Restart Apache and the server configuration is finished.

Client

Activate the Ampache service using Settings -> Configure Amarok... -> Internet Services.

Configure the service with the data entered on the server:

Now the Ampache service should appear in the left pane.

Digital Audio Access Protocol (DAAP)

DAAP is a protocol to share media in a network. It was first used in the program iTunes, but is widely used today.

Server

On Debian-based distributions like Ubuntu you can install a DAAP-server using sudo apt-get install mt-daapd. This will install the Firefly-DAAP-server. You can configure it using the webinterface by opening the page http://localhost:3689/index.html . The default password is mt-daapd, the user field stays empty.

Client

Amarok automatically shows the tracks from the server in the left pane and no further configuration is required.

Samba

Samba is a free implementation of the SMB/CIFS protocol which is used to share files and printers in a network. Most modern file managers like Dolphin and Nautilus support this protocol.

Server

The easiest way is to use your file manager. On Debian-based distributions like Ubuntu you can install a Dolphin extension to manage shares using sudo apt-get install kdenetwork-filesharing. Open the properties of a folder in Dolphin and switch to the Share tab.

After clicking at Configure File Sharing... the configuration dialogs is opened.

Change the settings to Advanced Sharing and the Allowed Users to Allow all users to share folders.

Then you can add the folder to the shares. Click at Add... and share the desired folder with Samba.

Client

You need to mount the share to use it in Amarok. To do this, you need to install the package smbfs. Use the command sudo mount -t cifs //host/share /mount-point/ to mount the share. After that you can use it like a local folder and add it to your local collection.

Universal Plug and Play (UPnP)

UPnP is a set of protocols to share media on the network. It is also supported by a wide range of Wi-Fi access points.

Server

On Debian-based distributions like Ubuntu you can install a UPnP-server using sudo apt-get install ushare. The service is started in the terminal with the command ushare -n servername [-i interface] [-c folder]. You can also manage shares using the webinterface, which you can access by opening http://127.0.0.1:port/web/ushare.html in the browser. port needs to be adjusted to your settings.

Client

You also need a UPnP-client, which can be installed using sudo apt-get install djmount. UPnP discovery can be started using djmount mountpoint. After that you can use it like a local folder and add it to your local collection.