Booting CD
qemu-img create -f qcow image.qemu 3G
qemu -cdrom /dev/hdc -m 256 -boot d image.qemu

# RPM based : urpmi, yum install, yast2
	neon newt-devel slang-devel autoconf automake subversion libtool gcc rpm-build wget vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man docbook-dtd41-sgml groff lynx

# gentoo
Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue

Changing CD during install:
Ctrl-Alt-2
eject cdrom
(swap disk)
change cdrom /dev/cdrom

Boot single user pour change passwd root
Clavier fr:

loadkeys fr
perl -pi -e 's/"us"/"fr"/' /etc/sysconfig/keyboard
perl -pi -e 's/"us"/"fr"/' /etc/X11/XF86Config
perl -pi -e 's/"us"/"fr"/' /etc/X11/xorg.conf
Slack: put loadkeys fr in /etc/rc.d/rc.keymap

Conf IP:
	Ajout machine dans DNS interne (/usr/local/etc/named/etc/db.mondo.*)
	Reload named

Clé SSH:
	Ajout clé ssh pour root:
mkdir /root/.ssh
chmod 700 /root/.ssh
scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys

Install packages manquant pour mondo:
	afio buffer

Créer compte bruno avec répertoires nécéssaires + env necessaire
useradd bruno
passwd bruno

su - bruno
mkdir -p mondo/tmp build
cat > ~bruno/.rpmmacros << EOF
%_topdir    /home/bruno/build
%_tmppath   %{_topdir}/tmp
%packager   Bruno Cornec <bruno@mondorescue.org>
EOF
cat > ~bruno/.rpmrc << EOF
buildarchtranslate: i386: i386
buildarchtranslate: i486: i386
buildarchtranslate: i586: i386
buildarchtranslate: i686: i386
EOF
mkdir ~/.ssh
chmod 700 ~/.ssh
scp -p victoria2.home.musique-ancienne.org:.ssh/id'*' ~/.ssh
cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

cat >> ~/.ssh/known_hosts << EOF
shell.berlios.de,195.37.77.140 ssh-dss  
svn.berlios.de,195.37.77.137 ssh-dss  
EOF

rebuild paquets necessaires mondo:
wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm 
wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
rpmbuild -ba RPMS/SPECS/afio.spec
rpmbuild -ba RPMS/SPECS/buffer.spec
chmod 644 RPMS/RPMS/i386/*
scp -p RPMS/RPMS/i386/afio-[0-9]* RPMS/RPMS/i386/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/


root:
rpm -ivh ~bruno/RPMS/RPMS/i386/afio-[0-9]* ~bruno/RPMS/RPMS/i386/buffer-[0-9]*

pour gentoo
chown bruno /etc/make.conf
bruno in portage group
