Tue 14 Oct 2008
Since I’m lugging around a dual-core Vista laptop, I thought I’d try to make it more useful for hacking.
I’ve tried using the win32 version of xemacs, Eclipse (crashed due to some lock violation), other editors like TotalEdit, et al, but it all feels very clunky compared to a unix environment. Cygwin is ok, but has its issues as well. For one thing, running erlang from within a cygwin shell messes up command-line editing.
Enter Cooperative Linux, or coLinux – a port of the Linux kernel that allows it to run natively alongside another OS. I played around a bit with various pre-built distributions, and finally settled for the bare-bones Debian Etch root file system that comes as an option with the basic coLinux install. I use my existing Cygwin X server, and resized the root partition up to 16 8 GB.
So far, so good. I’ve used apt-get to install the necessary utilities, and was able to build Erlang/OTP R12B-4 without problems. The system feels pretty much like a native linux installation.
The thing I have yet to figure out is how to share a file system between coLinux and Vista. I thought of using a Cygwin NFS daemon, but I don’t seem to have enough access privileges on my work laptop to pull that off. But overall, it feels extremely promising.

October 14th, 2008 at 3:39 pm
The simplest method to share a file system between coLinux and Windows is just below:
1.insert the following line to your coLinux config file(eg:”C:\Program Files\coLinux\debian3r2.conf”):
cofs0=”D:\tmp”.
2.mount cofs0 in your linux system.
October 14th, 2008 at 4:06 pm
How can you work for a company that limits your privileges on your work laptop? Or did I misunderstand you, and it was Vista that was stopping you?
October 14th, 2008 at 5:33 pm
@john: I read some comment on the wiki hinting that cofs was still very immature and may corrupt your system. Perhaps that comment is outdated?
October 14th, 2008 at 5:40 pm
@Barry: Well, there are compensations…
Most companies with >70,000 employees have similar restrictions, I wager.
I do have other laptops that are not restricted, but of course I already run native Linux on those.
October 15th, 2008 at 3:20 am
I have been using cofs for more than 10 months, and that have not corrupted my system. But my host OS is Windows XP, not Vista, so I don’t know…
If you got any error, notify me please, thanks.
Email:john721 at gmail dot com.
October 15th, 2008 at 8:00 am
@john: Thanks. I think I’ll give it a try then.
November 7th, 2008 at 1:51 pm
Ulf, you da man! I have been wrestling with xming and swedish characters in emacs for so bloody long!
Mvh,
Tony
November 7th, 2008 at 1:53 pm
Sorry, that previous comment should have gone on the topic above…
coLinux – the devil’s in the details…
November 8th, 2008 at 7:30 am
@Tony: Thanks, but the credit should really go to “nissepisse” in the Linux.nu forum. (: