Linux Wizard
Ressources documentaires pour Mandriva Linux et les Logiciels Libres
Ressources documentaires pour Mandriva Linux et les Logiciels Libres
Jul 20th
Here are some Mandriva 2010 Spring reviews I found on the web thanks to http://www.tuxmachines.org/ :
Jul 19th
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.
Jul 13th
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.
svnadmin dump /path/to/your/repository > /tmp/repository.svn_dump
scp /tmp/repository.svn_dump user@new-svn-server:/tmp
urpmi subversion-server subversion-tools
# 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
}
svnadmin create /var/lib/svn/repositories/
svnadmin load /var/lib/svn/repositories/ < /tmp/repository.svn_dump
usermod -G svn -a user
setfacl -R -m d:g:svn:rwX /var/lib/svn/repositories/
svn list svn+ssh://user@new-svn-server/var/lib/svn/repositories
Happy coding with Subversion
Ressources :
Jul 13th
During a long
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 :
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 :
urpmi netbeans
urpmi php-pear-PHPUnit php-xdebug php-pear-Testing_Selenium
service httpd restart
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
Jul 12th
Here is my second post under WordPress. I did the following changes :
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
Apr 6th
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.
]]
Jan 31st
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 :
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 …
Jan 12th
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 …
Dec 31st
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.
The easiest to have local mail delivery is to install … sendmail. Just install sendmail package and start the corresponding service, and your are done.
urpmi sendmail
update-alternatives --display sendmail-command
update-alternatives --config sendmail-command
service sendmail restart
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 :
urpmi esmtp procmail
update-alternatives --display sendmail-command
update-alternatives --config sendmail-command
touch /etc/esmtprc
# 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
# Use procmail as MDA for local mail delivery mda "/usr/bin/procmail -d %T"
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 :
mail -v -s "Local mail test" root < /etc/nsswitch.conf
. 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
Dec 30th
This testimonial comes after reading a blog post from Albert Astals Cid : Consistency. Indeed I do find useless the debate about UI and buttons consistency ( which is different from buttons order issue ). So here are the point for which I do care as a Linux sysadmin with nearly 75 workstations running Linux, 5 notebook running Linux + Windows, and 7 servers running Linux. As a Linux sysadmin, when :
So the UI look & feel is somewhat useless. I just want something that look mostly good, is acceptable, with a good usability. Good wallpapers ? most users just put their childrens photo as desktop background, and put a lot of icons on the desktops. Good theme ? most of the time, they don’t care. Consistency ? they don’t care : they just want to be able to distinguish closed and minimize buttons
The only time my users were impressed by something visual was the “present windows” effects of kwin ( left upper corner ) which shows all windows at once as they find it useful.
Plasmo