source: MondoRescue/branches/stable/tools/qemu-vm.txt @ 1633

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

Fix #195 (patch from Scott Cummings)
Various pb updates

(merge -r1623:1632 $SVN_M/branches/2.2.5)

File size: 2.6 KB
Line 
1#Booting CD
2qemu-img create -f qcow2 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 sudo jadetex docbook2ps pb # cdrecord mkisofs
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# Gentoo: edit /etc/conf.d/keymaps
36
37#Clé SSH:
38scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
39chmod 600 /root/.ssh/authorized_keys
40
41#Créer compte pb
42useradd pb
43
44# No passwd for pb
45perl -pi -e 's/^pb:\!\!:/pb:*:/' /etc/shadow
46# Adapt sudoers
47echo "pb   ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
48# poweroff only
49
50su - pb
51mkdir ~/.ssh
52chmod 700 ~/.ssh
53scp -p victoria2.home.musique-ancienne.org:.ssh/id_dsa.pub ~/.ssh/authorized_keys
54# Passwd asked above
55chmod 600 ~/.ssh/authorized_keys
56
57#rebuild paquets necessaires mondo:
58wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
59wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
60rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
61mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
62rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
63rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
64chmod 644 build/RPMS/i386/*
65scp -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
68ssh www.mondorescue.org ls
69
70
71root:
72rpm -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
77chown bruno /etc/make.conf
78bruno in portage group
79
80# for FreeBSD
81ln -sf /usr/local/bin/bash /bin/bash
82
83# For Slackware
84take on ftp pkg src + build
85configure sudo :
86bruno = NOPASSWD: /sbin/makepkg
Note: See TracBrowser for help on using the repository browser.