Changeset 1693 in MondoRescue for branches/stable/tools
- Timestamp:
- Oct 21, 2007, 3:06:22 AM (18 years ago)
- Location:
- branches/stable/tools
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/qemu-vm.txt
r1663 r1693 2 2 qemu-img create -f qcow2 image.qemu 3G 3 3 qemu -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 8 grep Root /etc/ssh/sshd_config 9 10 # On Ubuntu install openssh-server 11 apt-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 4 17 5 18 # Recent SUSE acpi=off … … 7 20 # RPM based : urpmi, yum install, yast2 8 21 # Mandriva 9 urpmi 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 pb10 11 #Fedora12 yum install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs pb13 14 22 15 23 # gentoo … … 23 31 apt-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 24 32 25 # Apply AppConfig path26 patch -p0 < pb-doc/App*27 28 33 #Changing CD during install: 29 34 Ctrl-Alt-2 … … 36 41 37 42 #Clé SSH: 43 mkdir .ssh 44 chmod 700 .ssh 38 45 scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys 39 46 chmod 600 /root/.ssh/authorized_keys 40 41 #Créer compte pb42 useradd pb43 44 # No passwd for pb45 perl -pi -e 's/^pb:\!\!:/pb:*:/' /etc/shadow46 # Adapt sudoers47 echo "pb ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers48 # poweroff only49 50 su - pb51 mkdir ~/.ssh52 chmod 700 ~/.ssh53 scp -p victoria2.home.musique-ancienne.org:.ssh/id_dsa.pub ~/.ssh/authorized_keys54 # Passwd asked above55 chmod 600 ~/.ssh/authorized_keys56 47 57 48 #rebuild paquets necessaires mondo: … … 64 55 chmod 644 build/RPMS/i386/* 65 56 scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/ 66 67 # Exchange host keys with www.mondorescue.org68 ssh www.mondorescue.org ls69 70 57 71 58 root: -
branches/stable/tools/setupqemu
r1681 r1693 3 3 ( 4 4 if [ _"$1" == _"" ]; then 5 echo "Syntax: setupqemu VM "5 echo "Syntax: setupqemu VM|all" 6 6 exit -1 7 7 fi 8 8 cat /users/bruno/pb/svn/devel/pb/contrib/pbsetupqemu /users/bruno/pb/svn/devel/pb/lib/ProjectBuilder/Distribution.pm > /tmp/pbscript 9 for m in $*; do 10 pb -r `pwd` -p mondorescue - m $m -a root -s /tmp/pbscript script2vm ; pb -p mondorescue -m $m build2vm9 if [ _"$1" == "all" ]; then 10 pb -r `pwd` -p mondorescue -a root -s /tmp/pbscript script2vm 11 11 ssh -p 2222 root@localhost halt 12 12 sleep 120 13 ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill -9 14 done 13 ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill 14 else 15 for m in $*; do 16 pb -r `pwd` -p mondorescue -m $m -a root -s /tmp/pbscript script2vm ; pb -p mondorescue -m $m build2vm 17 #ssh -p 2222 root@localhost halt 18 #sleep 120 19 #ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill -9 20 done 21 fi 15 22 ) 2>&1 | tee /tmp/setupqemu.log
Note:
See TracChangeset
for help on using the changeset viewer.