Ressources documentaires pour Mandriva Linux et les Logiciels Libres

Billets dans la catégorie Mandriva

Help debugging KDE4 for 2009.1 Spring

As you already know, KDE 4.2 beta 1 is available in cooker. KDE developers want to provide a rock solid KDE 4 experience to Mandriva users. For this, all issues ( crashes, missing functionalities, regressions, … ) should be reported on Mandriva Bugzilla. However crash reports are only useful if complete debugging data are provided. For this you need to install the -debug packages. Hare is the procedure for KDE 4 :

  • Add the debug media : In case you don’t add yet the debug media, please use urpmi.addmedia to add the corresponding debug medias for main, and eventually contrib :
    urpmi.addmedia main_debug ftp://ftp.proxad.net/pub/Distributions_Linux/MandrivaLinux/devel/cooker/i586/media/debug_main/release/
    urpmi.addmedia contrib_debug ftp://ftp.proxad.net/pub/Distributions_Linux/MandrivaLinux/devel/cooker/i586/media/debug_contrib/release/
  • Install the -debug packages for KDE 4 : urpmi kdebase4-debug kdebase4-workspace-debug kdeplasma-addons-debug kdelibs4-debug kdenetwork4-debug kdepim4-debug kdepimlibs4-debug kdemultimedia4-debug amarok-debug digikam-debug qt4-debug
  • Don’t forget to install gdb : urpmi gdb

Now when a KDE4 application will crash, you will be able to provide complete backtraces thanks to the KDE crash handler. If you want to have further informations about the way to create backtraces from GDB or even Valgring, please have a look at the KDE tutorial on techbase.kde.org : Development/Tutorials/Debugging/How to create useful crash reports

Now eventually, you may end up asking how you can know the names of the debug packages to install. Most fo the time, the -debug package name comes from the scr.rpm used to build this package. For example kopete comes from the kdenetwork4 src.rpm package. So you just have to add -debug at the end of the name. To know the src.rpm used to build a package, you just need to use rpm -qi. For example for kopete, you will use : rpm -qi kopete. This command will show you that kopete comes from the source RPM kdenetwork4-4.1.85-2mdv2009.1.src.rpm.
For further readings, please consult theses previous blog entries :

Happy New Year, and Happy debugging !!!

]]

Mandriva Christmas gift

Today, Anne Nicolas announced on the Cooker ML a marvelous gift : the release of Mandriva 2009.1 Alpha 1. This Alpha release contains many new and updated softwares and features :

  • KDE 4.2 Beta 2 with improved 3D effects, better stability, more dolphin features and classical desktop support. Please consult KDE 4.2 beta 2 announcement on KDE homepage : KDE 4.2 Beta 2 Release Announcement.
  • GNOME 2.25.2, the second pre-release of GNOME 2.26.
  • Xfce 4.6 Beta 2
  • Kernel 2.6.28 rc8 which adds the first version of Ext4 as a stable filesystem, the much-expected GPU memory manager ( GEM ) which will be the foundation of a renewed graphic stack, support for Ultra Wide Band (Wireless USB, UWB-IP), memory management scalability and performance improvements, a boot tracer, disk shock protection, support of SSD discard requests, transparent proxy support, several new network drivers, controllable IO CPU affinity, high-resolution poll()/select() and tracing improvements. A complete list of the upcoming 2.6.28 features can be read on kernelnewbie.org : http://kernelnewbies.org/Linux_2_6_28.
  • X.org server 1.5 with input hotplugging support. The Mandriva tools have been adapted to use this new support. Mandriva switch also to x11-driver-input-synaptics which provide two fingered scrolling support.
  • Tcl/Tk 8.6
  • Latest ATI fglrx ( 8.561 aka 8.12 ) and Nvidia ( 180.16 ) drivers in the Non-Free repository.Anssi Hannula is also providing VDPAU enabled mplayer packages on his personal repository.
  • Firefox 3.0.5, OpenOffice.org 3.0, MySQL 5.1.30
  • GIMP 2.6 is now the default Gimp package
  • Latest version of the Metisse compositing window manager ( 0.4.1 ).

For furthers informations and download links, please consult the Mandriva wiki : http://wiki.mandriva.com/en/2009.1_Alpha_1.

Merry Christmas !!!

]]

Fixing input drivers issues in Cooker

Since the beginning of the week, Mandriva Cooker have switch to Xorg 1.5, and HAL support have been enabled by default. This means 2 things :

  1. Evdev input driver need to be installed : If you end up with a non-working keyboard and mouse, then you need to install the x11-driver-input-evdev package
  2. You need to specify manually your keyboard layout at runtime : indeed the evdev driver with HAL support enabled will no longer read the keyboard layout setting from /etc/X11/xorg.conf, but will rely on HAL. However as XFdrake has not be updated yet to configure correctly HAL, you will end up with the us keyboard layout. To fix this manually, you will have to use the setxkbmap command. For example to have a french layout, you will use the following : setxkbmap -keycodes evdev fr
  3. The keyboard layout will be the us one at login prompt. As above you will have to define the keyboard layout. If you want to set this setting in HAL permanently and as a system wide configuration, then you will have to modify the right HAL fdi file. Copy the file /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi in /etc/hal/fdi/policy/10osvendor, and then edit the file set the right layout in the input.xkb.layout key. For a french layout you will have for example : <merge key= »input.xkb.layout » type= »string »>fr</merge>

For further informations, and to see how to disable evdev support, please read the following blog post : evdev, xorg.conf, hal and other FUD

]]

Installing PHP cairo wrapper under Mandriva 2009.0

For the intranet of my society, I’m using eZ Components to create the graph. I used to create the graph in SVG, convert them to PNG with rsvg and imagemagick and then insert into a PDF generated by FPDF. However i was willing now to output the graph directly to the browser for a web stats page. By default eZGraph will output in SVG. Whereas this is not an issue with Firefox 3, users with Internet explorer or Firefox 2 may have issue displaying SVG files ( plugin needed ). Trying the GD driver instead lead me to the impossibility to create a graph because it was not able to find my font file …

In the end, I decide to try the Cairo driver. However you need the PHP cairo_wrapper which is not available in Mandriva. So here is how you can install PHP cairo_wrapper from pear channels under Mandriva. We are supposing that you have a working PHP configuration :

  1. Install pear, php-devel and cairo devel packages : urpmi php-pear php-devel libcairo-devel
  2. Add the pear.php-baustelle.de channel : pear channel-discover pear.php-baustelle.de
  3. Set PEAR default state to beta because this package is in beta state : pear config-set preferred_state beta
  4. Install cairo_wrapper from thsi channel : pear install php-baustelle/cairo_wrapper
  5. Make PHP load the extension : echo « extension=cairo_wrapper.so » > /etc/php.d/33_cairo_wrapper.ini
  6. Restart Apache : service httpd restart
  7. For safety purposes, set back PEAR preferred_state to stable : pear config-set preferred_state stable

Note : The PHP cairo wrapper is a C extension which need to be compiled, so you need gcc and glibc-devel too.

]]

Hercules eCafe

En lisant le site Toolinux, je suis tomb

Mandriva Mini + reportage chez Mandriva

Clubic a r

Tiny HOWTO : removing -debug packages with urpme

If like me you are using Mandriva Cooker, you know that the best way to have useful backtraces at an application crash is to have the debugging symbols. That why you have the ability under Mandriva to install the corresponding -debug packages. To install theses debug packages, you need to activate the corresponding debug media. To see how to add theses medias, please refer to my previous post named Debugging applications crashes with GDB.

Of course, at one time, you may want to remove theses debugging packages to save hard disk space, or to have faster loading applications : this is where urpme come to the rescue. As urpme can remove all packages matching a substring, you just need to pass the debug substring to urpme combined with the -a option, and you will be proposed to removed all your -debug packages as follow :
urpme -a debug

Note : Please be aware of the fact that php-xdebug package will match this substring and thus will be uninstalled too

]]

Introduction to parallel boot under Mandriva

Prcsys is used by Mandriva to do easy and hassle-free LSB-compliant parallel boot. This tool have been developped by Couriousous and is used in the Pinit project. Pinit support several features :

  • LSB dependency tags compatibility
  • Bootsplash/splashy support
  • Maximum 255 steps are supported
  • Stop mode
  • Debug mode
  • Logging facility
  • Lazy requires which means that prcsys is just ordering the services but is not enforcing dependencies
  • Parallel boot

To test prcsys, you just need to install prcsys package and latest initscripts packages. Default support have been add in Mandriva since at least Mandriva 2007.0. Then if your services init scripts are not LSB complicant, you just need to edit them and add the required tags. However most of the main services should have LSB compliant init scripts. Now you just need to reboot your computer, and Mandriva will automatically boot using prcsys.

Note : If for whatever reasons you have issues when booting with Pinit, you can disable it at boot time with the nopinit option

To debug prcsys boot, you can start it from CLI with the –test, and it will allow to see in which order services are going to be started. You need to defined the mode ( S for start mode, K for kill mode ) and the directory where are located the service init scripts ( most of the time /etc/rc5.d or /etc/rc3.d ). For example to test service startup in runlevel 5, you may use the following command :
prcsys –test S /etc/rc5.d/
If you want to do a complete debug report, and ahve everything logged in a debug file named for example /tmp/prcsys.log, you can use the following command :
prcsys –test –debug –logfile /tmp/prcsys.log S /etc/rc5.d/

Links :

]]

MIB Live Games 2008.1 released

Marcello Anni announced on Cooker ML the release of the MIB Live Games 2008.1. MIB ( Mandriva Italian Backports ) is a derived distribution of Mandriva Linux done by the Italian Mandriva community.

MIB live Games DVD is a revised version of Mandriva 2008.1 One edition, but it is more bigger (about 2 GB) and contains a lot of the best games availables for the Linux world. We distribute it in 2 different DVDs, that contain different games (MIB Live games DVD1: supertux, freecive, globulation2, supertuxkart, warzone2100, flightgear and many others – MIB Live games DVD2: kdegames4, torcs, wesnoth, opencity, openarena, wormux, gnome-games, nexuiz and so on..). You can play to all of these games in Live mode, and if you prefer, you can install the distro to the hard disk using the « Live install » option.
Announcement on Mandriva Italian backports blog

]]

Olivier is the king : vservers fixes

In April, I test Linux Vservers under Mandriva 2008.1 Spring. However there were severals issues and bugs in the Mandriva support. So I provide patch to fix some of them, notably in the urpmi support. Because of this, and some others issues, I was unable to configure Vservers under Mandriva with the default Mandriva packages. This month Olivier Blin applied my patch and fixed all the issues reported by me : really he made my day 🙂 I will be able to give another try to Vservers and I do hope that I will be able to have an easy way to setup Vservers under Mandriva Linux :). I will have eventually to contact upstream in order to have theses patches integrated directly upstream. Here is the list of bugs reported by me :

When Vservers will be fixed in Mandriva, I do promised to provide a complete HOWTO in both french and english.

]]

Catégories

My Tweets