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 1-5051-67 next last

1 posted on 01/17/2005 12:05:23 PM PST by ShadowAce
[ Post Reply | Private Reply | View Replies]

To: rdb3; chance33_98; Calvinist_Dark_Lord; Bush2000; PenguinWry; GodGunsandGuts; CyberCowboy777; ...
Uber-geek alert!

This looks very cool in terms of allowing people to play with Linux, take advantage of their hard drive's speed and capacity, and still not have to remove Windows or re-partition the drive.

2 posted on 01/17/2005 12:07:01 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Next step - Linux core, Windows as a service.


3 posted on 01/17/2005 12:08:29 PM PST by taxcontrol (People are entitled to their opinion - no matter how wrong it is.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: taxcontrol

That would be cool, though the only thing I do on Windows these days is play a few logic games and develop in Access. Now that OOo is coming out with 2.0, it will also have a DB frontend. Hopefully, I can even get away from Access soon.


4 posted on 01/17/2005 12:11:16 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 3 | View Replies]

To: taxcontrol

Need no Windows on Internet machine, too risky.

Running Xandros V3 here, does very well.


5 posted on 01/17/2005 12:15:52 PM PST by Ernest_at_the_Beach (A Proud member of Free Republic ~~The New Face of the Fourth Estate since 1996.)
[ Post Reply | Private Reply | To 3 | View Replies]

To: ShadowAce

I already have a Linux system that runs in Windows, called (what else) WinLinux.

What makes this on different?


6 posted on 01/17/2005 12:16:44 PM PST by Bigh4u2
[ Post Reply | Private Reply | To 1 | View Replies]

To: Bigh4u2


Sorry!

What makes this ONE different?

duh!


7 posted on 01/17/2005 12:17:37 PM PST by Bigh4u2
[ Post Reply | Private Reply | To 6 | View Replies]

To: ShadowAce
So Windows still controls the internet?

I don't think this lessens the internet exposure of the machine.
8 posted on 01/17/2005 12:18:09 PM PST by Ernest_at_the_Beach (A Proud member of Free Republic ~~The New Face of the Fourth Estate since 1996.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Bigh4u2
From what I understand, this is not an emulator like WinLinux. This actually runs within Windows, as opposed to running within an emulator within Windows.

And it's free.

9 posted on 01/17/2005 12:19:44 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 7 | View Replies]

To: ShadowAce

Ok!

Can you get it on CD?

Downloading per modem is mighty slow, and time consuming, for me.


10 posted on 01/17/2005 12:20:45 PM PST by Bigh4u2
[ Post Reply | Private Reply | To 9 | View Replies]

To: Bigh4u2
The download is less than 3 MB, so it shouldn't be that much of a problem. No--it does not come on CD.

Go here for the download page.

11 posted on 01/17/2005 12:23:45 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 10 | View Replies]

To: Bigh4u2

Heh--I just noticed the Root FS packages that are also required. Pretty hefty.


12 posted on 01/17/2005 12:24:57 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 10 | View Replies]

To: Ernest_at_the_Beach

It's not meant as a safety measure. This is a tool to allow you to explore Linux on your Windows machine before you take the plunge of re-partitioning your HDD.


13 posted on 01/17/2005 12:26:09 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 8 | View Replies]

To: Ernest_at_the_Beach
Xandros - is a good product, unfortunately, some of the applications I'm required to run will only do so in a "pure" Windows environment.

Still, there is hope but until then, it's VMWare with Windows and Linux side by side. Not the best but works well for me.
14 posted on 01/17/2005 12:27:39 PM PST by taxcontrol (People are entitled to their opinion - no matter how wrong it is.)
[ Post Reply | Private Reply | To 5 | View Replies]

To: ShadowAce

Yeah!

I noticed those too.

It would take me a couple of hours to download everything.

I guess I'll wait until a CD is available.


15 posted on 01/17/2005 12:33:37 PM PST by Bigh4u2
[ Post Reply | Private Reply | To 12 | View Replies]

To: ShadowAce

Windows may be cooperating. Microsoft won't. Expect the next must-apply Win patch set to -- oops, accidentally -- make coLinux fail.

Can't let the captives off the reservation for too long. They might decide they like what they see out there.


16 posted on 01/17/2005 12:37:09 PM PST by Norman Conquest (Kerry "honors a faith tradition." Bush believes in "God." You do the math.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Dagnabit! That's heresy!


17 posted on 01/17/2005 12:41:59 PM PST by rdb3 (Real men don't whine. It's 2005 and everyone's gonna feel it this year.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

I have a question: I try to defragment but the analysis is "cancelled because an error occurred in file".

C:\Recycled\Dcl.dmp


Any helpful advice from those with computer knowledge?


18 posted on 01/17/2005 12:57:52 PM PST by Finalapproach29er (I can no longer discern reality from satire on this site. America is losing her common sense.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Finalapproach29er

BTW:I searched for the file but couldn't find it. Win XP

HELP!!!!!!!


19 posted on 01/17/2005 12:59:20 PM PST by Finalapproach29er (I can no longer discern reality from satire on this site. America is losing her common sense.)
[ Post Reply | Private Reply | To 18 | View Replies]

To: Finalapproach29er

Well, as it's occurring in your Recylced folder, try emptying your Recycle Bin and then defrag.


20 posted on 01/17/2005 1:00:47 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 18 | View Replies]

To: ShadowAce

Recycle is empty. I then hit defrag, but it does its "analysis" first. It stops at 97% analysis. Sign comes up that scan has been cancelled because an error occurred in the file that supposedly no longer exists.

I don't know what to do next.


21 posted on 01/17/2005 1:06:33 PM PST by Finalapproach29er (I can no longer discern reality from satire on this site. America is losing her common sense.)
[ Post Reply | Private Reply | To 20 | View Replies]

To: ShadowAce

I used this a long time ago. Its pretty cool but I'd still rather use vmware or Qemu.


22 posted on 01/17/2005 1:09:24 PM PST by bahblahbah
[ Post Reply | Private Reply | To 1 | View Replies]

To: onef

ping


23 posted on 01/17/2005 1:10:04 PM PST by beaversmom (The greatness of a man is measured by the fatness of his wife)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Bigh4u2

It's a full Linux kernel running in memory space of WinXP. It gives to Windows the full set of kernel services Linux provides. I'd guess it can even be restricted to run "almost just linux" with a few Windows services now and then. The disadvantage, of course, may be having already payed for (extremly expensive) Windows and not using it enough.

If well marketed this could mean an increase of development of native (commercial, closed, etc) Linux apps, since they would run in already deployed Windows systems without changes and without emulation.

In any case it looks like a good thing for companies looking to get into the business, even if a bit risky.


24 posted on 01/17/2005 1:10:37 PM PST by Codename - Ron Benjamin
[ Post Reply | Private Reply | To 7 | View Replies]

To: bahblahbah

And my favorite disto is Ubuntu.
http://www.ubuntulinux.org


25 posted on 01/17/2005 1:11:36 PM PST by bahblahbah
[ Post Reply | Private Reply | To 22 | View Replies]

To: ShadowAce
you can shut down your coLinux with "shutdown -h now."

I'll have to make sure I write that down if I try this.

26 posted on 01/17/2005 1:12:02 PM PST by FoxInSocks
[ Post Reply | Private Reply | To 1 | View Replies]

To: bahblahbah

bump


27 posted on 01/17/2005 1:15:44 PM PST by Tribune7
[ Post Reply | Private Reply | To 25 | View Replies]

To: ShadowAce
colinux-daemon.exe -c d:\progra1\coLinux\colinux.default.xml

Is everything this hard? Or worse?

28 posted on 01/17/2005 2:12:07 PM PST by Golden Eagle
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Thanks for this article SA.

My question to you is: Is this easier for most people than putting a Knoppix CD in and booting to Knoppix?

While the co-Linux exe is a small file you still need the image, which makes this hard for dial up users.

Or am I mistaken?


29 posted on 01/17/2005 2:13:32 PM PST by ChinaGotTheGoodsOnClinton
[ Post Reply | Private Reply | To 1 | View Replies]

To: taxcontrol

Yeah - why would you want to run Linux under Windows ? A waste of a good operating system.


30 posted on 01/17/2005 2:19:10 PM PST by cinives (On some planets what I do is considered normal.)
[ Post Reply | Private Reply | To 3 | View Replies]

To: cinives
Dont laugh but I have often "fixed" problems with Windows by simply loading a small partition with Linux and putting in the Lilo boot manager.

Dont know how, don't know why. I just know that windows was a heck of a LOT more stable after that. I didn't even run Linux that often because I didn't really need Linux at the time.
31 posted on 01/17/2005 2:32:50 PM PST by taxcontrol (People are entitled to their opinion - no matter how wrong it is.)
[ Post Reply | Private Reply | To 30 | View Replies]

To: Question_Assumptions
CoLinux Ping for later.
32 posted on 01/17/2005 3:10:59 PM PST by Question_Assumptions
[ Post Reply | Private Reply | To 1 | View Replies]

To: Golden Eagle
Is everything this hard? Or worse?

Again, in your rush to denigrate Linux, you miss the obvious. That command you complained about is a windows command--not Linux.

33 posted on 01/17/2005 3:22:51 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 28 | View Replies]

To: ChinaGotTheGoodsOnClinton
Is this easier for most people than putting a Knoppix CD in and booting to Knoppix?

No, it's not easier. However the benefits are that you get a larger storage capacity from your hard drive, you get the speed improvement of your hard drive over your CD drive, and it's permanent.

The Knoppix, though, it MUCH easier to start up for the end user for the first time. Once you get past the first time, though, it can just be an icon sitting on your desktop that you can run--without having to reboot.

34 posted on 01/17/2005 3:27:31 PM PST by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 29 | View Replies]

To: ShadowAce

That is the command recommended to install this version of linux. Without linux, commands of that difficulty are not normally required just to install something.

So where are these linux guys from? Looks like Japan? Great, another foreign competitor that gives what was our Unix away for free.


35 posted on 01/17/2005 3:57:48 PM PST by Golden Eagle
[ Post Reply | Private Reply | To 1 | View Replies]

To: Golden Eagle
colinux-daemon.exe -c d:\progra1\coLinux\colinux.default.xml

Is everything this hard? Or worse?

No, you could put that in a shortcut or .bat file.

36 posted on 01/17/2005 4:11:32 PM PST by AmericaUnited
[ Post Reply | Private Reply | To 28 | View Replies]

To: Golden Eagle

CoLinux was written by an Israeli student.


37 posted on 01/17/2005 4:12:10 PM PST by AmericaUnited
[ Post Reply | Private Reply | To 35 | View Replies]

To: ShadowAce
CoLinux is the Windows driver that maps Linux kernel calls into Windows hardware/kernel calls.

You then select which Linux distro you want to run. Note: There are a few things that have to be done to the Linux distro before it can run under CoLinux.

38 posted on 01/17/2005 4:14:19 PM PST by AmericaUnited
[ Post Reply | Private Reply | To 1 | View Replies]

To: AmericaUnited

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.


39 posted on 01/17/2005 4:18:30 PM PST by Golden Eagle
[ Post Reply | Private Reply | To 37 | View Replies]

To: Finalapproach29er
click *Start*
click *Run*
Type "cmd"
click *ok*
type "chkdsk c: /f /r"
{enter}

The disk must be locked. If chkdsk cannot lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer.

Restart your computer and chkdsk will run, after it is finished and Windows is up and running try to defrag again.
40 posted on 01/17/2005 4:27:03 PM PST by CyberCowboy777 (Well.... I'll be)
[ Post Reply | Private Reply | To 21 | View Replies]

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]


Navigation: use the links below to view more comments.
first 1-5051-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