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

Last change on this file since 1633 was 1633, checked in by Bruno Cornec, 17 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
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
[1013]5# Recent SUSE acpi=off
6
[535]7# RPM based : urpmi, yum install, yast2
[930]8# Mandriva
[1633]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
[464]10
[930]11#Fedora
[1633]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
[930]13
14
[535]15# gentoo
[753]16#Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
[1633]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
[535]18
[1011]19# Slackware
20# Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
[1474]21#
22# Ubuntu
[1633]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
[1011]24
[1633]25# Apply AppConfig path
26patch -p0 < pb-doc/App*
27
[753]28#Changing CD during install:
[464]29Ctrl-Alt-2
30eject cdrom
31(swap disk)
32change cdrom /dev/cdrom
33
[753]34# Slack: put loadkeys fr in /etc/rc.d/rc.keymap
[1513]35# Gentoo: edit /etc/conf.d/keymaps
[464]36
[753]37#Clé SSH:
[464]38scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
39chmod 600 /root/.ssh/authorized_keys
40
[1633]41#Créer compte pb
42useradd pb
[464]43
[1633]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
[1539]49
[1633]50su - pb
[464]51mkdir ~/.ssh
52chmod 700 ~/.ssh
[1633]53scp -p victoria2.home.musique-ancienne.org:.ssh/id_dsa.pub ~/.ssh/authorized_keys
[753]54# Passwd asked above
[464]55chmod 600 ~/.ssh/authorized_keys
56
[753]57#rebuild paquets necessaires mondo:
[464]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
[753]61mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
[1633]62rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/afio.spec
63rpmbuild --define "_topdir $HOME/build" -ba build/SPECS/buffer.spec
[629]64chmod 644 build/RPMS/i386/*
[1011]65scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
[464]66
[1481]67# Exchange host keys with www.mondorescue.org
68ssh www.mondorescue.org ls
[464]69
[1481]70
[464]71root:
[753]72rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
[572]73
[1489]74# For RHAS 2.1 add grep-2.5.1
75
[753]76#for gentoo
[572]77chown bruno /etc/make.conf
78bruno in portage group
[1034]79
80# for FreeBSD
81ln -sf /usr/local/bin/bash /bin/bash
[1044]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.