Difference between revisions of "Knoppix Remastering Howto Spanish"


From Knoppix Documentation Wiki
Jump to: navigation, search
(Traducciones:)
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Traducciones: ==
+
The previous translation of this HowTo has become obsolete.
+
+
+
* Si desea crear un kernel personalizado, compruebe [[Knoppix Custom Kernel Howto]]
+
.oreillynet.com/lpt/a/4323 Using and Customizing Knoppix]
+
----
+
+
+
  
+
Perhaps someone likes to translate the new version of the [[Knoppix_Remastering_Howto]].
 
+
==== Requisitos del sistema: ====
+
*CD-ISO
+
+
+
*DVD-ISO
+
+
+
 
+
 
+
==== Instrucciones: ====
+
 
+
# Arranque desde el ''CD de Knoppix''
+
# Abra una consola de root:
+
+
+
+
** Nota: Ejecute '''ifconfig''' para comprobarlo.
+
+
+
** '''mount -rw /dev/hda1 /mnt/hda1'''
+
+
+
** '''mkdir /mnt/hda1/knx'''
+
+
+
** '''cd /mnt/hda1/knx ; dd if=/dev/zero of=swapfile bs=1M count=750 ; mkswap swapfile ; swapon swapfile'''
+
+
** '''mkdir -p /mnt/hda1/knx/master/KNOPPIX'''
+
** '''mkdir -p /mnt/hda1/knx/source/KNOPPIX'''
+
# Ahora copie los ficheros de KNOPPIX a su directorio fuente:
+
'''* '''cp -Rp /KNOPPIX/''' /mnt/hda1/knx/source/KNOPPIX &'''
+
+
+
** '''cp /cdrom/index.html /mnt/hda1/knx/master/ '''
+
# Copie todos los ficheros necesarios excepto el fichero KNOPPIX, de unos 700 Mb.
+
** < 3.4: '''cd /cdrom/KNOPPIX;find . -size -10000k -type f -exec cp -p --parents {} /mnt/hda1/knx/master/KNOPPIX/ \;'''
+
** 3.4: '''cd /cdrom;find . -size -10000k -type f -exec cp -p --parents {} /mnt/hda1/knx/master/ \;'''
+
+
** '''chroot /mnt/hda1/knx/source/KNOPPIX'''
+
 
+
+
 
+
+
+
mount /dev/hda1 /mnt/hda1
+
+
mount /dev/hda1 on /mnt/hda1 type ext3 (rw)
+
 
+
Si persisten los avisos de /dev/null entonces, antes de hacer chroot, haga:
+
mount --bind /dev /mnt/hda1/knx/source/KNOPPIX/dev
+
+
 
+
entonces puede seguir y hacer el chroot.
+
 
+
+
+
+
+
+
* Actualice su lista de paquetes con '''apt-get update'''
+
* Ahora puede realizar cambios.
+
+
+
'''*''' '''dpkg-query -l'''
+
+
'''*''' '''dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n'''
+
+
'''*''' '''apt-get remove <nombre-del-paquete-a-eliminar>'''
+
+
'''*''' '''deborphan'''
+
+
'''*''' '''deborphan | xargs apt-get -y remove'''
+
+
'''*''' '''deborphan | xargs apt-get -s -y remove'''
+
+
'''*''' '''apt-get install <nombre-del-paquete-a-instalar>'''
+
+
'''*''' '''apt-cache search .* | sort | less'''
+
+
'''*''' '''COLUMNS=200 dpkg -l |grep ^rc |awk '{print $2} ' | xargs dpkg -P'''
+
+
'''*''' '''apt-get clean'''
+
+
+
+
+
 
+
==== Notas : ====
+
 
+
+
 
+
+
 
+
hay material interesante en /etc/init.d/knoppix-autoconfig :
+
 
+
+
+
 
+
hay material interesante en /etc/init.d/xsession :
+
+
 
+
+
 
+
+
* primero haga algo de limpieza : ''' elimine los ficheros .bash_history, ficheros temporales etc '''
+
* '''rm -rf /mnt/hda1/knx/source/KNOPPIX/.rr_moved'''
+
* Ahora crearemos el fichero enorme que es un sistema de ficheros ISO 9660 cloop comprimido : '''mkisofs -R -U -V "KNOPPIX.net filesystem" -publisher "KNOPPIX www.knoppix-es.org" -hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda1/knx/source/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/hda1/knx/master/KNOPPIX/KNOPPIX'''
+
 
+
+
 
+
+
+
 
+
* si todo fue bien, para crear la imagen del CD-ROM final :
+
* '''cd /mnt/hda1/knx/master'''
+
+
+
* Para Knoppix >= 3.4 u otras distribuciones basadas en isolinux haga:
+
+
+
 
+
=== Trucos/consejos ===
+
+
: dpkg-awk "Status: .* installed$" -- Package Installed-Size | \
+
: awk '{print $2}' | egrep -v '^$' | xargs -n2 echo | \
+
: perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg
+
+
+
 
+
: dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n
+
 
+
y no necesita dpkg-awk o awk o perl.
+
 
+
+
 
+
+
 
+
+
 
+
+
 
+
+
+
 
+
 
+
+
 
+
+
Nota cerca de swap:<br>
+
+
* Valentijn's rewrite [http://projects.openoffice.nl/downloads/compressloop/]
+
* Quozl's port of compressloop for Knoppix 3.4 [http://quozl.linux.org.au/compressloop-1.9-64bit.c]
+
* Quozl's distributed compressloop (use more than one processor to speed things up) [http://quozl.linux.org.au/knoppix/compressloop/] or [http://quozl.netrek.org/knoppix/compressloop/]
+
* Justin's patch [http://s.bouncybouncy.net/~justin/code/] (link broken) I also just wrote a distributed cloop compressor(or for smp)  It's in that same directory.
+
 
+
==== Truco, compruebe la imagen del cd sin grabarla en un cd ====
+
 
+
+
 
+
+
'''qemu -m 128 -cdrom /temp/knoppix-custom.iso -boot d -user-net'''
+
+
 
+
+
+
+
* Coloque los siguiente en el fichero /boot/grub/menu.lst:
+
title          KNOPPIX
+
root            (hd0,0)
+
kernel  /boot.knoppix/vmlinuz 2 fromhd=/dev/hda4 lang=us
+
initrd  /boot.knoppix/miniroot.gz
+
+
* reinicie y disfrute.
+
 
+
+
Otro Howto en http://www.stirnimann.com/mystuff/doc/knoppix.txt
+
 
+
+
 
+
+
 
+
+
----
+
Este es el esquema de directorios recomendado para remasterizar KNOPPIX:
+
+
|-- master (invoke ../../[[u]]mountbootimage from here)
+
|  |-- KNOPPIX
+
|  |  |-- KNOPPIX (compressed image)
+
|  |  |-- boot.img (boot floppy image)
+
|  |  `-- (other files snipped)
+
|  `-- index.html
+
`-- source
+
`-- KNOPPIX (se puede hacer chroot sobre este directorio)
+
|-- bin
+
|-- boot
+
|-- cdrom
+
|-- dev
+
|-- etc
+
|-- floppy
+
|-- home
+
|-- initrd
+
|-- lib
+
|-- mnt
+
|-- none
+
|-- opt
+
|-- proc
+
|-- root
+
|-- sbin
+
|-- tmp -> /var/tmp
+
|-- usr
+
|-- var
+
`-- vmlinuz -> boot/vmlinuz-2.4.22-xfs
+
----
+
+
 
+
El script ha sido probado con Debian sid del 2004-04-02.
+
 
+
#!/bin/bash -x
+
# This script builds a new KNOPPIX ISO image.
+
# Copyright (C) 2004 by Marc Haber <mh+knoppix-remaster@zugschlus.de>
+
# License: GPL V2
+
+
ROOT="$PWD"
+
SOURCE="$ROOT/source/KNOPPIX"
+
MASTER="$ROOT/master"
+
CLOOPTARGET="$ROOT/master/KNOPPIX/KNOPPIX"
+
TARGET="$ROOT"
+
EXCLUDELIST="$ROOT/source/excludelist"
+
+
rm -rf $SOURCE/.rr_moved
+
+
cd $SOURCE
+
mkisofs -R -U -V "KNOPPIX.net filesystem" \
+
-P "KNOPPIX www.knoppix.net" \
+
-hide-rr-moved -cache-inodes -no-bak -pad \
+
-exclude-list $EXCLUDELIST \
+
. | nice -5 /usr/bin/create''compressed''fs - 65536 > $CLOOPTARGET
+
+
cd $MASTER
+
rm -f KNOPPIX/md5sums
+
find -type f -not -name md5sums -not -name boot.cat -exec md5sum {} \; >> KNOPPIX/md5sums
+
mkisofs -pad -l -r -J -v -V "KNOPPIX" -b KNOPPIX/boot.img \
+
-c KNOPPIX/boot.cat -hide-rr-moved -o $TARGET/knoppix.iso $MASTER
+
----
+
+
 
+
El script ha sido probado con Debian sid del 2004-01-13.
+
<!-- lines starting with space a preformatted -->
+
#!/bin/bash -x
+
# This script will loop-mount boot floppy and initrd image
+
# Copyright (C) 2004 by Marc Haber <mh+knoppix-remaster@zugschlus.de>
+
# License: GPL V2
+
unset CDPATH || true
+
+
# if not root, re-invoke self as root
+
<nowiki>if [[ "`id -u`" -ne 0 ]]; then</nowiki>
+
export LOCUSER="$USER"
+
export LOCHOME="$HOME"
+
<nowiki>if [[ "${SHELLOPTS/xtrace/}" != "$SHELLOPTS" ]]; then</nowiki>
+
sudo bash -x $0 $@
+
exit $?
+
else
+
sudo $0 $@
+
exit $?
+
fi
+
else
+
LOCUSER="${LOCUSER:-$USER}"
+
LOCHOME="${LOCHOME:-$HOME}"
+
fi
+
set -e
+
+
KNOPPIXDIR="KNOPPIX"
+
BOOTIMGFILE="$KNOPPIXDIR/boot.img"
+
BOOTIMGFS="vfat"
+
BOOTIMGDIR="boot.img"
+
INITRDGZ="$BOOTIMGDIR/miniroot.gz"
+
INITRDFILE="$KNOPPIXDIR/miniroot"
+
INITRDFS="ext2"
+
INITRDDIR="miniroot"
+
+
mountbootimage() {
+
if ! modprobe loop; then
+
echo >&2 "ERR: cannot load loop module"
+
exit 1
+
fi
+
+
<nowiki>if ! [[ -e "$BOOTIMGFILE" ]]; then</nowiki>
+
echo >&2 "ERR: no $BOOTIMGFILE found"
+
exit 1
+
fi
+
+
for nofile in $BOOTIMGDIR $INITRDGZ $INITRDFILE $INITRDDIR; do
+
<nowiki>if [[ -e "$nofile" ]]; then</nowiki>
+
echo >&2 "ERR: $nofile already exists"
+
exit 1
+
fi
+
done
+
+
mkdir -p $BOOTIMGDIR
+
mount -o loop,uid=$LOCUSER -t $BOOTIMGFS $BOOTIMGFILE $BOOTIMGDIR
+
+
< $INITRDGZ gunzip > $INITRDFILE
+
mkdir -p $INITRDDIR
+
mount -o loop -t $INITRDFS $INITRDFILE $INITRDDIR
+
}
+
+
umountbootimage() {
+
dd if=/dev/zero of=$INITRDDIR/nullfile || true
+
sync
+
rm $INITRDDIR/nullfile
+
umount $INITRDDIR
+
rmdir $INITRDDIR
+
< $INITRDFILE gzip --best > $INITRDGZ
+
rm -f $INITRDFILE
+
+
umount $BOOTIMGDIR
+
rmdir $BOOTIMGDIR
+
+
syslinux KNOPPIX/boot.img
+
}
+
+
case "`basename $0`" in
+
mountbootimage)
+
mountbootimage
+
;;
+
umountbootimage)
+
umountbootimage
+
;;
+
*)
+
echo >&2 "ERR: called with unknown name `basename $0`"
+
exit 1
+
;;
+
esac
+
 
+
 
+
 
+
 
+
<div id="wikitikitavi" style="overflow:auto; height: 1px; ">
+
[[http://WTHP1.disney.com] [WTHPD1]]
+
[http://WTHP2.disney.com  WTHPD2]
+
[WTHPD3](http://WTHP3.disney.com)
+
[http://WTHP4.disney.com | WTHPD4]
+
[WTHPD5 | http://WTHP5.disney.com]
+
</div>
+

Latest revision as of 09:30, 28 February 2012

The previous translation of this HowTo has become obsolete.

Perhaps someone likes to translate the new version of the Knoppix_Remastering_Howto.