Digikam/Manage Photos from Multiple digiKam Installations: Difference between revisions

From KDE UserBase Wiki
(Created page with "<languages /> <translate> == Manage Photos from Multiple digiKam Installations == Transcribed from Dmitri Popov's blog, 13 March 2011 Storing your photos on a server or network ...")
 
(replaced google generated link with actual page address, added input template, special/mylanguage)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<languages />
<languages />
<translate>
<translate>
== Manage Photos from Multiple digiKam Installations ==
== Manage Photos from Multiple digiKam Installations == <!--T:1-->
Transcribed from Dmitri Popov's blog, 13 March 2011
Transcribed from Dmitri Popov's blog, 13 March 2011


<!--T:2-->
Storing your photos on a server or network disk? Want to manage them from several Linux-based machines using '''digiKam'''? Here is how to do that.
Storing your photos on a server or network disk? Want to manage them from several Linux-based machines using '''digiKam'''? Here is how to do that.


First of all, you need to mount the directory on the server containing the photos on your machine. Assuming your server is running Linux and you can connect to it via SSH, you can mount the remote directory using sshfs. To do this, you need to install the sshfs package first. On Ubuntu and Debian-based Linux distributions, you can do this by executing the apt-get install sshfs command as root. Next, run the id command and note the [http://www.google.co.uk/url?sa=t&source=web&cd=1&ved=0CCAQFjAA&url=http%3A%2F%2Fwww.itwire.com%2Fbusiness-it-news%2Fopen-source%2F14446-uid-and-gid-the-basics-of-linux-user-admin&ei=qUJ-Tc-2OdGbhQelpeT_Bg&usg=AFQjCNH3diBKjVtYJRT1ojL9L1-vobXVWg&sig2=erO9-io-EIG_WCwXNCbg9A uid and gid values] for your account (e.g., uid=1000 gid=1000). Use then the following command to mount a server directory on your machine:
<!--T:3-->
First of all, you need to mount the directory on the server containing the photos on your machine. Assuming your server is running Linux and you can connect to it via SSH, you can mount the remote directory using sshfs. To do this, you need to install the sshfs package first. On Ubuntu and Debian-based Linux distributions, you can do this by executing the{{Input|1=apt-get install sshfs}}command as root. Next, run the id command and note the [http://www.itwire.com/business-it-news/open-source/14446-uid-and-gid-the-basics-of-linux-user-admin uid and gid values] for your account (e.g., uid=1000 gid=1000). Use then the following command to mount a server directory on your machine:


<!--T:4-->
{{Input|1=sshfs user@host:/path/to/dir /mountpoint -o idmap=user -o uid=1000 -o gid=1000}}
{{Input|1=sshfs user@host:/path/to/dir /mountpoint -o idmap=user -o uid=1000 -o gid=1000}}


<!--T:5-->
Replace user with the name of the existing user on the server and host with the IP address of the server. Replace /path/to/dir with the path to the directory on the server and /mountpoint with the directory on your machine that will be used as a mount point. Once the directory has been mounted, you can use the files in it as they were on your own machine. To unmount the directory, use the fusermount command as follows:
Replace user with the name of the existing user on the server and host with the IP address of the server. Replace /path/to/dir with the path to the directory on the server and /mountpoint with the directory on your machine that will be used as a mount point. Once the directory has been mounted, you can use the files in it as they were on your own machine. To unmount the directory, use the fusermount command as follows:


<!--T:6-->
{{Input|1=fusermount -u /mountpoint}}
{{Input|1=fusermount -u /mountpoint}}


Next, you have to configure '''digiKam''' to use a '''MySQL''' database as its back-end. This would require, of course, a '''MySQL''' installation running either on your own server or on another remote machine. The [[Digikam/Using_digiKam_with_MySQL|Use digiKam with MySQL]] article provides detailed instructions on how to make '''digiKam''' work with '''MySQL'''.
<!--T:7-->
Next, you have to configure '''digiKam''' to use a '''MySQL''' database as its back-end. This would require, of course, a '''MySQL''' installation running either on your own server or on another remote machine. The [[Special:myLanguage/Digikam/Using_digiKam_with_MySQL|Use digiKam with MySQL]] article provides detailed instructions on how to make '''digiKam''' work with '''MySQL'''.


<!--T:8-->
The rest is easy. In '''digiKam''', choose <menuchoice>Settings -> Configure digiKam</menuchoice> and switch to the <menuchoice>Collections</menuchoice> section. Press the <menuchoice>Add Collection</menuchoice> button next to the <menuchoice>Local Collections</menuchoice> entry, then add the folder that contains the photos from the mounted remote directory as a new album.
The rest is easy. In '''digiKam''', choose <menuchoice>Settings -> Configure digiKam</menuchoice> and switch to the <menuchoice>Collections</menuchoice> section. Press the <menuchoice>Add Collection</menuchoice> button next to the <menuchoice>Local Collections</menuchoice> entry, then add the folder that contains the photos from the mounted remote directory as a new album.


<!--T:9-->
In a similar manner, you can configure '''digiKam''' on any other machine you want to use to manage photos stored on the server.
In a similar manner, you can configure '''digiKam''' on any other machine you want to use to manage photos stored on the server.


<!--T:10-->
[[Category:Graphics]]
[[Category:Graphics]]
[[Category:Photography]]
[[Category:Photography]]
[[Category:Tutorials]]
[[Category:Tutorials]]
</translate>
</translate>

Latest revision as of 06:39, 15 March 2011

Other languages:

Manage Photos from Multiple digiKam Installations

Transcribed from Dmitri Popov's blog, 13 March 2011

Storing your photos on a server or network disk? Want to manage them from several Linux-based machines using digiKam? Here is how to do that.

First of all, you need to mount the directory on the server containing the photos on your machine. Assuming your server is running Linux and you can connect to it via SSH, you can mount the remote directory using sshfs. To do this, you need to install the sshfs package first. On Ubuntu and Debian-based Linux distributions, you can do this by executing the

apt-get install sshfs

command as root. Next, run the id command and note the uid and gid values for your account (e.g., uid=1000 gid=1000). Use then the following command to mount a server directory on your machine:

sshfs user@host:/path/to/dir /mountpoint -o idmap=user -o uid=1000 -o gid=1000

Replace user with the name of the existing user on the server and host with the IP address of the server. Replace /path/to/dir with the path to the directory on the server and /mountpoint with the directory on your machine that will be used as a mount point. Once the directory has been mounted, you can use the files in it as they were on your own machine. To unmount the directory, use the fusermount command as follows:

fusermount -u /mountpoint

Next, you have to configure digiKam to use a MySQL database as its back-end. This would require, of course, a MySQL installation running either on your own server or on another remote machine. The Use digiKam with MySQL article provides detailed instructions on how to make digiKam work with MySQL.

The rest is easy. In digiKam, choose Settings -> Configure digiKam and switch to the Collections section. Press the Add Collection button next to the Local Collections entry, then add the folder that contains the photos from the mounted remote directory as a new album.

In a similar manner, you can configure digiKam on any other machine you want to use to manage photos stored on the server.