Linux User Group of Mauritius Promoting open source software in our beautiful island

6Feb/110

Debian 6.0 is out

Posted by Dominique Derrier

logo debianA ben voilà une nouvelle pour Geeker un peu avant de reprendre le travail Lundi matin. Deiban 6.0 vient de sortir, "Squeeze" avec quelques petits concepts innovants.

21Jan/110

La photo numérique sous Linux

Posted by Avinash Meetoo

Il n’est plus nécessaire de présenter Linux. Les serveurs de Google, de Facebook et d’Amazon (par exemple) fonctionnent sous Linux et offrent une qualité de service inégalée. Linux est aussi utilisé par les smartphones Android. Par contre, Linux est rarement visible dans les foyers ce qui est dommage parce que Linux permet d’utiliser des dizaines de milliers de logiciels libres  (opensource) souvent de très grande qualité.

Dans cet article, je présente quelques logiciels libres fonctionnant sous Linux pouvant être utilisés par des photographes amateurs ou confirmés pour organiser, modifier et partager leurs photos.

gphoto est un logiciel libre qui permet à Linux d’importer des photos de presque 1300 appareils photos numériques de marques et de modèles différents (de l’Apple iPhone jusqu’au Vivitar Vivicam en passant par tous les Canon, les Nikon, les Olympus et les Pentax de ce monde). gphoto peut être utilisé de façon autonome (les photos sont simplement sauvegardées dans un répertoire approprié) ou au sein d’un logiciel offrant des fonctionnalités plus avancées de gestion de photos.

Parmi ce genre de logiciels plus avancés, citons digiKam et Shotwell, ce dernier étant depuis peu le gestionnaire de photos standard d’Ubuntu (la distribution Linux la plus populaire au monde). Shotwell permet également d’organiser les photos par évènements (par date) et par mots clés (tagging). On peut mettre une note à ses photos (de zéro à cinq étoiles), de les renommer et de changer leurs dates.

Avec Shotwell, il devient facile de changer l’orientation des photos, de les recadrer, de réduire les yeux rouges et d’ajuster l’exposition, la saturation, la teinte et la température de chaque photo (manuellement ou automatiquement, en général avec de très bons résultats). Dès lors, plus de prétextes pour se contenter de photos moches…

Les possibilités de correction et de restauration de photos de Shotwell sont très souvent suffisantes mais, de temps en temps, il est nécessaire d’aller plus loin dans la manipulation d’image. Shotwell s’intègre parfaitement avec Gimp, un éditeur d’image très puissant avec une interface utilisateur nécessitant quelques heures d’adaptation pour en comprendre toute la finesse.

Les photographes avertis ont tendance à utiliser le format RAW à la place de JPEG (voir encadré plus bas) pour avoir plus de maîtrise sur le rendu final des photos. Par exemple, dans le milieu professionnel, il est impératif d’avoir un contrôle absolu sur la balance des blancs, des espaces RGB, des profiles ICC et du rendu des couleurs. Sur ces points, Shotwell ne faiblit pas. Grâce à l’intégration de libraw,  Shotwell peut facilement importer des photos RAW.

Dès que les fichiers RAW sont importés, Shotwell s’interface avec UFRaw qui offre un « workflow » de gestion des couleurs de niveau professionnel. UFRaw permet de modifier la balance des blancs (automatiquement ou manuellement), le rendu monochrome (en utilisant éventuellement un mélangeur RGB), la courbe de luminosité (avec possibilité d’utiliser une courbe personnalisée NTC), la gestion des couleurs (avec choix des profils ICC pour l’appareil photo, le fichier de sortie et l’écran), la correction de la luminosité et de la saturation des couleurs, le recadrage, la rotation, la modification des paramètres EXIF et, naturellement, la sauvegarde en formats JPEG, TIFF, PPM ou PNG avec choix du taux de compression. Comme vous pouvez le constater, que du très costaud…

Que-ce que le format RAW ?

Le RAW (qui signifie, bien sûr, brut en anglais) est un format de fichier produit par les appareils photos professionnels (et quelques appareils photos amateurs avec une mise à jour appropriée – voir ceci pour les Canon par exemple). Un fichier RAW contient, en général, les données enregistrées par le capteur numérique d’un appareil photo lors de la prise de vue. Ainsi, elle ne contient pas vraiment une image mais, plus précisément, des mesures électriques. Chaque appareil photo professionnel a son propre format RAW (parce que les capteurs ne sont pas les mêmes lorsqu’on change d’appareil..). Le RAW permet ensuite au photographe d’intervenir avec créativité sur la qualité finale des photos (à la manières des photographes d’antan qui intervenaient durant le processus de développement). Pour afficher un fichier RAW à l’écran, il est nécessaire d’utiliser un logiciel approprié.

Ce logiciel peut être dans l’appareil photo lui-même. Dans ce cas, l’appareil photo produit directement une image, le plus souvent dans le format JPEG. C’est ainsi pour la plupart des appareils photos amateurs. Cette solution est la plus contraignante parce que les possibilités de changer le rendu des photos par la suite sont limitées.

Dans le deuxième cas, le  logiciel est fourni à l’achat de l’appareil photo (e.g. ZoomBrowser pour Canon et ViewNX pour Nikon) et permet de manipuler les images après la prise de vue. En général, ces logiciels sont commerciaux et sont relativement austères. De nombreux photographes investissent dans d’autres logiciels onéreux tels que ceux d’Adobe.

La troisième possibilité est celle que je préconise : utiliser des logiciels libres tels que Shotwell et UFRaw pour (presque) tout faire !

Après avoir passé des heures à peaufiner leurs photos, nombreux sont ceux et celles qui veulent partager les meilleures à travers les réseaux sociaux. Shotwell s’intègre parfaitement à Facebook, à Flickr et à Picasa et permet d’exporter très simplement une sélection de ses photos vers ces sites. Il va sans dire que Shotwell permet aussi d’imprimer ses photos ainsi que de créer des diaporamas.

En quelques années, les logiciels libres sont devenus incontournables. Les Linux, Apache, PHP, MySQL, Firefox, VLC, Mplayer, Android et consorts sont utilisés par des millions de personnes chaque jour. Dans cet article, nous avons vu que les logiciels libres pour la manipulation de photos numériques n’ont pas grand chose à envier aux logiciels commerciaux. Au fait, j’ai oublié le plus important : ces logiciels libres sont tous gratuits !

[Je suis Avinash Meetoo et j'ai initialement écrit cet article pour le Numéro 4 du magazine 100% Mauricien, TechKnow. J'ai quelques autres articles sur la photographie sur mon blog personnel et des articles sur le logiciel libre sur mon blog professionel. Finalement, je suis sur LinkedIn, Twitter et Facebook.]

20Oct/10Off

Using 3G/UMTS in Mauritius

Posted by Jochen Kirstaetter

After some conversation, threads in online forum and mailing lists I thought about writing this article on how to setup, configure and use 3G/UMTS connections on Linux here in Mauritius. Personally, I can only share my experience with Emtel Ltd. but try to give some clues about how to configure Orange as well.

Emtel 3G/UMTS surf stick

Emtel provides different surf sticks from Huawei. Back in 2007, I started with an E220 that wouldn't run on Windows Vista either. Nowadays, you just plug in the surf stick (ie. E169) and usually the Network Manager will detect the new broadband modem. Nothing to worry about. The Linux Network Manager even provides a connection profile for Emtel here in Mauritius and establishing the Internet connection is done in less than 2 minutes... even quicker.

Using wvdial

Old-fashioned Linux users might not take Network Manager into consideration but feel comfortable with wvdial. Although that wvdial is primarily used with serial port attached modems, it can operate on USB ports as well. Following is my configuration from /etc/wvdial.conf:

[Dialer Defaults]
Phone = *99#
Username = emtel
Password = emtel
New PPPD = yes
Stupid Mode = 1
Dial Command = ATDT

[Dialer emtel]
Modem = /dev/ttyUSB0
Baud = 3774000
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+cgdcont=1,"ip","web"
ISDN = 0
Modem Type = Analog Modem

The values of user name and password are optional and can be configured as you like. In case that your SIM card is protected by a pin - which is highly advised, you might another dialer section in your configuration file like so:

[Dialer pin]
Modem = /dev/ttyUSB0
Init1 = AT+CPIN=0000

This way you can "daisy-chain" your command to establish your Internet connection like so:

wvdial pin emtel

And it works auto-magically.
Depending on your group assignments (dialout), you might have to sudo the wvdial statement like so:

sudo wvdial pin emtel

Orange parameters

As far as I could figure out without really testing it myself, it is also necessary to set the Access Point (AP) manually with Orange. Well, although it is pretty obvious a lot of people seem to struggle. The AP value is "orange".

[Dialer orange]
Modem = /dev/ttyUSB0
Baud = 3774000
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+cgdcont=1,"ip","orange"
ISDN = 0
Modem Type = Analog Modem

And you are done.

Official Linux support from providers

It's just simple: Forget it!

The people at the Emtel call center are completely focused on the hardware and Mobile Connect software application provided by Huawei and are totally lost in case that you confront them with other constellations. For example, my wife's netbook has an integrated 3G/UMTS modem from Ericsson. Therefore, no need to use the Huawei surf stick at all and of course we use the existing software named Wireless Manager instead of. Now, imagine to mention at the help desk: "Ehm, sorry but what's Mobile Connect?"

And Linux after all might give the call operator sleepless nights... Who knows?

Anyways, I hope that my article and configuration could give you a helping hand and that you will be able to connect your Linux box with 3G/UMTS surf sticks here in Mauritius.

Tagged as: Comments Off
29Jul/10Off

Using ext4 in VMware machine

Posted by Jochen Kirstaetter

First of all, using a journaling filesystems like NTFS, ext4, XFS, or JFS (not to name all of them) is a very good idea and nowadays unthinkable not to do. Linux offers a good variety of different option as journaling filesystem for your system. Since years I am using SGI's XFS and I am pretty confident with stability, performance and liability of the system. In earlier years I had to struggle with incompatibilities between XFS and the boot loader. Using an ext2 formatted /boot solved this issue. But, wow, that is ages ago!

Lately, I had to setup a fresh Lucid Lynx (Ubuntu 10.04 LTS) system for a change of our internal groupware / messaging system. Therefore, I fired up a new virtual machine with almost standard configuration in VMware Server and run through our network-based PXE boot and installation procedure. At a certain step in this process, Ubuntu asks you about the partitioning of your hard drive(s). Honestly, I have to say that only out of curiousity I sticked to the "default" suggestion and gave my faith and trust into the Ubuntu installation routine... Resulting to have an ext4 based root mount point ( / ). The rest of the installation went on without further concerns or worries.

Note:
I really can't remember why I chose to go away from my favourite...
Well, it should turn out to be the wrong decision after all.

Ok, let's continue the story about ext4 in a VMware based virtual machine. After some hours installing additional packages and configuring the new system using LDAP for general authentication and login, I had an "out-of-the-box" usable enterprise messaging system based on Zarafa 6.40 Community Edition inclusive proper SSL-based Webaccess interface and Z-Push extension for ActiveSync with my Nokia mobile. Straightforward and pretty nice for the time spent on the setup.

Having priority on other tasks I let the system just running and didn't pay any further attention at all. Until I run into an upgrade of "Mail for Exchange" on Symbian OS. My mobile did not bother me at all with the upgrade and everything went smooth, but trying to re-establish the ActiveSync connection to the Zarafa messaging system resulted in a frustating situation. So, I shifted my focus back to the Linux system and I was amazed to figure out that the root had been remounted readonly due to hard drive failures or at least ext4 reported errors.

Firing up Google only confirmed my concerns and it seems that using ext4 for VMware based virtual machines does not look like a stable and reliable candidate to me. You might consider reading those external resources:

ext4 fs corruption under VMWare Server 2.01
Bug #389555 - ext4 filesystem corruption

Well, I learned my lesson and ext{2|3|4} based filesystems are not going to be used on any of my Linux systems or customer installations in the future.

Addendum: I did not try this setup in other virtualization environments like VirtualBox, qemu, kvm, Xen, etc.

Tagged as: Comments Off
24Apr/101

Port Serie Saison I

Posted by Dominique Derrier

db9_pinoutsEt ben, voila j'ai perdu un écran sur la machine qui me sert de routeur. Sans clavier ni écran le diagnostique n'est pas facile en cas d'erreur. Mais heureusement le mode console est là. Je ne sais pas depuis combien de temps cela existe dans le kernel, mais je pense que cela ne doit pas être loin des origines.

16Apr/10Off

Troubleshooting VMware on Ubuntu

Posted by Jochen Kirstaetter

Summary of different problems while using VMware products on Ubuntu. This article is going to be updated from time to time with new information about running VMware products more or less smoothly on Ubuntu.

Following are links to existing articles:

 

VMware mouse grab/ungrab problem

(Source: LinuxInsight)

Upgrading GTK library in Ubuntu since Karmic Koala gives you a strange mouse behaviour. Even if you have "Grab when cursor enters window" option set, VMware won't grab your pointer when you move mouse into the VMware window. Also, if you use Ctrl-G to capture the pointer, VMware window will release it as soon as you move mouse around a little bit. Quite annoying behavior...

Fortunately, there's a simple workaround that can fix things until VMware resolves incompatibilities with the new GTK library. VMware Workstation ships with many standard libraries including libgtk, so the only thing you need to do is to force it to use it's own versions. The simplest way to do that is to add the following line to the end of the /etc/vmware/bootstrap configuration file and restart the Workstation.

export VMWARE_USE_SHIPPED_GTK="force"

The interface will look slightly odd, because older version of GTK is being used, but at least it will work properly.

Note: After upgrading a new Linux kernel, it is necessary to compile the VMware modules, this requires to temporarily comment the export line in /etc/vmware/bootstrap.

Tagged as: Comments Off
19Mar/10Off

Install Adobe AIR on Ubuntu/Linux

Posted by Jochen Kirstaetter

Since quite some time Adobe Technologies released the Linux version of Adobe AIR to bring web applications and widgets to your desktop. Installing new applications on a Linux system is not always as easy as switching the computer on. The following instructions might be helpful to install Adobe AIR on any Linux system.

First of all, get the latest installer of Adobe AIR from http://get.adobe.com/air/ - as of writing this article the file name is AdobeAIRInstaller.bin. Save the download in your preferred folder.

Now, there are two ways to run the installer - visual style or console style.

Visual Installation

Launch your favorite or standard file manager like thunar or nautilus and browse to the folder where the AdobeAIRInstaller.bin has been saved.

  • Right click on the file and choose 'Properties' in the context menu
  • Set 'Execute' permissions and confirm modifications with OK
  • Rename file into AdobeAIRInstaller
  • Double click and follow the instructions

Using the console

  • Open a terminal like xterm
  • Change into the directory where you stored the download
  • Run this command:
    [code]chmod +x AdobeAIRInstaller.bin[/code]
  • Now run this command:
    [code]sudo ./AdobeAIRInstaller.bin[/code]

The normal installer will open, install it. From now whenever you download a .air file, just double click it and it will be installed.

Troubleshooting

In case that the installation does not start properly, try to install via console. This gives you more details about the reasons. Should you run into something like this:

[code]AdobeAIRInstaller.bin: 1: Syntax error: "(" unexpected[/code]

Double check the execute permission of the installer file and try again.

 

Tagged as: Comments Off
22Aug/096

Linux Mint 7 Gloria

Posted by Avinash Meetoo

20090822-linux-mint

I have been using Linux for ten years now and like most of you I like to try different distributions. A few months ago I discovered Linux Mint while browsing on DistroWatch. I was surprised to see that Linux Mint was really popular (I think it was 4th at that time) and just now it's the 3rd most popular Linux distribution...

Linux Mint, which is at version 7 now, is based on Ubuntu which itself is built on Debian. So we're in excellent company here.

These are the things in Linux Mint that I really like:

  • Linux Mint contain codecs for most of the media files (audio / video) found on the Internet out of the box.
  • The user interface is gorgeous and really feels like something that has been designed by someone who really knows about user interaction. For example, Mint has a menu (pictured above) which contains selected applications (favourites) and which is 100% customisable. It's much better (IMHO) than the default Gnome menu.
  • There is an application which shows all software available in Linux Mint with screenshots. What is great is that this list can be sorted by popularity. It's a great way to discover open source applications which are used by a lot of people and which you don't personally know about.
  • Compiz (as well as the proprietary Nvidia driver in my case) is preinstalled and is sensibly configured: not a lot of eye candy but, instead, a pragmatic choice of settings to make Gnome more usable.
  • aptitude! I love anything .deb-based.

I'm really impressed by Linux Mint. This is the only distribution I use at home. At work I use CentOS Linux because, well, it is great for a business environment. But I might replace CentOS on my own computer there with Linux Mint. Just don't tell anyone.

9Jul/096

What do you think of Google Chrome OS?

Posted by Avinash Meetoo

20090709-google-chrome

Two days ago, Google announced the Google Chrome OS (Operating System) project.

Google Chrome OS can be seen as Linux with a special window manager to only allow one application: the Google Chrome web browser. In essence, a computer running Google Chrome OS will only have one application, a web browser. This means that the user will only use web-based applications presumably (but not forcibly) from Google (e.g. Gmail, Google Docs, etc.)

Google will initially launch this OS on netbooks (those ultra small laptops with small screens.) Netbooks account for only a few % of the market and most people use them for browsing only so this seems a sensible strategy (it would have been stupid to launch the OS on full-fledged PCs as people would have immediately requested for "Photoshop on the web".)

Our friend, Fake Steve, is adamant that building Google Chrome OS is not a good stategy for Google. In my opinion, he is correct when he questions the business logic of Google. You see, Chrome OS is going to be free (like most Linux distributions), has one good browser (like most Linux distributions), with good support for Google apps (like most Linux distribuions) but is going to be costly to build for Google (unlike most Linux distributions which exist already.) So why build yet another Linux distribution (which is what Google Chrome OS is in essence...) Why don't Google use something which exists already?

What do you think?

25Jun/092

/proc le coffre aux trésors

Posted by Dominique Derrier

coffre_tresorAutour du kernel, nous utilisons tous une foule de programmes pour récupérer les informations et utiliser notre système du mieux possible. Sous linux, toutes ces informations sont accessibles via /proc. Un peu de curiosité vous montrera les bijoux techniques qu'il est possible de récupérer.