Saturday 28 July 2007

Xorg config for Iiyama Vision Master 1451 under Ubuntu

As Ubuntu did not recognise this by default, it requires some jiggery pokery with the X config. Before editing, it is recommended that you make a backup of the file /etc/X11/xorg.conf, then modify the Monitor section as follows:

Section "Monitor"
Identifier "iiyama Vision Master 1451"
Option "DPMS"
HorizSync 28-80
VertRefresh 75-75
EndSection

...and also change the Monitor value in the Screen section to match the Identifier, in this case to be "iiyama Vision Master 1451"

Wednesday 25 July 2007

Ubuntu performance improvements

If you have 1GB of memory of more, reduce the virtual memory usage....
$ sudo cat /proc/sys/vm/swappiness
60
$ sudo sysctl -w vm.swappiness=10
vm.swappiness = 10

To make the change permanent
sudo gedit /etc/sysctl.conf
Add the above line (vm.swap...) to the end of the file and save

More useful performance stuff can be found at the Ubuntu Forums

Details on how to update your kernel to ensure you have one optimised for your processor can be found here.

Monday 23 July 2007

Digital Image Management - and the winner is.......digiKam

Nothing so far meets all my requirements. Picasa is a shade too slow and unwieldy running under WINE (admirable though it is to work at all!). F-Photo is even slower handling my RAW Nikon NEF files.

After lots of searching around I have settled on using digiKam, though it is touted as being for KDE, it seems to run fine under Gnome. There are a few niggles, including the viewer not rotating portrait orientation images when you zoom in and the built in image editor is a little quirky in comparison to Picasa (though it is more powerful). For any proper image editing I will fall back on using GIMP.

The package has a built in LightTable that I am still trying to understand and has the facility for exporting to jpg and uploading to Flickr (via jUploadr). It allows the images to be organised as they are found on disk - for me this means YYYY/YYYY-MM-DD-place-or-event, includes tagging, but seemingly doesnt allow images to be stacked.

Some of the above may be due to my lack of understanding as I am still on the beginning of the learning curve - it has quite a wealth of features.

Other required functions I will either script or knock something together using MonoDevelop - a good excuse to get up to speed on c# and the GTK# toolkit.

If you feel like installing it, follow instructions at http://www.digikam.org/?q=download/binary/

Note: To get the "Archive to CD" function working, I needed to "sudo apt-get k3b" - A CD/DVD burning packing (although I could possibly have changed the default burning application)

Thursday 19 July 2007

Image workflow and management

Ok, USB problems resolved (kind of - in USB1.1 mode), it is time to start thinking about my digital image workflow and management. This will not be a quick fix, there is not a single solution that meets all of my requirements, but that is part of the motivation for moving to Ubuntu/Linux - to find the tools that do meet individual requirements if possible and then glue them all together somehow.

So, what do I need? Some of the things on my wishlist include...
1 - Automation of copying from USB device (camera or card reader) to main photo directory
- user defined parent location
- directory name from date time of import or shooting with optional location suffix
- bulk rename
2 - Quick Review
- ala picasa - an opportunity to quickly review and remove and "duds"
- permanent deletion
3 - Tagging
- of the full set or partial set, perhaps location names etc
- Rating system?
4 - Archive new photoset
- To CD/DVD, multiple copies
- Split across media?
- serialised numbering system for restoring?
- offsite/onsite copies
5 - Review and basic changes
- ala picasa, changes stored as text files
- more tagging?
- deletions - stored thumbs and changes if archive has been created otherwise warn
6 - Backup/Archive
- to network or usb attached storage
7 - Uploads to photosite
- plug in interface for different sites
- autotag ref number to allow location of original from photosite
- name - description - groups - tags
8 - Advanced editing
- start 3rd party app
- somehow track changes (stacked photos?)
9 - Storing changes
- .myapp sub directory inside each photo folder
- individual text files for each set and for each image
- thumbs - 160x100 jpgs - even of archived
- ability to access work from multiple machines
- ability to work on either local or network copy and two way sync the changes

Hmmm, I dont want much then! There are some apps out there already, such as F-Spot, but having tried it, it is slow and doesnt really meet many of my requirements, though F-Spot is written in C# so there may be some opportunity to extend or change its behaviour and functionality.

I need to think about each part of the above in depth!

Wednesday 18 July 2007

USB 2 bug?

Damn and blast, just when I thought it was safe....copying bulk amounts of data to my external USB2 disk seems to be problematic. It seems that copying large files (meaning in the 5-100MB range) works ok but copying alot of smaller files causes some kind of buffer overrun and the drive disconnects. It looks like some kind of caching problem, not all drives or USB controllers are affected, obviously mine is.

Reports and dissection can be found here and a more recent bug report here

Useful commands:
  • dmesg | tail -20

  • lsusb


One workaround is to run the command "sudo modprobe -r ehci_hcd" to drop down to USB1.1 - so I will give that a try. There are a couple of other suggestions, such as hacking max_sectors or altering kernel details and recompiling, but if the modprobe works I will add it to my login script until an official fix becomes available.

Tuesday 17 July 2007

Mounting NFS server at boot time

Working on being able to access all my data from initial Ubuntu boot without any command line jiggery pokery. A quick edit of the disks to mount at boot time:
sudo vi /etc/fstab

Adding the following line at the bottom of the file
tux:/home /net nfs rw,soft,intr,rsize=8192 0 0

Firefox Addons

Continuing the theme of configuring my new Ubuntu/Linux environment I find myself missing those Firefox addons that make life easier. A quick wander across to the official addon page yields
  • British dictionary (my spelling is actually pretty good, even if I do say so myself, but my typing is appalling)
  • GreaseMonkey - for all those handy flickr hacks
  • Del.icio.us - as I am hoping to have my bookmarks/favourites accessible anywhere
Next up is the Flickr Greasemonkey Hacks. This is a real pain, as whenever I setup a new PC, I have to go and grub around for the ones I use, even thought there isnt that many, at least if I list them here, I have something to refer to in the future....
If you have come across any other really useful stuff like this, let me know.

Useful unix command....so I dont forget...cp

cp -uvr /home/photos/2007/* /media/EXTDISK/photos/2007/

I'm always forgetting the optimum syntax, must be my memory in my old age, but this one is likely to be used fairly frequently

Goodbye M$ Windows

But Why?

Having given it some thought over several weeks about wiping my hard disk and installing a Linux variant, I had just about decided on Ubuntu when I received a USB2 external disk and PCI card which I failed miserably to get working under Windows XP, no matter how much shuffling of existing cards and resources that I did.

Not good timing though, with the local Middlesbrough Mela a day away. I had previously shot all photos in NEF (Nikon's RAW file format) and had a workflow that was fairly quick and simple based around Google's Picasa.

Yet I am getting ahead of myself. Why would I want to do this, really I mean. I have a legit installation of XP Pro, but certain things frustrate me, its time for a change and I really want something I can extend myself with scripts, tools, etc. My software development skills have fallen out of date and it is time to get up to speed with some of the more recent developments of the last few years. I also want better integration, from my desktop, internet, 3G mobile, of all the tools I use, email, calendering, contacts, bookmarks, the whole shebang. Maybe its a pipe dream? With all my data backed up on my Fedora Core 4 Linux server, email exported and bookmarks consigned to the bin, it is time to take the plunge.

Ubuntu Linux

Downloading and burning a copy of Ubuntu Feisty is fairly easy and straight forward. Installing should have been - a minimal set of questions, going with the defaults for most things, but life wasnt that simple. The partitioning was done within minutes, but make filesystem sat and hung at 5%, grrrrr. Several attempts later, I gave up on ext3 and changed the settings for an ext2 filesystem. Damn it is slow to create the filesystem, if you are doing this - allow several hours.

The good news is that the sound drivers, network card, USB interfaces and external disks all worked straight off the bat.

Nvidia Graphics Drivers

Slight problem-ette - screen resolution is poor, the install didnt seem to recognise my Nvidia GeForce3 card. No amount of "sudo apt-get install" seemed to bear fruit, but the light at the end of the tunnel was AutoMatix - which installed and configured the drivers for me as "Restricted Drivers" - phew! Without a decent screen resolution it would have been goodbye Ubuntu.

Other applications

I followed a few blog entries from others and installed additional applications with the built in Add/Remove tool where the packages where I could - trying to follow the rules as much as possible. For the rest, I turned to AutoMatix. What did I want that wasnt in the default install? Hmmm, things like - Opera, gFTP, BloGTK, Vmware Server, GnuCash, MonoDevelop, MP3 player (including codecs), SAMBA (for sharing disks and printers with other Windows machines like the kids), etc.

Photo Manipulation Stuff

Having been to the Mela (did I mention the install took a while), I had a bunch of pictures to process and the available in tools were just way too slow and tedious to use. This is no different to XP, but on Windows, there was always Picasa. I grubbed around a little and discovered that Picasa runs under WINE, so I could have the best of both worlds. I installed both and lo and behold, performance is about on par with XP. Excellent.

And for more in depth RAW file manipulation - I could use GIMP which comes preinstalled - right - erm - wrong actually, yes it comes preinstalled, but by default it doesnt handle raw files. Something about Tiff file errors and unrecognized tags! More grubbing around yielded a write up of UFRAW and the GIMP plugin. A magic incantation at a command line (terminal window) of "sudo apt-get install gimp-ufraw" fixed the problem.

Conclusion

I had read reports of Ubuntu that said that finally here is a version of Linux that is ready for the mainstream. I beg to differ. It is probably fine if it comes preinstalled and you dont need any extra applications or you are prepared to read up alot and get your head around some of the techie stuff (or have someone else to do this for you), but I wouldnt recommend it to non techie friends - I would probably spend half my life getting it working for them. Most people will have specific uses for their PC, and I dont believe it is simple enough to configure for most users.

I also havent found any preinstalled AntiVirus solution, but ClamAV is meant to be good so I will give that a look.

For me, it looks like it might fit the bill, time will tell, but I will try and post updates here.