source: branches/2.2.2/tools/qemu-vm.txt

Last change on this file was 1013, checked in by bruno, 13 years ago

ChangeLogs? update for release delivery (2.2.1)

File size: 3.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 gvim/vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man patch mindi mondo
10
11#Fedora
12yum install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gvim/vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man patch
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
18
19# Slackware
20# Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
21
22#Changing CD during install:
23Ctrl-Alt-2
24eject cdrom
25(swap disk)
26change cdrom /dev/cdrom
27
28# Slack: put loadkeys fr in /etc/rc.d/rc.keymap
29
30#Clé SSH:
31#   Ajout clé ssh pour root:
32mkdir /root/.ssh
33chmod 700 /root/.ssh
34scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
35chmod 600 /root/.ssh/authorized_keys
36
37#Créer compte bruno avec répertoires nécéssaires + env necessaire
38mkdir /users
39useradd bruno -d /users/bruno
40passwd bruno
41
42su - bruno
43mkdir -p mondo/tmp build
44cat > ~bruno/.rpmmacros << EOF
45%_topdir    /users/bruno/build
46%_tmppath   %{_topdir}/tmp
47%packager   Bruno Cornec <bruno@mondorescue.org>
48EOF
49cat > ~bruno/.rpmrc << EOF
50buildarchtranslate: i386: i386
51buildarchtranslate: i486: i386
52buildarchtranslate: i586: i386
53buildarchtranslate: i686: i386
54EOF
55mkdir ~/.ssh
56chmod 700 ~/.ssh
57scp -p victoria2.home.musique-ancienne.org:.ssh/id'*' ~/.ssh
58# Passwd asked above
59cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
60chmod 600 ~/.ssh/authorized_keys
61
62cat >> ~/.ssh/known_hosts << EOF
63shell.berlios.de,195.37.77.140 ssh-dss AAAAB3NzaC1kc3MAAACBAKawwrOuxejvOTWc6zFKEs2KKzVDXchPICt0p5A6LuIeIX+Uw9QMM5hji7txwuNt+ErPX/Z9xd1OBKAsormCMe6BZaxi0KMyFHPTnFTJpy168ztBD+782fQwlvop9nNRWkKoY1BGqQvKX50Zj+mQ39VP+RgJsyDMl+sKA3OqtGcVAAAAFQCBx79R1fUfJgOAVKxrCnvCu2vQRQAAAIBq5Li0/Fdf0yL/fSv6q8OZLCUgjMk6agnNbMxSK35Vctx0E4KXQbIJTmpwZIgYdZm+S2LYe0EgEYcWyBgcll1kK5Rti2e71sVuSoRNCo+rD8bsBcIETENtHZYuAeAWBlwrvT5LReGRpJ1YMNQpXXq4mQFbmhuhgJw9nKyt5xv6bgAAAIAro+dquEuGy32MOLcSqHtJm/FA+3FRG0RbLS8VDtxVC3ISe3SlSM0BecIHZ6aP5dL5W2b39/U2clls05X23SRK68DSqxoR/o9YshKdshDkPGEDfqyucOCn5FwUsZkd/WkZIuBZdLHLUtXUK6h85+08t5gmaL8eoXoOvHpsuCnNdA==
64svn.berlios.de,195.37.77.137 ssh-dss AAAAB3NzaC1kc3MAAACBAKouB77l1f4FgdP6DjLOgq5RKuGYm3zMJlM4WHcKzWnPuErZW4Omxk1CO0JojDNj/bjxz/95blWbdonEcAo0v71GcZbECFDsJdgVbZM+yxLHKOF4S5uHkiJ+LMawFcRoCGAochowoP9jUfLVAzyT1q3dbvmL43YO3FDvD+mCKTbZAAAAFQCWs/2nOqvitE/CyOCa81sadnzsPQAAAIBrgWRs2VN6jAtX1eUxPwtkJWX886DkiBwdEgtUwDW8RJJCFU6+zjNwFZ8VcjeA7OCFKmZqoD8ABojMMtB53VoXXRzp5PtWgJEMpCLOhHbAA6nLR+Zu9zV8rFHsrjvR17ZgmA8q1dZRqqvZSyzsoP4KdW7f9nD2SjFEVhjHfIsQmwAAAIEAoDlEoGO/lc8XkvNW7G8/rybzETG0cepONVKThYufP5Z2FdGj9a1TYc2Gaw2DygM20Ohwj1RW8aeRE/jYbEm4unM6IFYeLvCbDeeCCHCiCJmw/Pj2ityB5uPTat4Yn28FCd4eP5LyQq2EHz6bPA0LzpNJKwto4naIMsDpET1GNH0=
65EOF
66
67#rebuild paquets necessaires mondo:
68wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
69wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
70rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
71mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
72rpmbuild -ba build/SPECS/afio.spec
73rpmbuild -ba build/SPECS/buffer.spec
74chmod 644 build/RPMS/i386/*
75scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
76
77
78root:
79rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
80
81#for gentoo
82chown bruno /etc/make.conf
83bruno in portage group
Note: See TracBrowser for help on using the repository browser.