# begin USER=amegacz PASS=p2nddjns IP=66.139.77.19 ROOTPASS=28bnfprz # log in, become root cd ~root wget http://www.megacz.com/bashrc -O .bashrc source .bashrc export PATH=/sbin:/usr/sbin:$PATH rpm -e libxml2-python redhat-config-keyboard redhat-config-mouse redhat-config-date redhat-config-packages redhat-config-soundcard redhat-config-kickstart modutils-devel redhat-menus byacc dos2unix finger hesiod libart_lgpl libogg libvorbis-devel rcs rsh setuptool audiofile esound lockdev-devel automake14 cipe ed ash indent mtr ORBit2 pxe lftp statserial tcsh unix2dos utempter gpm-devel logwatch nscd sgml-common stunnel apmd cyrus-sasl-devel gcc-g77 lokkit libuser-devel pciutils rp-pppoe usermode XFree86-Mesa-libGLU finger-server vsftpd libgcj anonftp gtk2 libxml GConf2 libxslt mod_ssl mysql-server perl-DBD-MySQL php-ldap python orbit-python authconfig-gtk redhat-config-proc redhat-logviewer rpm-python up2date libgnome gnome-python2 timeconfig yp-tools comps httpd-manual indexhtml pciutils-devel redhat-logos rmt dump diffstat dosfstools eject atk hdparm hesiod-devel jfsutils lha libacl-devel libcap libcap-devel libf2c libgnat cups-libs libogg-devel doxygen libtool-libs libvorbis linc lrzsz ltrace mt-st pam_smb cleanfeed perl-CGI perl-DBI perl-HTML-Parser perl-libwww-perl rdate reiserfs-utils ntsysv specspo star swig tcl dev86 htmlview lockdev logrotate dialog automake automake15 cpio gmp-devel at m4 mtools bind-utils curl-develORBit procmail aspell pyOpenSSL raidtools bc ntp sox autoconf libtool mouseconfig rpm-build rpm-devel tmpwatch tux hotplug whois gpm pam-devel rsh-server inn krb5-devel perl-DBD-Pg slang-devel slrn bind dhclient gcc-gnat isdn4k-utils kernel-source nss_ldap postfix quota sendmail tcpdump kbd gtk+ tk xft imap cvs httpd libgcj-devel libmng gd cups emacs-leim imlib libwvstreams libxml-devel bonobo-activation libbonobo libgnomecanvas lynx mod_python mutt mysql-devel net-snmp perl-DB_File php-imap postgresql psgml comps-extras libxml-python pygtk2 pygtk2-libglade python-optik qt rhnlib rpm404-python portmap gnome-vfs2 libbonoboui libgnomeui memprof webalizer ypbind ypserv libxml2-devel webmin gnome-mime-data mailcap kudzu-devel expat-devel gmp ksymoops attr libattr-devel inews libIDL libusb pax fbset perl-HTML-Tagset pkgconfig rdist setserial splint libusb-devel minicom pinfo pspell python-devel cdecl talk usbutils wireless-tools authconfig ppp irda-utils postgresql-libs newt-devel caching-nameserver hwcrypto kernel-pcmcia-cs autofs openldap-devel fetchmail squid kbdconfig pango talk-server wu-ftpd gnupg gcc-java libpng10 gnome-libs libxml2 libglade2 mod_perl mysql net-snmp-utils php postgresql-server gnome-python2-canvas pyxf86config rhpl texinfo fam gnome-python2-bonobo nfs-utils wvdial zlib-devel unixODBC redhat-config-language redhat-config-users redhat-config-rootpassword gettext mkbootdisk kernel-pcmcia-cs libcap redhat-rpm-config vim-enhanced # change second partition from swap to Linux, turn off swap, format it echo -e t\n2\n83\nw\nq\n | fdisk swapoff /dev/hda2 mke2fs /dev/hda2 tune2fs -j -c 0 /dev/hda1 tune2fs -j -c 0 /dev/hda2 tune2fs -j -c 0 /dev/hda3 mount /dev/hda2 /mnt rsync -ax --progress / /mnt cd /mnt/usr/src/linux wget http://mirror.csociety.org/pub/kernel/v2.4/linux-2.4.20.tar.gz tar xvzf linux-2.4.20.tar.gz mv linux-2.4.20 linux cd linux make menuconfig # switch on ext3 and 8139too make bzImage cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.20 cat > /boot/lilo.conf <<\EOF prompt timeout=50 default=redhat boot=/dev/hda map=/boot/map install=/boot/boot.b lba32 image=/boot/vmlinuz-2.4.20 label=debian read-only root=/dev/hda3 image=/boot/vmlinuz-2.4.18-24.8.0 label=redhat initrd=/boot/initrd-2.4.18-24.8.0.img read-only root=/dev/hda2 EOF rm /etc/lilo.conf; ln -s /boot/lilo.conf /etc/lilo.conf lilo -v cd /mnt; ln -s . redhat; cd / mkdir /mnt/debian cat > /mnt/etc/fstab <<\EOF /dev/hda1 /boot ext3 defaults 1 2 /dev/hda2 / ext3 defaults 1 3 /dev/hda3 /debian ext3 defaults 1 1 none /proc proc defaults 0 0 EOF sync init 6 # we wake up in the "redhat" universe rsync --compress -e ssh -ax --delete --progress root@megacz.com:/ /debian/ mkdir /debian/redhat cd /debian; ln -s . debian rm /debian/etc/lilo.conf; ln -s /boot/lilo.conf /debian/etc/lilo.conf cat > /debian/etc/fstab <<\EOF /dev/hda1 /boot ext3 defaults 1 2 /dev/hda2 /redhat ext3 defaults 1 3 /dev/hda3 / ext3 defaults 1 1 none /proc proc defaults 0 0 EOF # fix /debian/etc/network/interfaces # integrate this into some boot script? lilo -R debian init 6