Skip to content

Localizing the "Klax" Live-CD

Friday, 20 May 2005  |  beineri

A powerful feature of the "Klax" Live-CD, inherited from its Slax and UnionFS base, are "modules": you can download a module like Gimp or Firefox and either load them into the running Live-CD on the fly or by adding them to the /modules/ directory on the CD (without the need to remaster the whole compressed file system) before burning the ISO image.

Today I created KDE translation modules for 17 languages (chosen by amount of native speakers, share in Web content and KDE translation progress). I want to explain you how you can create within 3 minutes a Live-CD supporting your favorite languages.

  1. Download the generic k3b-i18n*.mo module and the two kde-i18n*.mo and koffice-i18n*.mo modules for all languages you want to have supported. I will only take German as example:
    wget http://ktown.kde.org/~binner/klax/modules/k3b-i18n-0.11-noarch-2.mo
    wget http://ktown.kde.org/~binner/klax/modules/kde-i18n-de-3.4.0-noarch-1.mo
    wget http://ktown.kde.org/~binner/klax/modules/koffice-i18n-de-1.3.5-noarch-1.mo
    
  2. Mount the "Klax" ISO image to somewhere (requires being root):
    mount -o loop klax-kde-3.4.iso mountpoint
  3. Copy its content to a writeable directory:
    cp -a mountpoint newcontent
  4. Copy the downloaded modules into the modules/ directory:
    cp *.mo newcontent/modules/
  5. Create the new ISO image:
    cd newcontent
    ./create_bootiso.sh ../localized_klax.iso

If you are using MS Windows you can use the graphical tool MySlax Creator for steps 2 to 5 instead. Now burn the ISO image as usually, boot the CD and you should be able to select added languages (and applications) after starting KDE.

If you are a local KDE Group, a Linux user group or someone else wanting to distribute the modified Live-CD for promotion, you likely want to make more modifications including defaulting to your local language or adding additional information material. Not much more difficult, but please somewhere make it obvious that you modified the Live-CD: you can modify the under MS Windows visible files under newcontent/ (boot splash=slash.lss, boot text=splash.cfg, boot help=splash.txt).

Create a directory structure under somewhere/ (best is when running the Live-CD because of required tools and to be matched guest user-id) which contains all to be modified and added files like:

root/.kde/share/config/kdeglobals
root/.kde/share/config/kdesktoprc
root/Desktop/README.html
home/guest/.kde/share/config/kdeglobals
home/guest/.kde/share/config/kdesktoprc
home/guest/Desktop/README.html
opt/kde/share/wallpapers/promowallpaper.jpg

"Klax" knows two users, do the same for both (don't worry: it will be compressed). Define in kdeglobals to which of the supported languages the user shall default (in this case: "[[Locale]] Language=de:en_US"). In kdesktoprc you can define the wallpaper settings and README.html is a file which shall appear on the user's desktop. Make sure that guest's files are owned by the guest user! With "dir2mo somewhere/ module.mo" you turn everything into a module which you only have to copy also into newcontent/modules/ in step 4.

I hope this short HOWTO will inspire someone to create a localized Live-CD and spread the lore of KDE to his neighbour, the next village, town, state, ... :-)