Saturday, January 2, 2010

INSTALL COLINUX

How to Instal and configure coLinux so that you can build Linux like environment in Windows XP?

1.Download the coLinux installer and the Ubuntu root file system image.
from http://sourceforge.net/projects/colinux/files.
Find Under coLinux-stable, 0.7.2-linux-2.6.22 and download coLinux-0.7.2.exe Under Root FS Images - 2.6.x-based, Ubuntu, download Ubuntu-6.06.1.ext3.1gb.bz2
2.Run the coLinux Windows installer
3. Accept defaults except for:
4. Destination Folder: change to c:\coLinux
You do not need to install WinPCap library.
5. You will get a warning dialog saying that "TAP-Win32 Adapter V8 (coLinux)" has not passed Windows Logo testing. Click "Continue Anyway".

Configure coLinux
1. You can use Cygwin bash shell or Windows commands to configure coLinux.
2. Copy Ubuntu-6.06.1.ext3.1bg.bz2 to c:\coLinux. (Keep a copy of this file as a backup to revert your Ubuntu filesystem if you mess things up.)
3. Decompress the Ubuntu file system image with the command shown below. I have used cygwin bash shell for this. If you want cygwin to install go to cygwin sites and download the required files. (Note, this could take a minute or more depending on your system.)

$ cd /cygdrive/c/coLinux
$ bunzip2 Ubuntu-6.06.1.ext3.1gb.bz2


4. To Create a swap file, type:

$ dd if=/dev/zero of=swap_device bs=1M count=512
$ dd if=/dev/zero of=swap_device.2gb bs=1M count=2K

(In Windows, you can use fsutil file createnew swap_device 536870912
)

5. Now create a configuration file.

$ cp example.conf colinux.conf

6. Edit colinux.conf and set the following:

cobd0="c:\coLinux\Ubuntu-6.06.1.ext3.1gb"
cobd1="c:\coLinux\swap_device"
mem=512
eth0=slirp

eth1=tuntap
# only needed for TAP connection. The following items should already be set by default:
kernel=vmlinux
root=/dev/cobd0
ro
initrd=initrd.gz



Run CoLinux

1. Open a Windows cmd.exe shell and type:

cd c:\colinux
colinux-daemon.exe -t nt @colinux.conf

(the -t nt is optional but makes it easier to copy/paste)

2. login as "root" with password "root"
3. Try commands such as ls, pwd, etc.
4. To exit, use the halt command.

No comments:

Post a Comment