[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 |
|
---|
[1693] | 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 |
|
---|
[1013] | 18 | # Recent SUSE acpi=off
|
---|
| 19 |
|
---|
[535] | 20 | # RPM based : urpmi, yum install, yast2
|
---|
[930] | 21 | # Mandriva
|
---|
[464] | 22 |
|
---|
[535] | 23 | # gentoo
|
---|
[753] | 24 | #Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
|
---|
[1663] | 25 | emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue cdrecord mkisofs pb
|
---|
[535] | 26 |
|
---|
[1011] | 27 | # Slackware
|
---|
| 28 | # Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
|
---|
[1474] | 29 | #
|
---|
| 30 | # Ubuntu
|
---|
[1633] | 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
|
---|
[1011] | 32 |
|
---|
[753] | 33 | #Changing CD during install:
|
---|
[464] | 34 | Ctrl-Alt-2
|
---|
| 35 | eject cdrom
|
---|
| 36 | (swap disk)
|
---|
| 37 | change cdrom /dev/cdrom
|
---|
| 38 |
|
---|
[753] | 39 | # Slack: put loadkeys fr in /etc/rc.d/rc.keymap
|
---|
[1513] | 40 | # Gentoo: edit /etc/conf.d/keymaps
|
---|
[464] | 41 |
|
---|
[753] | 42 | #Clé SSH:
|
---|
[1693] | 43 | mkdir .ssh
|
---|
| 44 | chmod 700 .ssh
|
---|
[464] | 45 | scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
|
---|
| 46 | chmod 600 /root/.ssh/authorized_keys
|
---|
| 47 |
|
---|
[753] | 48 | #rebuild paquets necessaires mondo:
|
---|
[464] | 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
|
---|
[753] | 52 | mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
|
---|
[1633] | 53 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
|
---|
| 54 | rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
|
---|
[629] | 55 | chmod 644 build/RPMS/i386/*
|
---|
[1011] | 56 | scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
|
---|
[464] | 57 |
|
---|
| 58 | root:
|
---|
[753] | 59 | rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
|
---|
[572] | 60 |
|
---|
[1489] | 61 | # For RHAS 2.1 add grep-2.5.1
|
---|
| 62 |
|
---|
[753] | 63 | #for gentoo
|
---|
[572] | 64 | chown bruno /etc/make.conf
|
---|
| 65 | bruno in portage group
|
---|
[1034] | 66 |
|
---|
| 67 | # for FreeBSD
|
---|
| 68 | ln -sf /usr/local/bin/bash /bin/bash
|
---|
[1044] | 69 |
|
---|
| 70 | # For Slackware
|
---|
| 71 | take on ftp pkg src + build
|
---|
| 72 | configure sudo :
|
---|
| 73 | bruno = NOPASSWD: /sbin/makepkg
|
---|