Lightroom, Linux and networks

By Rannasha on Monday 15 June 2009 17:30 - Comments (9)
Categories: Computers/ICT, Photography, Views: 12.295

I like Lightroom for managing my digital photos and performing minor edits. It has, however, some major flaws, that will not be very important to most people, but that do annoy me. These flaws are:
• Lightroom only comes in Windows and MacOS flavors.
• Lightroom refuses to load catalog-files from a network share.

The second point merits a little extra information: Lightroom stores all the info about your pictures, their locations, the tweaks you've made, the keywords and whatnot in a big catalog-file. The pictures themselves may be located anywhere, on a local harddisk, a network share, a USB stick or disk, it doesn't matter. However, it won't let you store the catalog file on a network share. The reason for this (as found by Googleing) is that several users may be accessing files on the network share and Lightroom is not designed to have more than one person working with a catalog file at the same time.

Fair enough, but being the only LR user in my private network at home, I'd like to think that I'm able to restrain myself from making modifications from more than one computer at a time. The solution for this problem lies with the simple Windows command of "subst". Using the syntax
subst Z: \\networkcomputer\share

Windows (from 2000 and up, according to Wikipedia) will create a new virtual disk called "Z:" and it will lead to the network share called "share" on "networkcomputer". And with this little bit of trickery, Lightroom will, without complaining, agree to load and use catalog files located on this network share. One word of warning though: I suppose that the reason behind the inability to load catalog files from network shares is valid and that the file may become damaged and corrupted if altered by more than one computer at the same time.

Sadly, the subst-trick goes away when the computer is rebooted. To solve this, I've used the ultimate tool for automation in these modern days of 2009: The .bat file. I created a bat-file with the single subst-line and in order to make it start when I start my computer, I simply dropped it in the "Startup" folder of the Start menu in Windows XP. Since I couldn't find a similar folder in the Windows 7 RC, I made a registry-line (in the HKLM->Software->Microsoft->Windows->CurrentVersion->Run branch, details may differ as I don't remember the precise path) in the auto-start section that points to the file. Problem 2 solved!

Back to problem 1. The initial response is to privately curse the developers for not making a Linux version of the program. Did that, didn't help. Secondly, one tries Wine. Now, I didn't try it myself, but results from a Google search didn't inspire me with much confidence that it'd work. The final option was the one that did work: A virtual machine.

I had no previous experience with VMs, so I just went for the name I knew: VMware. They make a program called "VMPlayer" that is free to use. After installing it, I went to where they provide you with custom virtual machines based on some parameters you can input, such as number of processor-cores to use, memory available to the VM, diskspace, etc... I clicked through it and was offered a file to download. Armed with the file and the new VMPlayer installation, I loaded the program, opened the file and lo and behold: it was starting up. I scrambled for my Windows XP disc and installed Windows XP on it. After installing, XP started nicely. So far so good.

The next hurdle is the fact that the VM knows nothing of the host environment, so I can't access any disks from the VM other than its own virtual disk. I read that the "Shared Folders" tool that VMware offers isn't available for the free VMPlayer, so that wasn't an option. However, the VM can communicate with the host environment through a virtual network interface. So I downloaded and installed Samba and altered the configuration file (/samba/smb.conf) to create a new share on my laptop (where the entire story takes place). This did the trick, I was able to access the share from within the VM (Do a cmd -> ipconfig and pick the address listed at "Default gateway" (or something similar): this is the IP that the host environment has).

Now I could install Lightroom and it works quite well, despite the VM only having 1GB of RAM and 1 core of a Core2Duo T7300 to work with.

The conclusion of a, for me, exciting weekend of learning new computer stuff is that I can now manage my pictures both from my Win7 desktop and from my Ubuntu 8.10 (with WinXP in a VM) laptop, while both the pictures and the catalog file are located on my Ubuntu 8.04 server.

Volgende: Bitcoin op 1 augustus: UASF & SegWit2X - Wat, wanneer & waarom 07-'17 Bitcoin op 1 augustus: UASF & SegWit2X - Wat, wanneer & waarom


By Tweakers user Rubinski, Monday 15 June 2009 17:38

Waarom is je blog in het Engels geschreven?
Hier komen toch enkek Belgen en Nederlanders?

By Tweakers user Adion, Monday 15 June 2009 17:45

Maybe it's because you have been using Linux regularly, but the 'subst' feature is also available as a GUI feature in explorer, called 'Map Network Drive...', and when you use it, it even has a checkbox 'Reconnect at startup...'

By Tweakers user Rannasha, Monday 15 June 2009 18:44

Ik beperk me liever niet tot enkel Nederlandstaligen, zie daar niet echt een reden voor. Er zullen inderdaad vooral Nederlanders en Vlamingen op Tweakblogs komen, maar da's geen reden om de rest buiten te sluiten. NLers en Vlamingen praten meestal prima Engels, dus dat is geen probleem. Bovendien biedt Tweakblogs de optie om aan te geven dat je hele blog of een enkele post in het Engels is, dus ik zal wel niet de enige zijn die in het Engels post :)

Thanks for the tip, you learn something new every day! And it's true that i've mainly been using Linux of late, except when i needed to use something that wasn't available under Linux (LR for example).

By Tweakers user mithras, Monday 15 June 2009 19:28

What's wrong with using Digikam ( It has great capabilities to manage your photos including some advanced features. It's native for Linux and really fast (compared to another pc with Lightroom, it's faster).

In Digikam you can easily add an album from a network drive (due to the genius kio_slaves) and it has support for external storage (so connecting your usb hdd will add those albums to your Digikam).

Unless you're interested in very specific features (e.g. you're a pro) or want the best integration with other Adobe components, you should give Digikam a try :)

[Comment edited on Monday 15 June 2009 19:29]

By Tweakers user Lima, Monday 15 June 2009 20:11

You also can let the catalog be managed by using versioning systems. It will handle the multiple users well, in stead of sharing it trough your server. You can then change your local copy of your database, en commit it to the server.
For this you can use SVN, or maybe more elegant (AND multi OS) is Unison. This would be less overkill.
You could give it a try.

By Tweakers user Magnetra, Monday 15 June 2009 20:31

Hello there #zoveelste :') .

By Tweakers user DOT, Monday 15 June 2009 21:24

epic_fail: ?

By Tweakers user qless, Tuesday 16 June 2009 14:22

I've tried it with Wine, installing and creating a catalog works, even importing some photos works, but after a restart, Lightroom isn't able to reload the catalog, probably due to the piece of code which checks if the catalog is on a network or a local disk...

By Tweakers user DexterDee, Tuesday 16 June 2009 18:49

As a long time Linux and Ubuntu user, let me give you a tip. Install the free VirtualBox application. This is a very fast and efficient VM, actually faster than VMWare. It is totally free and you can create new virtual machines just from the application itself. Only drawback is that it takes slightly more time to setup a bridge network connection, but NAT works out of the box and is most likely fine for your purposes. Shared folders is a built in feature when you install the guest additions, no need for SMB or anything.

When you have installed XP on the virtual machine, you can install Lightroom as well. The beauty of VirtualBox is in its seamless mode. When you activate it, the virtual machine window will disappear and all open windows applications will appear as separate windows in your gnome/kde desktop. It almost looks as if these windows applications are part of Ubuntu itself, were it not for the recognisable window style of XP. It is as close as you can get with running Lightroom on Ubuntu.

Comments are closed