Free Republic
Browse · Search
News/Activism
Topics · Post Article

Skip to comments.

Windows cooperating with Linux, honest!
NetworkWorldFusion ^ | 17 January 2005 | Mark Gibbs

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."


TOPICS: Culture/Society; News/Current Events; Technical
KEYWORDS: linux; windows
Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-67 next last
To: Golden Eagle
My point is it's in no way helping our software sales here in America. Simply another trojan used to move us over to foreign freeware.

No, because you still need the Linux distribution.

41 posted on 01/17/2005 4:52:46 PM PST by AmericaUnited
[ Post Reply | Private Reply | To 39 | View Replies]

To: ShadowAce

bump for later..


42 posted on 01/17/2005 4:53:04 PM PST by herewego (based on a true story)
[ Post Reply | Private Reply | To 4 | View Replies]

To: Golden Eagle

Plus you still need to run Windows also.


43 posted on 01/17/2005 4:53:26 PM PST by AmericaUnited
[ Post Reply | Private Reply | To 39 | View Replies]

To: AmericaUnited

FYI, most aren't from the US.

http://distrowatch.com/


44 posted on 01/17/2005 4:55:55 PM PST by Golden Eagle
[ Post Reply | Private Reply | To 41 | View Replies]

To: AmericaUnited

Not if things keep going to their plan, you won't need any US software, ever again. At least not any you have to pay for.


45 posted on 01/17/2005 4:57:05 PM PST by Golden Eagle
[ Post Reply | Private Reply | To 43 | View Replies]

To: Golden Eagle

Red Hat is the Linux market share leader at about 50%. Red Hat is American.


46 posted on 01/17/2005 5:28:51 PM PST by AmericaUnited
[ Post Reply | Private Reply | To 44 | View Replies]

To: AmericaUnited

I doubt it's 50%, and it's definitely dropping. Why wouldn't it, when they give it away for free? The Chinese rename it Red Flag, in case you didn't know. What do you think is bound to be #1 in China and Asia, Red Hat they have to pay for, or a free copy labled "Red Flag" instead?


47 posted on 01/17/2005 6:04:49 PM PST by Golden Eagle
[ Post Reply | Private Reply | To 46 | View Replies]

To: ShadowAce

Is CoLinux supposed to be able to run XWindows? Got to the command line. Guess I can practice shell scripts or something. But I really haven't had time to play any more with it.


48 posted on 01/17/2005 7:01:53 PM PST by VeniVidiVici (Got Wood?)
[ Post Reply | Private Reply | To 1 | View Replies]

To: VeniVidiVici

I don't really know. Since I never boot up into Windows, I haven't installed it.


49 posted on 01/17/2005 7:22:30 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 48 | View Replies]

To: ShadowAce

I'll let you know then.

Much easier to run Linux in a virtual machine. Though running as a service does have a certain geek factor to it.


50 posted on 01/17/2005 7:25:22 PM PST by VeniVidiVici (Got Wood?)
[ Post Reply | Private Reply | To 49 | View Replies]

To: ShadowAce

"Windows" and "honest" do not belong in the same sentence...


51 posted on 01/18/2005 4:48:49 AM PST by chilepepper (The map is not the territory -- Alfred Korzybski)
[ Post Reply | Private Reply | To 1 | View Replies]

To: chilepepper

If Netraverse ever comes out with Win4Linux 5.0, all the problems of Windows XP will be solved for good. Windows will run within a Unix kernel. And Bill Gates will be wondering why he didn't think of it first!


52 posted on 01/18/2005 4:53:34 AM PST by goldstategop (In Memory Of A Dearly Beloved Friend Who Lives On In My Heart Forever)
[ Post Reply | Private Reply | To 51 | View Replies]

To: Golden Eagle
Without linux, commands of that difficulty are not normally required just to install something.

Wrong again. Windows just hides that complexity from the user using file associations. Every time you start up, say, an Access database by clicking on the database itswelf, the system actually performs a comand very similar to the one shown above.

In this case, there are no file associations for the linux images, so the user must enter in the command himself.

If you don't know what you are talking about, please refrain from criticizing.

53 posted on 01/18/2005 7:14:15 AM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 35 | View Replies]

To: VeniVidiVici
Is CoLinux supposed to be able to run XWindows?

CoLinux is only the Windows code to run the Linux kernel as a process. If the version of Linux you have decided to run with CoLinux has X installed and configured, then yes it will run.

54 posted on 01/18/2005 3:49:34 PM PST by AmericaUnited
[ Post Reply | Private Reply | To 48 | View Replies]

To: Finalapproach29er
I had a similar problem a couple weeks ago. I downloaded a third party defragger and that worked. The one I used was PerfectDisk by raxco. They have a 1 month free trial. And it seems to work much faster than the Windows defragger.
55 posted on 01/18/2005 6:40:58 PM PST by Musket
[ Post Reply | Private Reply | To 21 | View Replies]

To: AmericaUnited
If the version of Linux you have decided to run with CoLinux has X installed and configured, then yes it will run.

Think I downloaded Gentoo Deluxe onto my laptop (where I installed CoLinux).

I don't know if that has it or not. I worked from home today so I didn't need to fire up my laptop to check it out.

On a side note, I've been trying to decide which distro to run on a regular basis. I've downloaded several and installed into XP (Virtual PC) to try out.

All are working well but I've been trying to get SuSE 9.2 and all the mirrors I've checked out either SUCK or the download is corrupt.

If anyone knows of a speedy site from which I can download SuSE 9.2, I'd appreciate it.

56 posted on 01/18/2005 7:25:24 PM PST by VeniVidiVici (Got Wood?)
[ Post Reply | Private Reply | To 54 | View Replies]

To: VeniVidiVici

I personally like Fedora Core.


57 posted on 01/19/2005 2:43:38 AM PST by AmericaUnited
[ Post Reply | Private Reply | To 56 | View Replies]

To: AmericaUnited

Yeah, I loaded up FC3. Need to start working with it.


58 posted on 01/19/2005 7:03:46 AM PST by VeniVidiVici (Got Wood?)
[ Post Reply | Private Reply | To 57 | View Replies]

To: ShadowAce

Linux bumptiy bump


59 posted on 01/19/2005 7:22:35 AM PST by Constantine XIII
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

ROFL


60 posted on 01/19/2005 7:26:30 AM PST by Constantine XIII
[ Post Reply | Private Reply | To 33 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-67 next last

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.

Free Republic
Browse · Search
News/Activism
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson