Ressources documentaires pour Mandriva Linux et les Logiciels Libres

Multilingual support in my blog

Since some days, i installed the WPML plugin which allow to have multilingual support for WordPress. You can switch from one language to another one from the widget on the left side, or the links at the bottom of the pages.

  • By default the site will be displayed in english. It will contains most of my technicals and Linux/Mandriva related posts
  • the french site will be accessible by http://www.linux-wizard.net/fr/ URL. There will have some technicals relating stuffs, but most of the time you will find only my personal stuff.
  • Technicals documentations that i will upload to my blog will mostly be in French.

Je suis une fille qui ne se connait pas !

Attention, une fois n’est pas coutume, je vais faire un post très personnel. Donc Linuxiens et informaticiens, passez votre chemin !

Aujourd’hui lors de mon rendez-vous avec ma psychothérapeute, j’ai eu droit a une grande révélation : j’ai un comportement de fille et je suis une fille qui ne se connait pas ! Quelques exemples/preuves :

  1. En effet, je suis capable de faire du shopping, et n’ai aucun soucis à faire du shopping avec une fille et même à la conseiller : il semblerait que j’ai très bon goût d’ailleurs 🙂
  2. Pareil pour la déco, tu veux refaire la déco de ton salon ? demande moi. Je peux même t’accompagner et t’aider à choisir ce qu’il faut. Par contre pour le côté bricolage …
  3. je garde un souvenir impérissable des Harlequins de ma mère que je lisais …
  4. Je n’ai pas de référence masculine ! Ben oui, j’ai été élevé par ma mère et ma grand-mère. Ma référence « masculine » la plus proche fut le curé de ma paroisse … c’est pour dire !
  5. J’aime discuter, parler des problèmes, écouter les gens : en gros je suis la super bonne copine avec qui on peut discuter, se confier et avoir des conseils à la clés ( avec point de vue de mec et de femme en même temps ) !
  6. Mon film préféré est et reste Quand Harry rencontre Sally : dans le genre comédie sentimentale. J’ai aussi un faible pour Ghost et Dirty Dancing, mais je préfère La Fièvre du Samedi Soir ne serait-ce que pour la bande son 🙂 En plus récent, on peut mettre sans problème dans ma short-list Les poupées russesla scène à la gare
  7. Qu’est ce que je fais lorsque je suis déprimé ? Je m’enfile de la glace ( par bac d’1 Litre ) ou des bonbons ( par boite d’1kg ) …
  8. Parfums et déodorants préférés ? Vanille-Fraise ou Framboise en parfum, et pour les déodorants Ushuaïa Grenade, Papaye ou Pulpe de fruit de la passion. Mais pour sauver la face, j’ai un Axe qui traine dans ma salle de bain et que je met de temps en temps …
  9. J’avais une big collection de Shojo dans ma bibliothèque. J’ai pratiquement tout revendu il y a quelques années, mais je continue à en lire sur le net …
  10. Je suis plutôt du genre : « allez on en discute et on essaie de résoudre le problème », que « vas y laisse moi tranquille, cela me saoule »
  11. Je reste un inconditionnel du livre Les hommes viennent de Mars et les femmes de Venus ! Il a même été cité dans Sex & The City. Oui, je regarde Sex & the City, Le destin de Lisa, Un gars une fille …
  12. Après Science & Vie, les magazines sur lesquels je me jette dans une salle d’attente sont … les magazines féminins
  13. Mes blogs perso  préférés ? Sexactu de Maïa Mazaurette, Leax ‘Adventures, et un tout nouveau blog que je viens de découvrir : Le bocal du poisson

Mais bon ça va, j’ai aussi un côté mec, et non je ne suis pas un métrosexuel ! Mon but, maintenant que je suis célibataire, sera de renforcer mon côté masculin 🙂

Importing a SVN repository from one server to another one

As now I’m using Netbeans, I had issues with key based authentication for CVS project in Netbeans. That’s why I decide to import my CVS project to SVN. At some point, as the SVN repository was on my own personal computer, I decide to move it to a public server I had, but only allow SSH access to it. So here is the procedure to move a SVN repository to another SVN server, and only allow svn+ssh access ( no webdav, no network svnserve access ) under Mandriva.

  1. On your old SVN server, you have to dump the entire SVN repository : [bash light= »1″]svnadmin dump /path/to/your/repository > /tmp/repository.svn_dump[/bash]
  2. Now copy the dump file somewhere on the new SVN server. You may want to use scp if your SSH key based authentication is working correctly. For example : [bash light= »1″]scp /tmp/repository.svn_dump user@new-svn-server:/tmp[/bash]
  3. Once done, you may want to delete the dump file on the old server and eventually delete also the old SVN repo
  4. On your new server, install the SVN server package and its associated tools : [bash light= »1″]urpmi subversion-server subversion-tools[/bash]
  5. check that svnserve is not started at boot by xinetd. For this check /etc/xinetd.d/svnserve configuration file and check that you have disable = yes as follows : [plain]# default: off
    # description: svnserve is the server part of Subversion.
    service svnserve
    {
    disable             = yes
    port                = 3690
    socket_type         = stream
    protocol            = tcp
    wait                = no
    user                = svn
    server              = /usr/bin/svnserve
    server_args         = -i -r /var/lib/svn/repositories
    }[/plain]
  6. Now create the repository tree on the new server : [bash light= »1″]svnadmin create /var/lib/svn/repositories/[/bash]
  7. Import the dumped repository file in the new SVN repository : [bash light= »1″]svnadmin load /var/lib/svn/repositories/ < /tmp/repository.svn_dump[/bash]
  8. If the importation is successful, now you should ensure that the users connecting with SSH will have write access to the repository. For this add the users to the svn group : [bash light= »1″]usermod -G svn -a user[/bash]
  9. Now add a default ACL for the group to the repository giving read, write and execute ( rwX ) rights to all members of the svn group : [bash light= »1″]setfacl -R -m d:g:svn:rwX /var/lib/svn/repositories/[/bash]
  10. Check that from a remote computer you can list the content of the repository : [bash light= »1″]svn list svn+ssh://user@new-svn-server/var/lib/svn/repositories[/bash]

Happy coding with Subversion 🙂

Ressources :

Netbeans : my new PHP IDE of choice

During a longPHP support dans Netbeans time my PHP development of choice was http://www.eclipse.org/ and the PHP plugin for Eclipse : http://www.phpeclipse.com/. Please note that there’s another PHP plugin for Eclipse developped by Zend and IBM : http://www.eclipse.org/pdt/ also known as the PHP Development Project. However I was mostly using Eclipse and phpeclipse as it was the first PHP plugin I used, and I did appreciate the native integration of CVS and team management tools.

However tonight I decide to give a try to Netbeans with PHP support. What can I say ? I just fall in love. Whereas I have to be used to the new syntax highlighting, PHP support in Netbeans is top for several reasons :

  • Netbeans seems to start faster than Eclipse and can also import Eclipse projects,
  • it support project creation from Zend or Symphony frameworks ( even if I don’t use them ),
  • it supports natively and easily PHP debugging ( with xdebug ) and PHPUnit/Selenium tests,
  • It allows Code Coverage,
  • It correctly support and parsed my CSS files or .sql files,
  • Even better … It allows to connect to your database, view its schema, table structures, and of course execute queries and test your migration SQL scripts,
  • it allows to search through a plugin directly in the PHP manual
  • it can dynamically parsed and handle your PHPDoc tags and then present your PHP file structure with the PHPDoc you add : this is a good insensitive to write correct PHPDoc,
  • Last but not least it provides native CVS and Mercurial integration

In only a few clicks I add way more features than with Eclipse and PHPEclipse. Whereas it’s possible to add xdebug support to eclipse and phpeclipse, the process is not automatic and can be somewhat hard. So finally I switched to Netbeans for my PHP dev. The procedure is very straightforward under Mandriva 2010 Spring as Netbeans packages is already available. Here is the procedure, under Mandriva 2010 Spring, to install Netbeans with a useful and complete PHP development environment :

  1. install the Netbeans 6.8 and its related packages with urpmi : [bash light= »yes »]urpmi netbeans[/bash]
  2. install PHPUnit, xdebug and Selenium : [bash light= »yes »]urpmi php-pear-PHPUnit php-xdebug php-pear-Testing_Selenium[/bash]
  3. restart Apache to activate the PHP extensions : [bash light= »yes »]service httpd restart[/bash]
  4. Now start Netbeans from the menu : Application -> Development -> Development Environment -> Netbeans IDE 6.8
  5. Once Netbeans have started, deline if you wish the registration, and then select on the right pane « Install Plugins« . Here is the list of plugins I did choose for my PHP development : Database, PHP, Php Manual Search, Selenium module for PHP. Installing plugins is very easy, just select them, and then follow the instructions ( most of the time hiting Next or validating a License ). Don’t forget to accept Php Manual and thus even if the plugin is considered as not trusted.
  6. Once your plugins have been installed, restart Netbeans. You may want to decline sending informations about you to Netbeans team.

Now you can import your old Eclipse projects, or if as me you are using a control version system, just checkout your repository ( Team -> CVS -> Checkout ). Mercurial and subversion are supported. For those willing to have Git support, they should have a look at the third party plugin : Netbeans Git Plugin ( homepage : Netbeans Git Module ). To add third parties plugins, download them as .nbm file, then install them with Tools -> Plugins -> [Downloaded] tab -> Add Plugins.

There’s one big caveat however :  Netbeans internal SSH client doesn’t support key authentification. You will have to use password authentification, or create a SSH tunnel. For further informations see http://wiki.netbeans.org/FaqHowToSetUpSSHAuth.

And now happy PHP coding with Netbeans 🙂

2ème post sous WordPress

Here is my second post under WordPress. I did the following changes :

  • change the theme from RedBel to Mystique which provides a better layout
  • I manage to add 2 separates pages to show my personal photos, but also my Linux desktop environments screenshots during my lifetime as a Linux user
  • I disabled All in One SEO extension as Mystique already provides SEO features
  • I disabled also Google Ajax Feed Slide Show Widget and replace it by Lazyest Gallery. This one will only show my local screenshots and not my personal photos as slideshow on the left side.
  • I did removed Inline Posts as I will create each time a new page for the HOWTO/FAQ … normally …
  • I add Network Publisher extension. Normally It will allow me to automatically published my blog posts to Facebook. i did also subscribe to http://www.linksalpha.com/ as this service will allow me to simultaneously published my posts to Facebook, Twitter and Identi.ca 🙂
  • Oh, by the way, I did subscribe to twitter and identi.ca. You can find me under willsalsa76 surname

In the next days, i’m planning to blog about new features of the Mandriva 2010 Spring, but also show some mockups I’ve done for some Mandriva tools 😀

1er article sous WordPress !

C’est bon, après une nuit de batailles et tweaks pas possibles j’ai enfin réussi à migrer mon blog vers wordpress.

Tous les articles des blogs ont été migrés, et je vais en profiter pour corriger les liens morts. Par contre il y a un soucis avec les HOWTO et les FAQ … je ne sais encore comment je vais faire. Je ferais peut être directement des pages et copierait le contenu manuellement 🙂 De plus je n’ai pu récupérer les commentaires : peut être vais je les remettre manuellement …

En attendant j’ai installé les plugins suivant :

  • All In One SEO : censé amélioré mon référencement …
  • Article2pdf : permet de convertir les articles/posts au format PDF
  • Broken Link Checker : permet de vérifier les liens qui ne sont plus valides
  • Get Picasa Albums : Me permet d’afficher mon album photo Picasa, et ce même si désormais mes photos sont plutôt sur Facebook …
  • Google Ajax Feed Slide Show Widget : affiche aléatoirement une image issue d’un flux RSS : ici d’un de mes albums Picasa.
  • ICS Calendar : permet d’afficher les évènements Facebook auxquels je risque de participer 🙂
  • Inline Posts : je devais l’utiliser pour regrouper les FAQ et HOWTO dans une page spéciale, mais au final, à moins que ej ne trouve une solution, il ne fera pas long feu
  • RSS Importer : m’a permis d’importer mes articles via le flux RSS de mon ancien blog !
  • ShareThis : permet de partager facilement un article sur un réseau social dont Facebook
  • SI Captcha Anti-spam : permet d’éviterles spams au niveaux des commentaires et autres formulaires. Les commentaires ne sont pas modérés
  • WordPress download Monitor : me permet de charger des document et de proposer une section qui va regrouper tous mes supports de cours et autres documentations au format PDF

En passant à WordPress, je m’offre la possibilité de mettre à jour mon blog depuis d’autres programmes tiers, voire même depuis mon téléphone sous Androïd !

Bon maintenant il est temps pour moi de faire comme tout Unixien qui se respecte :

[bash][will@linux-wizard]umount -a; sleep 10; halt[/bash]

iPad reviews or an ergonomy lesson

Here are 2 videos reviews of the last Apple iPad. I do hope this will give some UI design and usabilities/ergonomics ideas to Linux dev :

Nous avons testé l'iPad avant son arrivée en France
envoyé par LEXPRESS. – Vidéos des dernières découvertes scientifiques.

]]

Showing files metadata under KDE is like Russian roulette

While reading KDE Planet, I’ve noticed this blog post from Peter Penz : Internal Cleanups. He was talking about code cleanups and refactoring he was doing in Dolphin code, which is a very good thing IMHO. Then I learnt something very annoying : since KDE 4.x and Nepomuk integration Dolphin is unable to show metadata informations for a file if the file is not indexed by Strigi and Nepomuk ( KDE bug #193592 ). This explains why I had more and more issues having the size of a photo … Most of the time I did end up starting Gwenview for this ! This is really insane to have to rely on indexing to show a simple information like the dimensions of a photo. Here are the issues I could see :

  1. On my workstations at work, we are using /home on NFS, and really I don’t want to enable Nepomuk and Strigi indexing. I do fear about the NFS support for Nepomuk/Strigi, and the fact that I will clutter my file server with the indexing database of each of my users. I have 90Go of data on my file server, I can’t imagine the size of the indexing database … SCSI disks are not cheap !
  2. Even if I do activate Nepomuk+Strigi indexing, by default only the user $HOME will be indexed. However what about the service/staff directories ? Indeed, several people of the same staff do share some common directories where they did put all of their files. What about this ? Do I have to enable manually the indexing of theses directories each time, and end up with duplicated indexed contents ?
  3. Still on this subject, if you go to /usr/share/pixmaps or /usr/share/wallpaper or on an usb key, you won’t be able to see the metadata of the file as theses locations are not indexed. It means that from the end user perspective, Dolphin behavior will change for no reason as one time it will display the info, and another time not. For the end user : Dolphin will not be a reliable way to show basic informations about a file !
  4. Activating Nepomuk/Strigi is not without issue for Dolphin too … I did notice that since I do have activate Nepomuk and strigi on my personal laptop, sometimes when entering a directory or when double-clicking on a file, Dolphin will just … freeze … No feedback, no error message, no wait message, no explanations … If you click on the UI, you will notice, once Dolphin will unfreeze, that your actions were taken into account. Just now, Dolhin was frozen during at least 30 seconds after trying to open a OpenOffice Writer document by double-clicking on it. So dolphin end up being unreliable for me … Each time I do something, I do fear about Dolphin freezes.

These kinds of behavior should really be avoided on a modern desktop environment, and reliability and speed should be top priorities. Consistent behavior should be important, especially for basics features. If I understand well, I may not expect a fix for this before KDE 4.5/4.6, which means … 2011 at worst in a stable Linux distribution …

Fixing computer freeze when using Intel chipset with dual view

Today I was willing to configure 2 laptop running Mandriva 2010 to do presentations during a meeting. So I was willing to use clone output. Unfortunately, doing so will result in an instant system freeze. Even worst, if the projector is plugged before powering on the laptop, the kernel will crash at boot ! Both laptop were using Intel chipsets ( Dell Latitude E6500, Asus A6VA ). The only solution is to disable KMS support. For this you need to generate an initrd without the i915 module ( use –builtin=i915 ), and then to eventually add in modprobe.conf : options i915 modeset=0. Once done, reboot the computer. Whereas you will not have KMS support, at least you will have dual ouput in clone mode support with no fear on freezing the kernel …

How to configure local mail delivery

I have a separate server which hosts my database. Each night, a cron script is run to dump the databases contents and rsynced the backups to another server. The backup script will log the backup in /var/log, but also send a mail. Most of the time I’m using ssmtp to use my ISP SMTP server as a relay. However my database server most of the time is not connected to internet ( and this on purpose ). This is where the issue comes : ssmtp doesn’t allow local mail delivery 🙁 Even stranger, by default local mail delivery seems to not work at all in a default Mandriva installation 🙁

To handle local mail delivery, you need a local Mail Delivery Agent ( MDA ), and your Mail Transfert Agent ( MTA ) should called the local MDA to deliver local mails. So here are 2 methods to handle local mail delivery.

Using SENDMAIL

The easiest to have local mail delivery is to install … sendmail. Just install sendmail package and start the corresponding service, and your are done.

  • Install sendmail package : [bash light= »true »]urpmi sendmail[/bash]

  • Check that sendmail is used to provide send command : [bash light= »true »]update-alternatives –display sendmail-command[/bash]

  • If this is not the case, instruct update-alternative to use sendmail : [bash light= »true »]update-alternatives –config sendmail-command[/bash]

  • Start the sendmail service : [bash light= »true »]service sendmail restart[/bash]

Using ESMTP

Another way is to use ESMTP. i do advised to use ESMTP because it allow to configure easily a SMTP relay host, and handle also local delivery. However by default, ESMTP is not usable in default Mandriva configuration as it will not install a local MDA ( mdv bug #56759 ) and does not provide a default system-wide configuration file ( mdv bug #56757 ). So here his the procedure for a very simple ESMTP configuration which handle a SMTP relay and local mail delivery :

  • Install esmtp and procmail packages : [bash light= »true »]urpmi esmtp procmail[/bash]

  • Check that esmtp is used to emulate sendmail : [bash light= »true »]update-alternatives –display sendmail-command[/bash]

  • If this is not the case, instruct update-alternative to use esmtp : [bash light= »true »]update-alternatives –config sendmail-command[/bash]

  • Once done, create an empty system-wide configuration file for esmtp : [bash light= »true »]touch /etc/esmtprc[/bash]

  • If you want to configure a SMTP relay host to send mails outside, add the hostname option followed by the SMTP address in /etc/esmtprc. For example :
    # The place where the mail goes. The actual machine name is required
    # no MX records are consulted. Commonly mailhosts are named mail.domain.com
    hostname = smtp.myisp.com:25
    
  • Now add support to procmail as local MDA for local mail delivery by setting the mda option in /etc/esmtprc :
    # Use procmail as MDA for local mail delivery
    mda "/usr/bin/procmail -d %T"
    
Testing you local mail delivery setup

Now that sendmail or ESMTP are configured, you should test if local mail delivery is working correctly. The easiest way is to use the mail command to send, but also read your local mails. For example to send a mail containing the content of /etc/nsswitch.conf to the root user, just type : [bash light= »true »]mail -v -s "Local mail test" root < /etc/nsswitch.conf[/bash]

. Now log as root, and type mail to consult root mails. you may want to use Mutt eventually to read your mails instead of mail

Catégories

My Tweets