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

From KDE UserBase Wiki
(Created page with "En primer lloc, necessitareu muntar al vostre ordinador el directori en el servidor que conté les fotos. Assumint que el servidor està executant Linux i que es pot connectar am...")
(Created page with "Substituïu usuari pel nom de l'usuari existent al servidor i la màquina amb l'adreça IP del servidor. Substituïu /ruta/al/dir amb la ruta al directori en el servidor i /punt_...")
Line 9: Line 9:
{{Input|1=sshfs usuari@màquina:/ruta/al/dir /mountpoint -o idmap=usuari -o uid=1000 -o gid=1000}}
{{Input|1=sshfs usuari@màquina:/ruta/al/dir /mountpoint -o idmap=usuari -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:
Substituïu usuari pel nom de l'usuari existent al servidor i la màquina amb l'adreça IP del servidor. Substituïu /ruta/al/dir amb la ruta al directori en el servidor i /punt_de_muntatge amb el directori a l'ordinador que s'utilitzarà com a punt de muntatge. Una vegada que el directori estigui muntat, podreu utilitzar els fitxers com si es trobessin a la vostra pròpia màquina. Per desmuntar el directori, utilitzeu l'ordre fusermount de la següent manera:


{{Input|1=fusermount -u /mountpoint}}
{{Input|1=fusermount -u /mountpoint}}

Revision as of 12:27, 6 April 2012

Other languages:

Gestionar fotos des de múltiples instal·lacions de digiKam

Transcrit des de l'article d'en Dmitri Popov, el 13 de març de 2011

Com emmagatzemar les vostres fotos en un servidor o disc de xarxa? Voleu gestionar diverses màquines basades en Linux utilitzant digiKam? Aquí teniu com fer-ho.

En primer lloc, necessitareu muntar al vostre ordinador el directori en el servidor que conté les fotos. Assumint que el servidor està executant Linux i que es pot connectar amb ell a través de SSH, podreu muntar el directori remot utilitzant sshfs. Per fer-ho, primer cal instal·lar el paquet sshfs. En Ubuntu i distribucions de Linux basades en Debian, ho podreu fer executant l'ordre

apt-get install sshfs

com a root. A continuació, executeu l'ordre id i anoteu els valors uid i gid del vostre compte (per exemple, uid=1000 gid=1000). Utilitzeu llavors la següent ordre per muntar un directori del servidor al vostre ordinador:

sshfs usuari@màquina:/ruta/al/dir /mountpoint -o idmap=usuari -o uid=1000 -o gid=1000

Substituïu usuari pel nom de l'usuari existent al servidor i la màquina amb l'adreça IP del servidor. Substituïu /ruta/al/dir amb la ruta al directori en el servidor i /punt_de_muntatge amb el directori a l'ordinador que s'utilitzarà com a punt de muntatge. Una vegada que el directori estigui muntat, podreu utilitzar els fitxers com si es trobessin a la vostra pròpia màquina. Per desmuntar el directori, utilitzeu l'ordre fusermount de la següent manera:

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.