[753] | 1 | #Booting CD
|
---|
[1536] | 2 | qemu-img create -f qcow2 image.qemu 3G
|
---|
[464] | 3 | qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
|
---|
| 4 |
|
---|
[1013] | 5 | # Recent SUSE acpi=off
|
---|
| 6 |
|
---|
[535] | 7 | # RPM based : urpmi, yum install, yast2
|
---|
[930] | 8 | # Mandriva
|
---|
[1633] | 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
|
---|
[464] | 10 |
|
---|
[930] | 11 | #Fedora
|
---|
[1633] | 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
|
---|
[930] | 13 |
|
---|
| 14 |
|
---|
[535] | 15 | # gentoo
|
---|
[753] | 16 | #Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
|
---|
[1663] | 17 | emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue cdrecord mkisofs pb
|
---|
[535] | 18 |
|
---|
[1011] | 19 | # Slackware
|
---|
| 20 | # Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
|
---|
[1474] | 21 | #
|
---|
| 22 | # Ubuntu
|
---|
[1633] | 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
|
---|
[1011] | 24 |
|
---|
[1633] | 25 | # Apply AppConfig path
|
---|
| 26 | patch -p0 < pb-doc/App*
|
---|
| 27 |
|
---|
[753] | 28 | #Changing CD during install:
|
---|
[464] | 29 | Ctrl-Alt-2
|
---|
| 30 | eject cdrom
|
---|
| 31 | (swap disk)
|
---|
| 32 | change cdrom /dev/cdrom
|
---|
| 33 |
|
---|
[753] | 34 | # Slack: put loadkeys fr in /etc/rc.d/rc.keymap
|
---|
[1513] | 35 | # Gentoo: edit /etc/conf.d/keymaps
|
---|
[464] | 36 |
|
---|
[753] | 37 | #Clé SSH:
|
---|
[464] | 38 | scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
|
---|
| 39 | chmod 600 /root/.ssh/authorized_keys
|
---|
| 40 |
|
---|
[1633] | 41 | #Créer compte pb
|
---|
| 42 | useradd pb
|
---|
[464] | 43 |
|
---|
[1633] | 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
|
---|
[1539] | 49 |
|
---|
[1633] | 50 | su - pb
|
---|
[464] | 51 | mkdir ~/.ssh
|
---|
| 52 | chmod 700 ~/.ssh
|
---|
[1633] | 53 | scp -p victoria2.home.musique-ancienne.org:.ssh/id_dsa.pub ~/.ssh/authorized_keys
|
---|
[753] | 54 | # Passwd asked above
|
---|
[464] | 55 | chmod 600 ~/.ssh/authorized_keys
|
---|
| 56 |
|
---|
[753] | 57 | #rebuild paquets necessaires mondo:
|
---|
[464] | 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
|
---|
[753] | 61 | mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
|
---|
[1633] | 62 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
|
---|
| 63 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
|
---|
[629] | 64 | chmod 644 build/RPMS/i386/*
|
---|
[1011] | 65 | scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
|
---|
[464] | 66 |
|
---|
[1481] | 67 | # Exchange host keys with www.mondorescue.org
|
---|
| 68 | ssh www.mondorescue.org ls
|
---|
[464] | 69 |
|
---|
[1481] | 70 |
|
---|
[464] | 71 | root:
|
---|
[753] | 72 | rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
|
---|
[572] | 73 |
|
---|
[1489] | 74 | # For RHAS 2.1 add grep-2.5.1
|
---|
| 75 |
|
---|
[753] | 76 | #for gentoo
|
---|
[572] | 77 | chown bruno /etc/make.conf
|
---|
| 78 | bruno in portage group
|
---|
[1034] | 79 |
|
---|
| 80 | # for FreeBSD
|
---|
| 81 | ln -sf /usr/local/bin/bash /bin/bash
|
---|
[1044] | 82 |
|
---|
| 83 | # For Slackware
|
---|
| 84 | take on ftp pkg src + build
|
---|
| 85 | configure sudo :
|
---|
| 86 | bruno = NOPASSWD: /sbin/makepkg
|
---|