Tools

Extract all the files from a .deb archive
English version

Say, you downloaded the whole archive containing a given version of OOo4Kids, itself containing the 35 or 36 .deb archives, and you want to extract everything, to obtain a standalone OOo4Kids.

IMPORTANT :

* you must have dpkg-deb installed (apt-cache search dpkg-deb will help) * two processes are described below : take care you are following the one matching your needs !!

FIXME

1) First, create a TEMP directory : mkdir TEMP

2) Inside, put all the .deb, including the OOo4Kids-debian-menus_0.9.5-07_all.deb archive, who is in desktop-intégration.

3) Then go into TEMP (cd TEMP), and create a second directory (inside TEMP), named temp2 (mkdir temp2) for example.

4) Then type :

for i in `ls *.deb` ; do dpkg-deb --extract $i temp2 ; done

At the end, in temp2, you'll find 3 directories :

/etc containing everything about configuration (Debian spécific)

/opt who contains the ready to be launched OOo4Kids (just try, to be sure, typing : temp2/opt/ooo4kids0.9.5/program/soffice )

/usr who contains the menu entries stuff.

Hope this will help you :)

Eric Bachard 10:20, 26 May 2010 (UTC)

Version Française

Disons que vous avez téléchargé l'archive complète, elle-même contenant les 35 ou 36 archives .deb, pour une version données d'OOo4Kids, et que vous souhaitez extraire un Ooo4Kids tout en un.

IMPORTANT : il faut avoir dpkg-deb installé (apt-cache search dpkg- deb aidera)

1) D'abord créer un répertoire TEMP

2) dedans, placer tous les .deb, y compris l'archive OOo4Kids-debian-menus_0.9.5-07_all.deb qui se trouve dans le répertoire desktop-intégration.

3) Ensuite aller dans TEMP (cd TEMP), et créer un nouveau répertoire (dans TEMP), appelé temp2 (mkdir temp2) par exemple.

4) Enfin, taper :

for i in `ls *.deb` ; do dpkg-deb --extract $i temp2 ; done

Et dans temp2, on trouvera 3 répertoires :

/etc qui contient ce qui concerne la configuration (Debian spécifique)

/opt qui contient OOo4Kids prêt à fonctionner (essayer de le lancer pour être sûr, en tapant : temp2/opt/ooo4kids0.9.5/program/soffice )

/usr qui contient les entrées de menus

Eric Bachard 10:20, 26 May 2010 (UTC)

Creating a Bundle on Sugar
Once you have a proper Sugar-compatible tree, create the setup.py in your activity root folder (OOo4Kids.activity):

from sugar.activity import bundlebuilder bundlebuilder.start
 * 1) !/usr/bin/env python

Then, create the manifest (a file that lists all the files needed for the Activity) by inputting:

find. -type f | sed 's,^./,,g' > MANIFEST

There you have all that is necessary in order to create your XO bundle. Just use the following command:

./setup.py dist_xo

You might have to use this command if you are urged to do so:

./setup.py fix_manifest

And then, the bundle is ready, you can now install it by simply typing:

sugar-install-bundle yourbundle.xo

Compiling on Linux Gentoo
Read the article by Benjamin Vialle, 3rd year student in Computer Science Option at the Ecole Centrale de Nantes proposes on his blog a post about compiling on Gentoo.