source: branches/2.0.8/tools/qemu-vm.txt @ 535

Last change on this file since 535 was 535, checked in by bcornec, 13 years ago

merge -r 526:530 $SVN_M/branches/stable

File size: 3.7 KB
Line 
1Booting CD
2qemu-img create -f qcow image.qemu 3G
3qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
4
5# RPM based : urpmi, yum install, yast2
6    neon newt-devel slang-devel autoconf automake subversion libtool gcc rpm-build wget vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man docbook-dtd41-sgml groff lynx
7
8# gentoo
9Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
10emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue
11
12Changing CD during install:
13Ctrl-Alt-2
14eject cdrom
15(swap disk)
16change cdrom /dev/cdrom
17
18Boot single user pour change passwd root
19Clavier fr:
20
21loadkeys fr
22perl -pi -e 's/"us"/"fr"/' /etc/sysconfig/keyboard
23perl -pi -e 's/"us"/"fr"/' /etc/X11/XF86Config
24perl -pi -e 's/"us"/"fr"/' /etc/X11/xorg.conf
25Slack: put loadkeys fr in /etc/rc.d/rc.keymap
26
27Conf IP:
28    Ajout machine dans DNS interne (/usr/local/etc/named/etc/db.mondo.*)
29    Reload named
30
31Clé SSH:
32    Ajout clé ssh pour root:
33mkdir /root/.ssh
34chmod 700 /root/.ssh
35scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
36chmod 600 /root/.ssh/authorized_keys
37
38Install packages manquant pour mondo:
39    afio buffer
40
41Créer compte bruno avec répertoires nécéssaires + env necessaire
42useradd bruno
43passwd bruno
44
45su - bruno
46mkdir -p mondo/tmp RPMS/BUILD RPMS/RPMS/i386 RPMS/RPMS/noarch RPMS/SOURCES RPMS/SPECS RPMS/SRPMS RPMS/tmp SRPMS tmp
47cat > ~bruno/.rpmmacros << EOF
48%_topdir    /home/bruno/RPMS
49%_tmppath   %{_topdir}/tmp
50%packager   Bruno Cornec <bruno@HyPer-Linux.org>
51EOF
52cat > ~bruno/.rpmrc << EOF
53buildarchtranslate: i386: i386
54buildarchtranslate: i486: i386
55buildarchtranslate: i586: i386
56buildarchtranslate: i686: i386
57EOF
58mkdir ~/.ssh
59chmod 700 ~/.ssh
60scp -p victoria2.home.musique-ancienne.org:.ssh/id'*' ~/.ssh
61cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
62chmod 600 ~/.ssh/authorized_keys
63
64cat >> ~/.ssh/known_hosts << EOF
65shell.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==
66svn.berlios.de,195.37.77.137 ssh-dss AAAAB3NzaC1kc3MAAACBAKouB77l1f4FgdP6DjLOgq5RKuGYm3zMJlM4WHcKzWnPuErZW4Omxk1CO0JojDNj/bjxz/95blWbdonEcAo0v71GcZbECFDsJdgVbZM+yxLHKOF4S5uHkiJ+LMawFcRoCGAochowoP9jUfLVAzyT1q3dbvmL43YO3FDvD+mCKTbZAAAAFQCWs/2nOqvitE/CyOCa81sadnzsPQAAAIBrgWRs2VN6jAtX1eUxPwtkJWX886DkiBwdEgtUwDW8RJJCFU6+zjNwFZ8VcjeA7OCFKmZqoD8ABojMMtB53VoXXRzp5PtWgJEMpCLOhHbAA6nLR+Zu9zV8rFHsrjvR17ZgmA8q1dZRqqvZSyzsoP4KdW7f9nD2SjFEVhjHfIsQmwAAAIEAoDlEoGO/lc8XkvNW7G8/rybzETG0cepONVKThYufP5Z2FdGj9a1TYc2Gaw2DygM20Ohwj1RW8aeRE/jYbEm4unM6IFYeLvCbDeeCCHCiCJmw/Pj2ityB5uPTat4Yn28FCd4eP5LyQq2EHz6bPA0LzpNJKwto4naIMsDpET1GNH0=
67EOF
68cat >> ~/.bash_profile << EOF
69export SVN_SSH="ssh -l bcornec"
70export SVN_M=svn+ssh://bcornec@svn.berlios.de/svnroot/repos/mondorescue/
71export SVN_EDITOR=vim
72EOF
73source ~/.bash_profile
74
75rebuild paquets necessaires mondo:
76wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
77wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
78rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
79rpmbuild -ba RPMS/SPECS/afio.spec
80rpmbuild -ba RPMS/SPECS/buffer.spec
81chmod 644 RPMS/RPMS/i386/*
82scp -p RPMS/RPMS/i386/afio-[0-9]* RPMS/RPMS/i386/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/
83
84
85root:
86rpm -ivh ~bruno/RPMS/RPMS/i386/afio-[0-9]* ~bruno/RPMS/RPMS/i386/buffer-[0-9]*
Note: See TracBrowser for help on using the repository browser.