Update kernel patch for VMware Player 4.0.3
As I stated some days ago, after upgrading to Ubuntu Precise Pangolin, aka 12.04 LTS, I had a minor obstacle with VMware products. Today, VMware offered to upgrade to Player 4.0.3 due to security-related reasons.
Initially, I thought that this update might have the patch for kernel 3.2.0 integrated but sadly that is not the case.
'Hacking' the kernel patch
My first intuitive try to run the existing patch against the sources of VMware Player 4.0.3 failed, as the patch by Stefano Angeleri (weltall) is originally written explicitely against Workstation 8.0.2 and Player 4.0.2.
But this is nothing to worry about seriously. Just fire up your favourite editor of choice and modify the version signature for VMware Player, like so:
nano patch-modules_3.2.0.sh
And update line 8 for the new version:
plreqver=4.0.3
Save the shell script and run it as super-user (root):
sudo ./patch-modules_3.2.0.sh
In case that you previously patched your VMware sources you have to remove some artifacts beforehand. Otherwise, the patch script will inform you like so:
/usr/lib/vmware/modules/source/.patched found. You have already patched your sources. Exiting
In that case, simply remove the 'hidden' file and run the shell script again:
sudo rm /usr/lib/vmware/modules/source/.patched
sudo ./patch-modules_3.2.0.sh
To finalise your installation either restart the vmware service or reboot your machine. On first start VMware will present you their EULA which you have to accept, and everything gets back to normal operation mode. Currently, I would assume that in case of VMware Workstation 8.0.3 you can follow the same steps as just described.
Small hiccup with VMware Player after upgrading to Ubuntu 12.04
The upgrade process
Finally, it was time to upgrade to a new LTS version of Ubuntu - 12.04 aka Precise Pangolin. I scheduled the weekend for this task and despite the nickname of Mauritius (Cyber Island) it took roughly 6 hours to download nearly 2.400 packages. No problem in general, as I have spare machines to work on, and it was weekend anyway. All went very smooth and only a few packages required manual attention due to local modifications in the configuration. With the new kernel 3.2.0-24 it was necessary to reboot the system and compared to the last upgrade, I got my graphical login as expected.
Compilation of VMware Player 4.x fails
A quick test on the installed applications, Firefox, Thunderbird, Chromium, Skype, CrossOver, etc. reveils that everything is fine in general. Firing up VMware Player displays the known kernel mod dialog that requires to compile the modules for the newly booted kernel. Usually, this isn't a big issue but this time I was confronted with the situation that vmnet didn't compile as expected ("Failed to compile module vmnet"). Luckily, this issue is already well-known, even though with "Failed to compile module vmmon" as general reason but nevertheless it was very easy and quick to find the solution to this problem. In VMware Communities there are several forum threads related to this topic and VMware provides the necessary patch file for Workstation 8.0.2 and Player 4.0.2. In case that you are still on Workstation 7.x or Player 3.x there is another patch file available.
After download extract the file like so:
tar -xzvf vmware802fixlinux320.tar.gz
and run the patch script as super-user:
sudo ./patch-modules_3.2.0.sh
This will alter the existing installation and source files of VMware Player on your machine.
As last step, which isn't described in many other resources, you have to restart the vmware service, or for the heart-fainted, just reboot your system:
sudo service vmware restart
This will load the newly created kernel modules into your userspace, and after that VMware Player will start as usual.
Summary
Upgrading any derivate of Ubuntu, in my case Xubuntu, is quick and easy done but it might hold some surprises from time to time. Nonetheless, it is absolutely worthy to go for it. Currently, this patch for VMware is the only obstacle I had to face so far and my system feels and looks better than before. Happy upgrade!
Resources
I used the following links based on Google search results:
http://communities.vmware.com/message/1902218#1902218
http://weltall.heliohost.org/wordpress/2012/01/26/vmware-workstation-8-0-2-player-4-0-2-fix-for-linux-kernel-3-2-and-3-3/
Update on VMware Player 4.0.3
Please continue to read on my follow-up article in case that you upgraded either VMware Workstation 8.0.3 or VMware Player 4.0.3.
Terminator and Xournal
A brief post to tell you that I stumbled upon two great open source software yesterday:

Terminator can be used to open multiple Gnome terminals in a grid as shown above. As it also works in full-screen mode, Terminator is great when you have to, say, administer multiple servers at the same time using SSH.
Xournal is, according to its author, a note taking application. But, and this is a wonderful side-effect, it is also a quite formidable PDF annotation tool!
Both can be installed on Fedora using yum and I suppose they are also available in the Ubuntu repositories (even though I’ve not checked) and can be installed with apt-get or aptitude.
Dennis Ritchie is dead
Dennis Ritchie died this morning.
Forty years ago, he invented two things: the C programming language (together with Brian Kernighan) and the UNIX operating system (together with Ken Thompson).
C
I first came across the C programming language when I was 16 in Lower VI. At that time, I had an Amiga and I wanted to do some game and AI programming. I read in magazine articles that this required a powerful programming language such as C and, by sheer luck, I managed to get a copy of the seminal book, The C Programming Language, from Editions de l’Océan Indien in Curepipe. I distinctly remember that the book cost Rs 120.00 and that I had to borrow the money from a good friend of mine, Ritesh, to buy it.
I started reading the book when I got home and couldn’t leave it until the end. After 20 years, I still have the book and I still like to open it at random and marvel at its conciseness and precision.
I still think that all computer scientists should know C.
UNIX
What can I say? UNIX is a marvelous operating system: powerful yet easy to understand. The historical UNIX has given way to modern variants like Mac OS X and Linux but the philosophy has remained the same and even has a name: it’s called the UNIX-way. In UNIX, each tool does one thing and only one thing. The trick is to combine the tools (using pipes or logical operators for example) to build more complex workflows…
Funnily, laymen do not realise that they depend on UNIX all day long as all Mac computers, the Orange Livebox, Sony and Samsung LCD televisions, Android smartphones, the iPhone and the iPad as well as all the computers at Google, Yahoo! and Amazon (among others) run some variant of UNIX.
Interestingly, the most powerful computers on the planet are powered by Linux.
So, thank you again to you Dennis Ritchie. You changed the world.
RIP.
Les logiciels libres: une opportunité pour Maurice
Dans notre monde moderne, la plupart de nos activités de commerce, de communication et de loisirs fonctionnent grâce aux ordinateurs et, surtout, grâce aux logiciels (software) que ceux-ci exécutent. Il existe deux types de logiciels: ceux qui sont libres (open source software) et ceux qui sont non-libres (aussi connus comme logiciels propriétaires ou privateurs).
Qu’y a t-il de commun entre Linux, Firefox, Chrome, OpenOffice et VLC Media Player? Ce sont tous des logiciels libres! Ce type de logiciel a plusieurs caractéristiques qu’il est intéressant d’analyser.
Premièrement, un logiciel est libre s’il peut être utilisé par tous, pour tous les usages. Par exemple, le navigateur Firefox sous Linux peut être utilisé par un médecin travaillant pour le secteur public soudanais pour s’informer sur les dernières recherches médicales concernant la malaria. Bizarrement, ce même médecin n’a pas le droit de faire la même chose avec Internet Explorer sous Windows (qui sont tout deux non-libres) parce que le Soudan est un pays que les États-Unis n’aiment pas… « La liberté des uns s’arrête là où commence celle des autres » en général… sauf dans le cas des logiciels non-libres.
Deuxièment, un logiciel est libre s’il peut être redistribué. En d’autres mots, dès que quelqu’un utilise un logiciel libre, il peut, sans violer la loi, donner des copies de ce logiciel à ses proches et connaissances. Par exemple, un enseignant qui utiliserait OpenOffice, qui est une suite bureautique libre très complète avec traitement de texte, tableur, logiciel de présentation, logiciel de dessin et base de données, peut en faire des copies et les redistribuer à tous ses étudiants pour qu’ils puissent travailler ensemble. Évidemment, la redistribution est gratuite! Pour un pays avec des moyens limités comme Maurice, cette caractéristique est importante.
[Le code source de Firefox inclut WebM, le nouveau format vidéo proposé par Google]
Troisièmement, un logiciel est libre si chacun peut étudier son fonctionnement pour, éventuellement, l’adapter à ses besoins. Les logiciels sont écrits en utilisant un langage de programmation tel que C, C++, Java ou autre. On appelle cela le code source du logiciel. Dans la plupart des cas, les éditeurs des logiciels non-libres ne donnent pas la possibilité d’examiner ce code source contrairement aux concepteurs des logiciels libres (d’où le terme open source). Pour la plupart des gens, qui ne sont pas des programmeurs, le code source n’est pas compréhensible et présente peu d’intérêt. Par contre, ceux qui manient les langages de programmation y trouvent la possibilité (1) de s’instruire en regardant ce que font les autres (ce qui est important lorsqu’on est étudiant en informatique par exemple), (2) d’ajouter des fonctionnalités pour enrichir le logiciel et (3) de corriger les erreurs qui s’y trouvent.
Ce dernier point a beaucoup d’importance: les logiciels libres sont souvent très fiables, bien plus fiables que les logiciels non-libres, parce que les erreurs de programmation sont corrigés par des utilisateurs dès qu’ils sont découverts. C’est d’ailleurs pour cette raison que des entreprises très connus tels que Google, Amazon, Facebook et Twitter utilisent majoritairement des logiciels libres pour offrir leurs services.
Quatrièmement, un logiciel est libre si chacun peut améliorer le logiciel pour ensuite le redistribuer au public s’il le souhaite. Comme chacun a accès au code source des logiciels qu’il utilise, cela permet aux plus créatifs d’entre nous d’y apporter des améliorations notables et de les partager avec les autres… Cette approche contributive du développement de logiciels libres permet de rapidement arriver à des niveaux de performance et de fiabilité phénoménaux.
Pour être complet, il est important de mentionner qu’il existe deux types de logiciels libres: ceux qui sont sous une licence virale (e.g. GPL) qui force les personnes (et les entreprises) à redistribuer leurs améliorations au public et ceux qui sont sous une licence non-virale (e.g. BSD, MIT, Apache) qui laisse la liberté aux personnes (et aux entreprises) de choisir s’il veulent redistribuer leurs améliorations ou non… Les puristes préfèrent le GPL tandis que les pragmatiques penchent plutôt pour les licences non-virales.
Les logiciels libres à Maurice
En 2008, RedHat a fait une étude sur le niveau d’activité autour des logiciels libres dans le monde en mesurant le nombre d’utilisateurs, le nombre de logiciels libres écrits, la politique instaurée par chaque gouvernement concernant l’utilisation des logiciels libres, le nombre de conférences, etc. On voit aisément que les pays occidentaux et les pays BRIC (Brésil / Russie / Inde / Chine) sont très actifs en ce qui concerne le logiciel libre.
Dans notre pays, beaucoup d’entreprises sont passées au logiciel libre. Il suffit de regarder les annonces d’emploi demandant des compétences en Linux, Java, PHP, MySQL, etc. pour s’en rendre compte. D’ailleurs plusieurs entreprises majeures de l’île font fonctionner leurs systèmes informatiques les plus critiques sur des serveurs Linux. Et ils ont raison.
Le Linux User Group of Mauritius, que j’ai aidé à mettre sur pied dix ans de cela, a pour mission d’aider les Mauriciens et les entreprises mauriciennes à adopter les logiciels libres.
Ah. J’ai oublié le plus important. Les logiciels libres sont gratuits!
[J'ai écris cet article dans le cadre de ma collaboration avec le magazine TechKnow.]
Thank you for making OSS2011 a success
OSS2011: Le Logiciel Libre, 2011 et après
Thank you to all participants for making this seminar on Open Source Software in Mauritius such a success.
All the members of the organising team (from left to right: Vara Appavoo / UoM, Ajay Ramjatan / LUGM, Begum Durgahee / UoM, Anwar Chutoo / UoM, Jayantee Gukhool / AUF, Anuja Appavoo / UoM and Avinash Meetoo / LUGM) worked really hard to get everything right. Of course, we were far from being perfect but, still, we were happy as all of us, organisers as well as the numerous participants, learned a lot during the day and met interesting people.
Special thanks to LUGM members who were present on that day especially Logan Velvindron who talked about how he has managed to mitigate the effects of denial of service attacks in OpenBSD. Special thanks also to Ajay Ramjatan who brought his own computers to demonstrate a variety of Open Source Software to the participants. His focus on multimedia software was a refreshing change from what we generally are shown during such an event.
The presentations from institutions like the MIE and UoM were very interesting as well as those from the other students (I was very impressed!) and private companies.
Of course, I loved the interactive session from 13:30 to 15:00. I had the pleasure of being the chairperson for that session and I found the discussion very lively and enriching. I loved how young people and older ones (like me…) could share the same kind of vision for our beloved country.
In three weeks, Anwar Chutoo and his team will finalise a report on the conclusions reached during the event which will then be circulated to all participants.
Once again, thanks to all who helped: organisers, presenters as well as participants.
See you all for OSS2012.
(Thanks to Irfaan Lamarque for the nice picture)
OSS2011: Seminar on Linux and OSS on 22 June 2011
As the founder of the Linux User Group of Mauritius (LUGM), I am delighted to, once again, tell you that there will be a Seminar on Open Source Software on 22 June 2011 at the University of Mauritius.
The seminar is organised by LUGM in collaboration with the University of Mauritius and the Agence Universitaire de la Francophonie and will be held at the Burrunchobay Lecture Theatre at the University of Mauritius (Google Map)
The programme for the day is as follows:
- 09:00 – Official opening
- 09:15 – First presentation session: Policy on OSS in Mauritius
- 10:30 – Second presentation session: Students contributing to OSS
- 11:15 – Third presentation session: Real world use of OSS
- 12:00 – Lunch break
- 13:15 – Three working sessions in parallel: (1) OSS in industry (to be chaired by myself), (2) OSS in education and (3) OSS at the level of the Government.
- 14:30 – Synthesis of discussions held
I would be more that happy if you could participate in the seminar and contribute to the discussions based on your extensive experience on using open source software at work. More information about the event can be found on http://cse.uom.ac.mu/oss/fr
Please note that the seminar is open to everyone but, because of logistical constraints, it is important to confirm your presence by IMMEDIATELY registering at http://cse.uom.ac.mu/oss/fr/inscription_invite
I would like to thank Ajay Ramjatan of LUGM as well as Jayantee Gukhool, Director of AUF, and Anwar Chutoo, Lecturer at UoM, and his colleagues for making this seminar a reality.
Please feel free to disseminate to friends, colleagues and relatives :-)
Un serveur svn over ssh
Tout le monde connait le fabuleux gestionnaire de version subversion non ? svn.
> L'idée est d'utiliser le transfert de fichiers dans la repository via ssh cryptée.
> L'autre contrainte est de ne pas donner un shell aux utilisateurs de svn.
Ssh permet cela facilement: Go pour un Setup en 5min avec un serveur linux ?
WWL: Work with Linux, it’s already reality.
Linkbynet Indian Ocean (LIO) est implémentée à Maurice depuis sept ans déjà. Filiale d’une compagnie d’origine française affichant plus de 250 salariés dans le monde, Linkbynet ne cesse de s'accroître et ne compte pas s'arrêter en si bon chemin.
Didier Joomun, administrateur Unix dans la branche Mauricienne de Linkbynet depuis bientôt trois ans et membre exécutif du LUGM, nous parle de son parcours et nous livre ses impressions au sujet du métier qu'il exerce.
Se la jouer avec la VM linux

Source: http://blog.nasa.fr/wp/linux/2011-02-18/se-la-jouer-avec-la-vm-linux/
Vous voulez jouer au malin avec la gestion Virtual Memory de linux... Ce tips est pour vous. Il permet de vider la mémoire cache et avoir de la mémoire libre.
Mais j'entends au fond de la salle : qu'est-ce qui est dans le cache ?
Et bien facile, mon ptit gars... il va contenir les fichiers qui sont extraits du disque avant d'être utilisés. Le but est d'accélérer l'accès lors d'une lecture suivante.








