1 | #Booting CD
|
---|
2 | qemu-img create -f qcow2 image.qemu 3G
|
---|
3 | qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
|
---|
4 |
|
---|
5 | # use lilo on recent x86_86 distros as grub doesn't work.
|
---|
6 | # on suse make yast2 use the right repositories (Sw/SWrepositories/ remove DVD)
|
---|
7 | # # verify root alogin on sshd conf
|
---|
8 | grep Root /etc/ssh/sshd_config
|
---|
9 |
|
---|
10 | # On Ubuntu install openssh-server
|
---|
11 | apt-get install openssh-server
|
---|
12 |
|
---|
13 | # At install on 64 distro use lilo
|
---|
14 | # on Ubuntu change tty, kill grub install
|
---|
15 | # chroot /target remount cdrom
|
---|
16 | # install lilo instead
|
---|
17 |
|
---|
18 | # Recent SUSE acpi=off
|
---|
19 |
|
---|
20 | # RPM based : urpmi, yum install, yast2
|
---|
21 | # Mandriva
|
---|
22 |
|
---|
23 | # gentoo
|
---|
24 | #Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
|
---|
25 | emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue cdrecord mkisofs pb
|
---|
26 |
|
---|
27 | # Slackware
|
---|
28 | # Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
|
---|
29 | #
|
---|
30 | # Ubuntu
|
---|
31 | 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
|
---|
32 |
|
---|
33 | #Changing CD during install:
|
---|
34 | Ctrl-Alt-2
|
---|
35 | eject cdrom
|
---|
36 | (swap disk)
|
---|
37 | change cdrom /dev/cdrom
|
---|
38 |
|
---|
39 | # Slack: put loadkeys fr in /etc/rc.d/rc.keymap
|
---|
40 | # Gentoo: edit /etc/conf.d/keymaps
|
---|
41 |
|
---|
42 | #Clé SSH:
|
---|
43 | mkdir .ssh
|
---|
44 | chmod 700 .ssh
|
---|
45 | scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
|
---|
46 | chmod 600 /root/.ssh/authorized_keys
|
---|
47 |
|
---|
48 | #rebuild paquets necessaires mondo:
|
---|
49 | wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
|
---|
50 | wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
|
---|
51 | rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
|
---|
52 | mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
|
---|
53 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
|
---|
54 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
|
---|
55 | chmod 644 build/RPMS/i386/*
|
---|
56 | scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
|
---|
57 |
|
---|
58 | root:
|
---|
59 | rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
|
---|
60 |
|
---|
61 | # For RHAS 2.1 add grep-2.5.1
|
---|
62 |
|
---|
63 | #for gentoo
|
---|
64 | chown bruno /etc/make.conf
|
---|
65 | bruno in portage group
|
---|
66 |
|
---|
67 | # for FreeBSD
|
---|
68 | ln -sf /usr/local/bin/bash /bin/bash
|
---|
69 |
|
---|
70 | # For Slackware
|
---|
71 | take on ftp pkg src + build
|
---|
72 | configure sudo :
|
---|
73 | bruno = NOPASSWD: /sbin/makepkg
|
---|