Posted on 01/17/2005 12:05:20 PM PST by ShadowAce
We are delirious with joy, or maybe it is just that we've spent too long staring at the screen. . . . Whatever, we just found the coolest hack that you just have to check out!
We're playing with Debian Linux running cooperatively with Windows. Yes, you might go back and re-read that sentence. This fascinating system is called coLinux and it allows the Linux kernel to run as a program or service under Windows 2000 or XP without using a commercial PC virtualization system such as User Mode Linux or VMware.
Specifically, coLinux - a port of the 2.6 kernel - is "special driver software on the host operating system [that executes] the coLinux kernel in a privileged mode [known as ring 0 or supervisor mode]," says coLinux development team leader and project originator Dan Aloni.
Aloni goes on: "By constantly switching the machine's state between the host operating system state and the coLinux kernel state, coLinux is given full control of the physical machine's [Memory Management Unit] (such as paging and protection) in its own specially allocated address space, and is able to act just like a native kernel, achieving almost the same performance and functionality that can be expected from a regular Linux which could have ran on the same machine stand-alone."
To share hardware with the host operating system, coLinux does not access I/O devices directly. Aloni says coLinux "interfaces with emulated devices provided by the coLinux drivers in the host operating system. . . . All real hardware interrupts are transparently forwarded to the host operating system, so this way the host operating system's control of the real hardware is not being disturbed and thus it continues to run smoothly." p> The final crucial point is that, "since coLinux uses the same binary format for user-space executables as native Linux, coLinux can load and run an existing unmodified Linux distribution concurrently with the host operating system."
In other words, coLinux is really Linux and thus becomes a remarkably effective platform for learning how Linux works and for running those cool Linux-only applications under Windows.
You can find coLinux at www.colinux.org. Download the installer from the coLinux project's Sourceforge site, and run the install program.
The installation process is simple, but avoid installing coLinux under the "Program Files" subdirectory (or for that matter any other subdirectory with a long name), otherwise you'll need to know the subdirectory's short name when you get around to configuring the system.
Once you have coLinux installed you'll need a Linux distribution root image - an image of an installed distro that's stored in a file. You can download a distro root image file - we used the Debian version.
The root image files in this library have an extension of bz2, as they are compressed with bzip2. You can decompress these files with bzip2 or TUGZip.
You'll need to create a swap file which you can download as a bzip2 compressed root image - choose a version that is the same size as the amount of RAM you plan to allocate for coLinux to run.
You are now ready to edit the configuration file so that the coLinux loader knows where its disk devices are (really Windows files), which swap device to use (again, it's a Windows file), which kernel to use, how much memory to use (by default it is a miserly 64M bytes), and how networking is set up.
To get networking working you have three choices: You can use network address translation, enable Windows Connection Sharing or set up a bridged network connection. We recommend using the Windows Connection Sharing configuration just to get started.
If you have set up everything right, then open a command window in the coLinux subdirectory and enter the command:
colinux-daemon.exe -c d:\progra1\coLinux\colinux.default.xml
You should see the coLinux system initialize and whatever distribution you selected should load. A window titled "Cooperative Linux Console" should open and the rest of the boot process will be displayed until finally you see "colinux login:" to which the answer - if this is the first time you've run coLinux - should be "root" without a password.
If you know Linux, enjoy. If you don't, then next week we'll delve deeper . . . you can shut down your coLinux with "shutdown -h now."
Here's a list of the SuSE download mirrors. Which one you should use depends on where you are. Choose the one closest to you.
Thanks, but that's the list I was going by. Tried various ones from the SE and Puerto Rico.
I finally got a download from Czech late last night. Didn't run an md5sum on it yet to see if it's worthless or not. I'll try that tonight.
Heh. Sometimes you just gotta work your out, huh? If you're trying the SE, I suppose you tried the sunsite mirror. That has got to be the slowest site I've ever tried to get things from. I wonder what they're running?
Thanks for the disk advice/info. last week. Appreciate it.
If you're still interested, I live on the coast of Georgia and find the National Labs in Illinois at mirror.mcs.anl.gov with /pub/suse/i386/9.2/ to be a lot faster than anything local. I've been ruuning 9.2 via ftp install for quite a while now but I'm ready to pony-up for the 9.3 disks soon. I've bought 6.4, 7.2 and 8.2 before.
Have you played with coLinux any more? I just stumbled across the article and thought I might give it a go on my W2K work laptop.
But Windows is the dark side.
It looks as if Win4Lin 5.0 Workstation Edition is available, per www.netraverse.com/products/win4lin50/index.php. This looks like a lower cost VMWare to me.
Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.