source: MondoRescue/branches/2.2.5/tools/qemu-vm.txt @ 1631

Last change on this file since 1631 was 1631, checked in by Bruno Cornec, 13 years ago

Fix a bug for pb build (omission of PB-SUF declaration)

File size: 2.5 KB
Line 
1#Booting CD
2qemu-img create -f qcow image.qemu 3G
3qemu -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
9urpmi 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
12yum 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
17emerge 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
23apt-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
26patch -p0 < pb-doc/App*
27
28#Changing CD during install:
29Ctrl-Alt-2
30eject cdrom
31(swap disk)
32change cdrom /dev/cdrom
33
34# Slack: put loadkeys fr in /etc/rc.d/rc.keymap
35
36#Clé SSH:
37scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
38chmod 600 /root/.ssh/authorized_keys
39
40#Créer compte pb
41useradd pb
42
43# No passwd for pb
44perl -pi -e 's/^pb:\!\!:/pb:*:/' /etc/shadow
45# Adapt sudoers
46echo "pb   ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
47# poweroff only
48
49su - pb
50mkdir ~/.ssh
51chmod 700 ~/.ssh
52scp -p victoria2.home.musique-ancienne.org:.ssh/id_dsa.pub ~/.ssh/authorized_keys
53# Passwd asked above
54chmod 600 ~/.ssh/authorized_keys
55
56#rebuild paquets necessaires mondo:
57wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
58wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
59rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
60mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
61rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
62rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
63chmod 644 build/RPMS/i386/*
64scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
65
66# Exchange host keys with www.mondorescue.org
67ssh www.mondorescue.org ls
68
69
70root:
71rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
72
73# For RHAS 2.1 add grep-2.5.1
74
75#for gentoo
76chown bruno /etc/make.conf
77bruno in portage group
78
79# for FreeBSD
80ln -sf /usr/local/bin/bash /bin/bash
81
82# For Slackware
83take on ftp pkg src + build
84configure sudo :
85bruno = NOPASSWD: /sbin/makepkg
Note: See TracBrowser for help on using the repository browser.