Cooperative Linux (coLinux) is a very interesting project i stumbled upon a few days ago. The idea of this project is to allow a Linux Kernel to run at the same time (cooperation) with the Windows system instead of doing virtualization or emulation. The result is an amazing speed if compared to VirtualBox or other virtualization solutions expecially in I/O and network operations.
Installing coLinux
Installation cooperative Linux is quite straightforward:- download the colinux stable installer from sourceforge (8MB) and run the setup program, follow all the normal procedure for a Windows software;
- after setup download a pre-built Linux distribution from the same page, i choosed Debian 6 (35MB);
- extract the .7z archive with the distribution into the coLinux installation directory, be carefull that the archive is 35MB but after extraction the file will be 2GB;
- rename the extracted file as rootfs_2gb.img
- now execute squeeze.bat to run coLinux
Configuring coLinux
What you get out of the box is a very minimal system, you need to install all the extra packages you wish but with 2GB is quite a few space, so first of all you may wish to move your system to a larger partition. Luckly is not difficult and there are a few way to enlarge your default coLinux root partition to install more software.After you’re done you can start installing all your favourites packages via apt-get.
The first things you maybe wants to setup are: network, keyboards, ssh, Windows drives or directories.
Configuring coLinux networking and ssh
coLinux network should work out of the box with the SLIRP driver that allow you to use eth0 interfaces via a TUN/TAP driver that gives access to internet but other machines on the real network will not able to access coLinux.So, in order to access your coLinux system via SSH you need to configure port forwarding into the SLIRP driver. Its sounds complicated but in reality is quite easy. Edit the squeeze.conf file and change the line:
eth0=slirp
witheth0=slirp,,tcp:22:22
then shutdown and restart your system.Is it advisable to use coLinux via SSH because the default console does not supports scrollback!
Configuring coLinux keyboard and locales
If you have a non-US keyboard is quite advisable to install the Debian’s keyboard layout packages and the locales data too.This is super easy just install the packages:
apt-get install console-setup localeAlso if you want to change the console size to have something bigger then the default 80×25 screen you can add the following line to the squeeze.conf file:
cocon=120x50then halt and restart the system again.
Accessing Windows directories from coLinux
Differently from other softwares, coLinux allow you to access windows drives and directories like a breeze. Everything you have to do is to configure your config file adding this line:cofs0="c:\colinux\shared\"then halt and restart the system again.
Once the system has been configure you can mount this directory with the mount command:
mount cofs0 /mnt/ -t cofsor configure /etc/fstab to automatically have it mounted at boot time just adding this line:
cofs0 /mnt cofs defaults 0 0
Hi friends,
ReplyDeleteCooperative Linux is the first method for optimally running Linux on Windows and other operating systems natively. Thanks a lot.....
SMP For SQL