Work In Progress I suck in wiki syntax, please feel free to fix this page
While my shiny Ubuntu Dapper completes its install over coLinux, perhaps it's time to document the steps. Hopefully, I'm reducing the drudgery for some friend.
Before we start
Before we start Even before we start, we should have some nice software on the desktop
- colinux 0.6.4 .. of course. We don't need the rootfs download. I've no idea about Bridge networking, since i don't know how to use it.
- Squid for NT .. When installing over the network, this is GREAT. Highly recommended, if you are going to do some experimentation of your own.
- A couple of preformatted file systems. You can find that elsewhere. I'll just assume you have a 'ubuntu.ext2' and 'home.ext2', which are empty ext2 file systems of 2GB each.
- The initrd from ubuntu net install. Pick initrd.gz from netboot/ubuntu-installer/i386/ of your favorite ubuntu mirror (or Edgy from the primary archives at http://archive.ubuntu.com/ubuntu/dists/edgy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/). While there, also get pxelinux.cfg/default, from where we'll derive our bootparms
- First we need to make sure SQUID doesn't reject the proxy requests from our ubuntu installer. Selet 'Edit Configuration' form 'Squid' menu, and change IP1 to 0.0.0.0 and IP2 to 255.255.255.255. Try to use other menu items, to restart the server. Don't forget to check etc/squid.conf ( search for 0.0.0.0) that your changes were indeed accepted. If something is not set right at this stage, then later, our ubuntu installer will report inability to locate mirror, and we can fix the squid then.
- I keep my colinux files away from coLinux installation ( C:\Program Files\colnux) to a directory D:\colinux\. Hence my ubuntu.xml looks like this
<?xml version="1.0" encoding="UTF-8"?> <colinux> <block_device index="0" path="\DosDevices\d:\coLinux\ubuntu.ext2" enabled="true" /> <block_device index="1" path="\DosDevices\d:\coLinux\home.ext2" enabled="true" /> <bootparams>root=/dev/ram0 base-installer/kernel/linux/extra-packages-2.6= pkgsel/install-pattern=~t^ubuntu-standard$ pkgsel/language-pack-patterns= pkgsel/install-language-support=false DEBCONF_PRIORITY=low vga=normal ramdisk_size=14409 rw -- </bootparams> <initrd path="ubuntuinstall-initrd.gz" /> <image path="C:\Program Files\colinux\vmlinux" /> <memory size="256" /> <network index="0" type="tap" /> </colinux>
Note that ubuntu.ext2 and home.ext2 are ALREADY FORMATTED to ext2, and initrd is the ubuntu's netboot initrd
- Time to jump in the installation ...
"C:\Program Files\colinux\colinux-daemon" -c ubuntu.xml -t nt
- You should see the 'expert' screens.
- Don't forget to set the proxy to http://192.168.0.1:8080, if you have enabled squid. If mirror is not found due to this it's time to restart and check squid.
- Avoid going into the partition manager (selecting 'Go back' instead ). Even if you by mistake enter the partition manager, just switch fo Alt-F2, and kill the process which look like part. Thankfully the installer does go ahead properly.
- Switch to Alt-f2 and mount few things
mknod /dev/cobd0 b 117 0 mknod /dev/cobd1 b 117 1 mount /dev/cobd0 /target mkdir /target/home mount /dev/cobd1 /target/home
There is no mke2fs available, hence it's important to have already formatted partitions. A few lines about the previous commands may be in order.
mknod /dev/cobd0 b 117 0
This command creates a block special device file /dev/cobd0 with major code 117 and minor code 0. The major code 117 indicates that we are referring to an Enterprise Volume Management System (EVMS) device - 0 referring to 0 = /dev/evms/block_device (EVMS block device).
After you have setup package manager, you can switch to Alt-F2, and chroot /target, and feel your new installation.
- Now you are just waiting to kill this installation, and jump into actual run. While you are here, feel free to install anything. But we can also install / uninstall later.
- fix /target/etc/fstab , /dev/cobd0 at /
- halt / shutdown
preparing the run
- clean bootparms and put root=/dev/cobd0
- use initrd from colinux.
- boot, and see that modules are injected.
- fix any other things...
after the install
- aptitude install x11-common will crash colinux. after aptitude install laptop-detect, edit /usr/sbin/laptop-detect to exit 1 in second line.
PS: I'll do all it again, and fill in the missing pieces. Meanwhile, please feel free to fix this page factually and visually. -- Vardhan Varma < firstname.lastname@example.org>