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

Last change on this file was 1693, checked in by Bruno Cornec, 16 years ago
  • Remove useless copy from mindi to mondo at end of USB handling
  • Fix PB macro vs tools/*2build issue
  • make_usb_fs change of interface (doesn't need a parameter)
  • Fix USB support in mondo to avoid multiple copies of files
  • Use first partiion in mondo for USB device
  • Fixes for USB CLI for both mondo/mindi
  • Try to add USB support for mondoarchive with new functions
  • du => deb for similarity with other distro type under pbconf
  • migrate gento build files under pb
  • remove now obsolete rpm spec file and gentoo build files from distributions
  • Remove DOCDIR usage in mindi + various build fixes

(merge -r1680:1692 $SVN_M/branches/2.2.5)

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