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 | # Recent SUSE acpi=off
|
---|
6 |
|
---|
7 | # RPM based : urpmi, yum install, yast2
|
---|
8 | # Mandriva
|
---|
9 | urpmi neon newt-devel slang-devel glibc-static-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch mindi mondo mkisofs cdrecord pb
|
---|
10 |
|
---|
11 | #Fedora
|
---|
12 | yum install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs pb
|
---|
13 |
|
---|
14 |
|
---|
15 | # gentoo
|
---|
16 | #Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
|
---|
17 | emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue cdrecord mkisofs pb
|
---|
18 |
|
---|
19 | # Slackware
|
---|
20 | # Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
|
---|
21 | #
|
---|
22 | # Ubuntu
|
---|
23 | 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
|
---|
24 |
|
---|
25 | # Apply AppConfig path
|
---|
26 | patch -p0 < pb-doc/App*
|
---|
27 |
|
---|
28 | #Changing CD during install:
|
---|
29 | Ctrl-Alt-2
|
---|
30 | eject cdrom
|
---|
31 | (swap disk)
|
---|
32 | change cdrom /dev/cdrom
|
---|
33 |
|
---|
34 | # Slack: put loadkeys fr in /etc/rc.d/rc.keymap
|
---|
35 | # Gentoo: edit /etc/conf.d/keymaps
|
---|
36 |
|
---|
37 | #Clé SSH:
|
---|
38 | scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
|
---|
39 | chmod 600 /root/.ssh/authorized_keys
|
---|
40 |
|
---|
41 | #Créer compte pb
|
---|
42 | useradd pb
|
---|
43 |
|
---|
44 | # No passwd for pb
|
---|
45 | perl -pi -e 's/^pb:\!\!:/pb:*:/' /etc/shadow
|
---|
46 | # Adapt sudoers
|
---|
47 | echo "pb ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
---|
48 | # poweroff only
|
---|
49 |
|
---|
50 | su - pb
|
---|
51 | mkdir ~/.ssh
|
---|
52 | chmod 700 ~/.ssh
|
---|
53 | scp -p victoria2.home.musique-ancienne.org:.ssh/id_dsa.pub ~/.ssh/authorized_keys
|
---|
54 | # Passwd asked above
|
---|
55 | chmod 600 ~/.ssh/authorized_keys
|
---|
56 |
|
---|
57 | #rebuild paquets necessaires mondo:
|
---|
58 | wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
|
---|
59 | wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
|
---|
60 | rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
|
---|
61 | mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
|
---|
62 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
|
---|
63 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
|
---|
64 | chmod 644 build/RPMS/i386/*
|
---|
65 | scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
|
---|
66 |
|
---|
67 | # Exchange host keys with www.mondorescue.org
|
---|
68 | ssh www.mondorescue.org ls
|
---|
69 |
|
---|
70 |
|
---|
71 | root:
|
---|
72 | rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
|
---|
73 |
|
---|
74 | # For RHAS 2.1 add grep-2.5.1
|
---|
75 |
|
---|
76 | #for gentoo
|
---|
77 | chown bruno /etc/make.conf
|
---|
78 | bruno in portage group
|
---|
79 |
|
---|
80 | # for FreeBSD
|
---|
81 | ln -sf /usr/local/bin/bash /bin/bash
|
---|
82 |
|
---|
83 | # For Slackware
|
---|
84 | take on ftp pkg src + build
|
---|
85 | configure sudo :
|
---|
86 | bruno = NOPASSWD: /sbin/makepkg
|
---|