Sharing database between Windows and Linux

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Sharing database between Windows and Linux

Michael Klitgaard
Hello everyone,

First of, thanks for digikam! It seems like it is the product I have
been searching for!
I really really like the ability to use a standard database server
such as mysql and sqlite. I have looked at Picasa, and it seems great
and all, but just didn't like all of the .ini files and some strange
database, which I could not alter in (or at least don't know how to),
and also the multi-user ability of digikam is just what I need to
share the work tagging everything with my spouse. And it is mostly
because of her Im writing now, I really like Linux, and she really
doesn't. So I need to be able to get it working on Windows and Linux.
It seems I'm half ways there, put now I'm having trouble.

It have seen this has been discussed here before, and it was suggested
the poster look into:
https://bugs.kde.org/show_bug.cgi?id=261277

So I read it, and tried to figure out what to do. I have a mysql
server running on the linux machine, which host the pictures also over
samba.
I have set the AlbumRoots in the digikam database to two different
mount points for the different OS'es, and this seems to work great.
Heres the entry:

mysql> select * from AlbumRoots;
+----+----------+--------+------+----------------------------------------------------------------------+--------------+
| id | label    | status | type | identifier
                                | specificPath |
+----+----------+--------+------+----------------------------------------------------------------------+--------------+
|  1 | pictures |      0 |    3 |
networkshareid:?mountpath=P%3A&&mountpath=%2Fdata%2Fdisc1%2Fpictures |
/pictures    |
+----+----------+--------+------+----------------------------------------------------------------------+--------------+

 So I can tag a photo on the Windows machine and almost instantly see
it on the Linux machine. But when I delete (permanently delete) an
image from the windows machine, it stops to show the whole album. I
have looked at the file server, and it does actually delete the image
and not any of the rest in the album (phew). So perhaps it just stops
to draw the thumbnails?
Well I opened the the digikam_thumbnails db, I found that the table
FilePaths, looks like this


mysql> select * from FilePaths limit 875,15; (worst part I could find)
+--------------------------------------------+---------+
| path                                       | thumbId |
+--------------------------------------------+---------+
| P:/2005/05/15/213846.JPG                   |    1115 |
| P:/2005/05/15/213927.JPG                   |    1116 |
| /data/disc1/pictures/2006/01/14/214906.JPG |    1117 |
| /data/disc1/pictures/2006/01/14/214915.JPG |    1119 |
| P:/2005/05/15/214011.JPG                   |    1120 |
| /data/disc1/pictures/2006/01/14/214952.JPG |    1121 |
| /data/disc1/pictures/2006/01/14/215002.JPG |    1122 |
| /data/disc1/pictures/2006/01/14/220525.JPG |    1123 |
| /data/disc1/pictures/2006/01/14/220534.JPG |    1124 |
| P:/2005/05/15/214015.JPG                   |    1125 |
| /data/disc1/pictures/2006/01/14/222257.JPG |    1126 |
| P:/2005/05/15/214019.JPG                   |    1127 |
| /data/disc1/pictures/2006/01/14/222308.JPG |    1128 |
| P:/2005/05/15/214023.JPG                   |    1129 |
| /data/disc1/pictures/2005/05/15/214023.JPG |    8095 |
+--------------------------------------------+---------+

So if it possible to make a mount point in the thumbnails database, or
is this perhaps not my problem at all?

Oh yeah, of course I should post some versions:
Linux machine:
Digikam 2.1.1 from Kubuntu 11.10 repository.

Windows:
Digikam 2.3 from
http://sourceforge.net/projects/digikam/files/digikam/2.3.0/digiKam-installer-2.3.0-win32.exe/download

It could perhaps also be the samba server?
Here is my smb.conf

[global]
workgroup = workgroup
security = share
wins support = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
map archive = yes
map system = yes
map hidden = yes

[data]
 path = /data
 writeable = yes
 guest ok = yes
 create mask = 0777
 directory mask = 0777
 browsable = yes

A snippet of a "ls -l" on the directory /data/disc1/pictures/2006/01/14
-rwxrwxrwx 1 michael michael  907937 2011-12-29 01:44 215002.JPG
-rwxrwxrwx 1 michael michael 2243284 2011-12-29 00:20 220525.JPG
-rwxrwxrwx 1 michael michael 2253480 2011-12-29 00:20 220534.JPG
-rwxrwxrwx 1 michael michael 2097490 2011-12-29 00:20 222257.JPG

I have chmod'ed dirs and files 777, I know that I should not do this,
but so far, I have just not been smart enough to figure out group
policies etc.

I'm really keen on getting digikam to work and will do everything
possible to get it working. So please, any suggestions will do :)


Sincerely
Michael
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sharing database between Windows and Linux

James R. Shipman
Has there been any progress on this front?  I also would like to get digikam working from both linux and windows clients.

The other problem I have is that linux systems are pretty much all UTF-8, but windows is "system" (whatever that is).  Every time I start digikam from one to the other I get a notification that the locale has changed and do I want to continue.  Both windows and linux machines are actually in the same region (for me at least) and so there should be no problem with code pages between the two, but it is still confusing to the casual user (the windows user).  It would be nice if I could disable that notification in the settings for digikam.

Jim Shipman

Hello everyone,

First of, thanks for digikam! It seems like it is the product I have
been searching for!
I really really like the ability to use a standard database server
such as mysql and sqlite. I have looked at Picasa, and it seems great
and all, but just didn't like all of the .ini files and some strange
database, which I could not alter in (or at least don't know how to),
and also the multi-user ability of digikam is just what I need to
share the work tagging everything with my spouse. And it is mostly
because of her Im writing now, I really like Linux, and she really
doesn't. So I need to be able to get it working on Windows and Linux.
It seems I'm half ways there, put now I'm having trouble.

It have seen this has been discussed here before, and it was suggested
the poster look into:
https://bugs.kde.org/show_bug.cgi?id=261277

So I read it, and tried to figure out what to do. I have a mysql
server running on the linux machine, which host the pictures also over
samba.
I have set the AlbumRoots in the digikam database to two different
mount points for the different OS'es, and this seems to work great.
Heres the entry:

mysql> select * from AlbumRoots;
+----+----------+--------+------+----------------------------------------------------------------------+--------------+
| id | label    | status | type | identifier
                                | specificPath |
+----+----------+--------+------+----------------------------------------------------------------------+--------------+
|  1 | pictures |      0 |    3 |
networkshareid:?mountpath=P%3A&&mountpath=%2Fdata%2Fdisc1%2Fpictures |
/pictures    |
+----+----------+--------+------+----------------------------------------------------------------------+--------------+

 So I can tag a photo on the Windows machine and almost instantly see
it on the Linux machine. But when I delete (permanently delete) an
image from the windows machine, it stops to show the whole album. I
have looked at the file server, and it does actually delete the image
and not any of the rest in the album (phew). So perhaps it just stops
to draw the thumbnails?
Well I opened the the digikam_thumbnails db, I found that the table
FilePaths, looks like this


mysql> select * from FilePaths limit 875,15; (worst part I could find)
+--------------------------------------------+---------+
| path                                       | thumbId |
+--------------------------------------------+---------+
| P:/2005/05/15/213846.JPG                   |    1115 |
| P:/2005/05/15/213927.JPG                   |    1116 |
| /data/disc1/pictures/2006/01/14/214906.JPG |    1117 |
| /data/disc1/pictures/2006/01/14/214915.JPG |    1119 |
| P:/2005/05/15/214011.JPG                   |    1120 |
| /data/disc1/pictures/2006/01/14/214952.JPG |    1121 |
| /data/disc1/pictures/2006/01/14/215002.JPG |    1122 |
| /data/disc1/pictures/2006/01/14/220525.JPG |    1123 |
| /data/disc1/pictures/2006/01/14/220534.JPG |    1124 |
| P:/2005/05/15/214015.JPG                   |    1125 |
| /data/disc1/pictures/2006/01/14/222257.JPG |    1126 |
| P:/2005/05/15/214019.JPG                   |    1127 |
| /data/disc1/pictures/2006/01/14/222308.JPG |    1128 |
| P:/2005/05/15/214023.JPG                   |    1129 |
| /data/disc1/pictures/2005/05/15/214023.JPG |    8095 |
+--------------------------------------------+---------+

So if it possible to make a mount point in the thumbnails database, or
is this perhaps not my problem at all?

===== snip ======

I'm really keen on getting digikam to work and will do everything
possible to get it working. So please, any suggestions will do :)


Sincerely
Michael


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sharing database between Windows and Linux

Michael Klitgaard
Hello James,

I'm sorry to say that I stopped trying to get it to work. So I'm still
not tagging our family pictures.
It seemed like windows port I used was not very robust, but perhaps
the newer versions is getting better.
I agree on the UTF-8/System thing is annoying and troubling. The
entries in the database didn't seem to mind though.

Did you experience any problems with displaying pictures/thumbs in
both the windows and linux version when using the mysql db? And did
the tags update nicely on both machine, when editing from either one?


Sincerely
Michael

On Fri, Jul 13, 2012 at 9:26 PM, James R. Shipman <[hidden email]> wrote:

> Has there been any progress on this front?  I also would like to get digikam
> working from both linux and windows clients.
>
> The other problem I have is that linux systems are pretty much all UTF-8,
> but windows is "system" (whatever that is).  Every time I start digikam from
> one to the other I get a notification that the locale has changed and do I
> want to continue.  Both windows and linux machines are actually in the same
> region (for me at least) and so there should be no problem with code pages
> between the two, but it is still confusing to the casual user (the windows
> user).  It would be nice if I could disable that notification in the
> settings for digikam.
>
> Jim Shipman
>
> Hello everyone,
>
> First of, thanks for digikam! It seems like it is the product I have
> been searching for!
> I really really like the ability to use a standard database server
> such as mysql and sqlite. I have looked at Picasa, and it seems great
> and all, but just didn't like all of the .ini files and some strange
> database, which I could not alter in (or at least don't know how to),
> and also the multi-user ability of digikam is just what I need to
> share the work tagging everything with my spouse. And it is mostly
> because of her Im writing now, I really like Linux, and she really
> doesn't. So I need to be able to get it working on Windows and Linux.
> It seems I'm half ways there, put now I'm having trouble.
>
> It have seen this has been discussed here before, and it was suggested
> the poster look into:
> https://bugs.kde.org/show_bug.cgi?id=261277
>
> So I read it, and tried to figure out what to do. I have a mysql
> server running on the linux machine, which host the pictures also over
> samba.
> I have set the AlbumRoots in the digikam database to two different
> mount points for the different OS'es, and this seems to work great.
> Heres the entry:
>
> mysql> select * from AlbumRoots;
> +----+----------+--------+------+----------------------------------------------------------------------+--------------+
> | id | label    | status | type | identifier
>                                 | specificPath |
> +----+----------+--------+------+----------------------------------------------------------------------+--------------+
> |  1 | pictures |      0 |    3 |
> networkshareid:?mountpath=P%3A&&mountpath=%2Fdata%2Fdisc1%2Fpictures |
> /pictures    |
> +----+----------+--------+------+----------------------------------------------------------------------+--------------+
>
>  So I can tag a photo on the Windows machine and almost instantly see
> it on the Linux machine. But when I delete (permanently delete) an
> image from the windows machine, it stops to show the whole album. I
> have looked at the file server, and it does actually delete the image
> and not any of the rest in the album (phew). So perhaps it just stops
> to draw the thumbnails?
> Well I opened the the digikam_thumbnails db, I found that the table
> FilePaths, looks like this
>
>
> mysql> select * from FilePaths limit 875,15; (worst part I could find)
> +--------------------------------------------+---------+
> | path                                       | thumbId |
> +--------------------------------------------+---------+
> | P:/2005/05/15/213846.JPG                   |    1115 |
> | P:/2005/05/15/213927.JPG                   |    1116 |
> | /data/disc1/pictures/2006/01/14/214906.JPG |    1117 |
> | /data/disc1/pictures/2006/01/14/214915.JPG |    1119 |
> | P:/2005/05/15/214011.JPG                   |    1120 |
> | /data/disc1/pictures/2006/01/14/214952.JPG |    1121 |
> | /data/disc1/pictures/2006/01/14/215002.JPG |    1122 |
> | /data/disc1/pictures/2006/01/14/220525.JPG |    1123 |
> | /data/disc1/pictures/2006/01/14/220534.JPG |    1124 |
> | P:/2005/05/15/214015.JPG                   |    1125 |
> | /data/disc1/pictures/2006/01/14/222257.JPG |    1126 |
> | P:/2005/05/15/214019.JPG                   |    1127 |
> | /data/disc1/pictures/2006/01/14/222308.JPG |    1128 |
> | P:/2005/05/15/214023.JPG                   |    1129 |
> | /data/disc1/pictures/2005/05/15/214023.JPG |    8095 |
> +-----------------------------
> ---------------+---------+
>
> So if it possible to make a mount point in the thumbnails database, or
> is this perhaps not my problem at all?
>
> ===== snip ======
>
> I'm really keen on getting digikam to work and will do everything
> possible to get it working. So please, any suggestions will do :)
>
>
> Sincerely
> Michael
>
>
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sharing database between Windows and Linux

James R. Shipman
In reply to this post by Michael Klitgaard
I also gave up trying.  My wife uses Picasa on windows and I use digikam
on linux.  I set digikam to change the file mod date/time when it writes
metadata.  This causes picasa to pick up the changes.  The main problem
is that it is very difficult to get rid of a tag as each photo manager
(digikam and picasa) maintain separate databases and each one wants to
merge the photo data with its own database and write the result out to
the image.  I finally solved this by shuting down picasa while I delete
tags etc. in digikam; then shut down digikam and delete them again in
picasa. then when I start digikam again the extra tags are now gone from
both systems and the images.
Jim Shipman
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sharing database between Windows and Linux

Michael Klitgaard
Hello James,

I gave it a go again, and it seems to be working better. The main
thing I did was to create two thumbnails databases, one for the
Windows and one for the Linux machine. This seems to work. There
probadly is better ways to solve this, but that is over my mental
capacity right now.
I'm considering updating to two newer releases of Digikam, as there
some small differences in the feature sets of the two I'm running
rigth now. But I'm in the "don't fix it if it ain't broken" mental
state right now, perhaps if I get some spare time closer to christmas.


Sincerely
Michael

On Fri, Jul 20, 2012 at 1:51 AM, James R. Shipman <[hidden email]> wrote:

> I also gave up trying.  My wife uses Picasa on windows and I use digikam on
> linux.  I set digikam to change the file mod date/time when it writes
> metadata.  This causes picasa to pick up the changes.  The main problem is
> that it is very difficult to get rid of a tag as each photo manager (digikam
> and picasa) maintain separate databases and each one wants to merge the
> photo data with its own database and write the result out to the image.  I
> finally solved this by shuting down picasa while I delete tags etc. in
> digikam; then shut down digikam and delete them again in picasa. then when I
> start digikam again the extra tags are now gone from both systems and the
> images.
> Jim Shipman
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users