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

# use lilo on recent x86_86 distros as grub doesn't work.
# on suse make yast2 use the right repositories (Sw/SWrepositories/ remove DVD)
# # verify root alogin on sshd conf
grep Root /etc/ssh/sshd_config

# On Ubuntu install openssh-server
apt-get install openssh-server

# At install on 64 distro use lilo
# on Ubuntu change tty, kill grub install
# chroot /target remount cdrom
# install lilo instead

# Recent SUSE acpi=off

# RPM based : urpmi, yum install, yast2
# Mandriva

# 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 cdrecord mkisofs pb

# Slackware
# Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
#
# Ubuntu
apt-get install autoconf automake libtool g++ wget patch mondo groff imagemagick docbook-utils docbook2x docbook-to-man openssh-server dpkg-dev debian-builder dh-make fakeroot libnewt-dev libncurses5-dev pb

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

# Slack: put loadkeys fr in /etc/rc.d/rc.keymap

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

#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
mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
chmod 644 build/RPMS/i386/*
scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/

root:
rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*

# For RHAS 2.1 add grep-2.5.1

#for gentoo
chown bruno /etc/make.conf
bruno in portage group

# for FreeBSD
ln -sf /usr/local/bin/bash /bin/bash

# For Slackware
take on ftp pkg src + build
configure sudo :
bruno = NOPASSWD: /sbin/makepkg
