Amarok/Manual/Organization/Collection/RemoteCollections: Difference between revisions

From KDE Wiki Sandbox
No edit summary
No edit summary
 
(22 intermediate revisions by 9 users not shown)
Line 1: Line 1:
== Introduction ==
<languages />
<translate>


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.
==== Remote Collections ==== <!--T:1-->


== Ampache ==
<!--T:2-->
Often it is very useful 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:
* [[Special:myLanguage/Amarok/Manual/Organization/Collection/RemoteCollections/Ampache|Ampache]]
* [[Special:myLanguage/Amarok/Manual/Organization/Collection/RemoteCollections/DAAP#Digital Audio Access Protocol (DAAP)|DAAP]]
* [[Special:myLanguage/Amarok/Manual/Organization/Collection/RemoteCollections/Samba|Samba]]
* [[Special:myLanguage/Amarok/Manual/Organization/Collection/RemoteCollections/UPnP#Universal Plug and Play (UPnP)|UPnP]]


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


=== Server ===
<!--T:3-->
 
{{Prevnext2
On '''Debian'''-based distributions like '''Ubuntu''' you can install a '''Ampache'''-server using '''sudo apt-get install ampache'''.<br />
| prevpage=Special:myLanguage/Amarok/Manual/Organization/Collection/StatisticsSynchronization | nextpage=Special:myLanguage/Amarok/Manual/Organization/Collection/RemoteCollections/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:<br />
| prevtext=Statistics Synchronization Between Collections and with Last.fm | nexttext=Ampache
{{Input|1=
| index= Special:myLanguage/Amarok/Manual | indextext=Back to Menu
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:<br />
[[File:remotecollections_ampache_installation.png]]<br />
Choose your language and click <menuchoice>Start configuration</menuchoice> to configure '''Ampache'''. Enter the configuration of your '''MySQL'''-database:<br />
[[File:remotecollections_ampache_installation1.png]]<br />
Click <menuchoice>Insert Database</menuchoice> 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 <menuchoice>Write Config</menuchoice> and you will get a configuration file as download.<br />
[[File:remotecollections_ampache_installation2.png]]<br />
Save this file to ''/usr/share/ampache/www/config/ampache.cfg.php'' and overwrite the existing (empty) configuration. After you clicked <menuchoice>Continue to Step 3</menuchoice> you can create the initial account to manage '''Ampache'''.<br />
[[File:remotecollections_ampache_installation3.png]]<br />
Log into your newly created account:<br />
[[File:remotecollections_ampache_login.png]]<br />
And you will get the webinterface:<br />
[[File:remotecollections_ampache_webinterface.png]]<br />
Click on <menuchoice>Add a Catalog</menuchoice> in the <menuchoice>Admin</menuchoice> on the left to create a new catalog of music.<br />
[[File:remotecollections_ampache_catalog.png]]<br />
Create a new guest account using <menuchoice>Admin -> Add User</menuchoice>:<br />
[[File:remotecollections_ampache_createuser.png]]<br />
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.<br />
=== Client ===
Activate the '''Ampache''' service using <menuchoice>Settings -> Configure Amarok... -> Internet Services</menuchoice>.<br />
[[File:remotecollections_ampache_client.png]]<br />
Configure the service with the data entered on the server:<br />
[[File:remotecollections_ampache_client1.png]]<br />
Now the '''Ampache''' service should appear in the left pane.<br />
[[File:remotecollections_ampache_client2.png]]<br />
== 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.<br />
[[File:remotecollections_daap_config.png]]<br />
=== Client ===
'''Amarok''' automatically shows the tracks from the server in the left pane and no further configuration is required.<br />
[[File:remotecollections_daap.png]]<br />
== 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 <menuchoice>Share</menuchoice> tab.<br />
[[File:remotecollections_samba_server.png]]<br />
After clicking at <menuchoice>Configure File Sharing...</menuchoice> the configuration dialogs is opened.<br />
[[File:remotecollections_samba_server1.png]]<br />
Change the settings to <menuchoice>Advanced Sharing</menuchoice> and the <menuchoice>Allowed Users</menuchoice> to <menuchoice>Allow all users to share folders</menuchoice>.<br />
[[File:remotecollections_samba_server2.png]]<br />
Then you can add the folder to the shares. Click at <menuchoice>Add...</menuchoice> and share the desired folder with '''Samba'''.<br />
[[File:remotecollections_samba_server3.png]]<br />
=== 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.
<!--T:4-->
[[Category:Amarok2.8]]
[[Category:Multimedia]]
[[Category:Tutorials]]
</translate>

Latest revision as of 09:50, 6 July 2016

Remote Collections

Often it is very useful 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: