23
Cómo crear tu distro Ubuntu Bolivia Backstage Rolando Espinoza La Fuente <[email protected]> www.ubuntubolivia.org

Ubuntu Bolivia Backstage

Embed Size (px)

DESCRIPTION

Charla sobre la construcción del livecd Ubuntu Bolivia. See http://www.ubuntubolivia.org

Citation preview

Page 1: Ubuntu Bolivia Backstage

Cómo crear tu distro

Ubuntu Bolivia Backstage

Rolando Espinoza La Fuente

<[email protected]>

www.ubuntubolivia.org

Page 2: Ubuntu Bolivia Backstage

¿Qué es una distro?

● Distro = Distribución

● Conjunto de aplicaciones

● Conjunto de configuración

● Métodos de instalación y administración

Page 3: Ubuntu Bolivia Backstage

¿Cómo crear tu distro?

● Definir Conjunto de aplicaciones

● Definir Conjunto de configuración

● Definir Métodos de instalación y administración

Page 4: Ubuntu Bolivia Backstage

¿Cómo crear tu distro?

¿Alguna duda?

Page 5: Ubuntu Bolivia Backstage

¿Cómo crear tu distro?

...yo si

● ¿Cómo se hace un instalador?

● ¿Cómo se empaqueta las aplicaciones?

Page 6: Ubuntu Bolivia Backstage

¿Cómo crear tu distro?

...en conclusión

● Necesita conocimientos medio-avanzados

● Tiempo... mucho tiempo

Page 7: Ubuntu Bolivia Backstage

¿Cómo crear tu distro?

...pero no es necesario

empezar de cero...

Page 8: Ubuntu Bolivia Backstage

Ubuntu Bolivia

● es una distribución? si

● ...pero basada en Ubuntu Linux

● ...personalización del instalador

● ...más un CD Addons

Page 9: Ubuntu Bolivia Backstage

Razón existencia?

● Ubuntu sólo viene un CD

● necesario internet

● no usable* out-of-the-box

● demostrar que no es difícil

Page 10: Ubuntu Bolivia Backstage

● Si no es difícil, ¿cómo se hace?

Page 11: Ubuntu Bolivia Backstage

Receta...

✔ Extraer el contenido del CD

✔ Extraer el sistema del CD Live

✔ Copiar el sistema en nuestro nuevo sistema

✔ Modificar nuestro nuevo sistema

✔ Empaquetar el nuevo sistema

✔ Empaquetar el CD Live

✔ Grabar y probar

Page 12: Ubuntu Bolivia Backstage

Extraer el contenido del CD

# export WORK=~/MiCDLive

# mkdir -p $WORK

~~

# mount -t iso9660 /dev/hdc /cdrom

~~

# cd $WORK

# mkdir ubuntu-livecd

# cp -a /cdrom/. ubuntu-livecd

Page 13: Ubuntu Bolivia Backstage

Extraer el sistema del Live CD

# mkdir $WORK/old

# mount -t squashfs \ -o loop,ro \ $WORK/ubuntu-livecd/casper/filesystem.squashfs \ $WORK/old

Page 14: Ubuntu Bolivia Backstage

✔ Copiar el sistema en nuestro nuevo sistema

# dd if=/dev/zero \ of=$WORK/ubuntu-fs.ext2 \ bs=1M count=2147

# mke2fs $WORK/ubuntu-fs.ext2

# mkdir $WORK/new

# mount -o loop $WORK/ubuntu-fs.ext2 $WORK/new

# cp -a $WORK/old/. $WORK/new

Page 15: Ubuntu Bolivia Backstage

✔ Modificar nuestro nuevo sistema

# chroot $WORK/new

# mount -t proc none /proc

# mount -t sysfs none /sys

# export HOME=/root

# export LC_ALL=C

# apt-get remove ttf-baekmuk \ ttf-kochi-gothic ttf-kochi-mincho

Page 16: Ubuntu Bolivia Backstage

✔ Empaquetar el nuevo sistema

# dd if=/dev/zero of=$WORK/new/dummyfile

# rm $WORK/new/dummyfile

# rm $WORK/ubuntu-livecd/casper/filesystem.squashfs

# cd $WORK/new

# mksquashfs . \ $WORK/ubuntu-livecd/casper/filesystem.squashfs

Page 17: Ubuntu Bolivia Backstage

✔ Empaquetar el CD Live

# cd $WORK

# mkisofs -o ubuntu-live-rho.iso \ -b isolinux/isolinux.bin \ -c isolinux/boot.cat \ -no-emul-boot -boot-load-size 4 \ -boot-info-table -r \ -V "Ubuntu-bo Live CD" -cache-inodes \ -J -l ubuntu-livecd/

Page 18: Ubuntu Bolivia Backstage

✔ Grabar y probar

# cdrecord -v -eject ubuntu-live-rho.iso

Page 19: Ubuntu Bolivia Backstage

...pero

✔ prestar atención a cada paso

✔ tener paciencia y cafeína...

✔ prueba y error!

Page 20: Ubuntu Bolivia Backstage

¿Aplicaciones?

● demostración de productos

● necesidades específicas

● sistema operativo portable

● imagine!

Page 21: Ubuntu Bolivia Backstage

...futuro

Sistema Base Bolivia

Page 22: Ubuntu Bolivia Backstage

¿preguntas?

¿quejas?

¿denuncias?

Page 23: Ubuntu Bolivia Backstage

¡Gracias!