Amarok/Manual/Organization/Collection/RemoteCollections

Revision as of 05:16, 18 December 2010 by Danielmarth (talk | contribs)
Jump to: navigation, search

Introduction

Often it is very comfortable to share your media files across the network, especially if you want to use it on different computers. 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:
Remotecollections ampache installation.png
Choose your language and click Start configuration to configure Ampache. Enter the configuration of your MySQL-database:
Remotecollections ampache installation1.png
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.
Remotecollections ampache installation2.png
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.
Remotecollections ampache installation3.png
Log into your newly created account:
Remotecollections ampache login.png
And you will get the webinterface:
Remotecollections ampache webinterface.png
Click on Add a Catalog in the Admin on the left to create a new catalog of music.
Remotecollections ampache catalog.png
Create a new guest account using Admin -> Add User:
Remotecollections ampache createuser.png
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.
Remotecollections ampache client.png
Configure the service with the data entered on the server:
Remotecollections ampache client1.png
Now the Ampache service should appear in the left pane.
Remotecollections ampache client2.png

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.
Remotecollections daap config.png

Client

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

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.
Remotecollections samba server.png
After clicking at Configure File Sharing... the configuration dialogs is opened.
Remotecollections samba server1.png
Change the settings to Advanced Sharing and the Allowed Users to Allow all users to share folders.
Remotecollections samba server2.png
Then you can add the folder to the shares. Click at Add... and share the desired folder with Samba.
Remotecollections samba server3.png

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.


Content is available under Creative Commons License SA 4.0 unless otherwise noted.