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

Last change on this file since 3656 was 1693, checked in by Bruno Cornec, 17 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
RevLine 
[753]1#Booting CD
[1536]2qemu-img create -f qcow2 image.qemu 3G
[464]3qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
4
[1693]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
[1013]18# Recent SUSE acpi=off
19
[535]20# RPM based : urpmi, yum install, yast2
[930]21# Mandriva
[464]22
[535]23# gentoo
[753]24#Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
[1663]25emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue cdrecord mkisofs pb
[535]26
[1011]27# Slackware
28# Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
[1474]29#
30# Ubuntu
[1633]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
[1011]32
[753]33#Changing CD during install:
[464]34Ctrl-Alt-2
35eject cdrom
36(swap disk)
37change cdrom /dev/cdrom
38
[753]39# Slack: put loadkeys fr in /etc/rc.d/rc.keymap
[1513]40# Gentoo: edit /etc/conf.d/keymaps
[464]41
[753]42#Clé SSH:
[1693]43mkdir .ssh
44chmod 700 .ssh
[464]45scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
46chmod 600 /root/.ssh/authorized_keys
47
[753]48#rebuild paquets necessaires mondo:
[464]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
[753]52mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
[1633]53rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
54rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
[629]55chmod 644 build/RPMS/i386/*
[1011]56scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
[464]57
58root:
[753]59rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
[572]60
[1489]61# For RHAS 2.1 add grep-2.5.1
62
[753]63#for gentoo
[572]64chown bruno /etc/make.conf
65bruno in portage group
[1034]66
67# for FreeBSD
68ln -sf /usr/local/bin/bash /bin/bash
[1044]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.