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.
Amarok is able to play music from an Ampache-media-server. Ampache needs an Apache-server to work.
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 to configure Ampache. Enter the configuration of your MySQL-database:
Click 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 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 you can create the initial account to manage Ampache.
Log into your newly created account:
And you will get the webinterface:
Click on in the on the left to create a new catalog of music.
Create a new guest account using :
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.
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.
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.
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.
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
After clicking at the configuration dialogs is opened.
Change the settings to and the to .
Then you can add the folder to the shares. Click at and share the desired folder with Samba.
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.
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.
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.