source: devel/pb-doc/qemu.txt

Last change on this file was 2084, checked in by bruno, 19 months ago
  • build and delivery directories renamed pbbuild and pbdelivery for consistency and to ease filtering (with git e.g.)
  • Property svn:eol-style set to native
File size: 2.2 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# 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# Making a snapshot
40Ctrl-Alt 2
41savevm pb
42commit all
43
44# Slack: put loadkeys fr in /etc/rc.d/rc.keymap
45
46#Clé SSH:
47mkdir .ssh
48chmod 700 .ssh
49scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
50chmod 600 /root/.ssh/authorized_keys
51
52#rebuild paquets necessaires mondo:
53wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
54wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
55rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
56mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
57rpmbuild --define "_topdir $HOME/pbbuild" -ba build/SPECS/afio.spec
58rpmbuild --define "_topdir $HOME/pbbuild" -ba build/SPECS/buffer.spec
59chmod 644 build/RPMS/i386/*
60scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
61
62root:
63rpm -ivh ~bruno/pbbuild/RPMS/i?86/afio-[0-9]* ~bruno/pbbuild/RPMS/i?86/buffer-[0-9]*
64
65# For RHAS 2.1 add grep-2.5.1
66
67#for gentoo
68chown bruno /etc/make.conf
69bruno in portage group
70
71# for FreeBSD
72ln -sf /usr/local/bin/bash /bin/bash
73
74# For Slackware
75take on ftp pkg src + build
76configure sudo :
77bruno = NOPASSWD: /sbin/makepkg
Note: See TracBrowser for help on using the repository browser.