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

    From KDE UserBase Wiki
    (Importing a new version from external source)
    (Importing a new version from external source)
    Line 5: Line 5:
    Memorizzi le tue foto su un server o su un disco di rete? Vuoi gestirle da vari computer Linux utilizzando '''digiKam'''?  Ecco come fare.
    Memorizzi le tue foto su un server o su un disco di rete? Vuoi gestirle da vari computer Linux utilizzando '''digiKam'''?  Ecco come fare.


    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:
    Prima di tutto devi montare la cartella del server contenente le foto sul tuo computer. Partendo dal presupposto che il tuo server utilizzi Linux e che tu possa connetterti tramite SSH, puoi montare la cartella remota utilizzando sshfs. Per far ciò prima devi installare il pacchetto sshfs. Su distribuzioni basate su Ubuntu e Debian puoi eseguire il comando {{Input|1=apt-get install sshfs}} come amministratore. Poi esegui il comando id e segnati i [http://www.itwire.com/business-it-news/open-source/14446-uid-and-gid-the-basics-of-linux-user-admin valori uid e gid] (per esempio: uid=1000 gid=1000). Quindi utilizza il seguente comando per montare una cartella del server sul tuo computer:


    {{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}}

    Revision as of 18:06, 26 April 2011

    Other languages:

    Gestire fotografie da più installazioni di digiKam

    Trascritto dal blog di Dmitri Popov, 13 marzo 2011

    Memorizzi le tue foto su un server o su un disco di rete? Vuoi gestirle da vari computer Linux utilizzando digiKam? Ecco come fare.

    Prima di tutto devi montare la cartella del server contenente le foto sul tuo computer. Partendo dal presupposto che il tuo server utilizzi Linux e che tu possa connetterti tramite SSH, puoi montare la cartella remota utilizzando sshfs. Per far ciò prima devi installare il pacchetto sshfs. Su distribuzioni basate su Ubuntu e Debian puoi eseguire il comando

    apt-get install sshfs

    come amministratore. Poi esegui il comando id e segnati i valori uid e gid (per esempio: uid=1000 gid=1000). Quindi utilizza il seguente comando per montare una cartella del server sul tuo computer:

    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.