[HOWTO] coLinux - running Linux in Windows


Recommended Posts

There have been several requests for information on how to run coLinux (including by myself), and it seemed useful to me to write a little guide.

It's a work in progress, as still haven't gotten everything running ;-)

1. Get the necessary files (www.colinux.org ==> go to downloads).

2. Run the installer (just go through the installation, and select the Debian or the Gentoo file). I installed everything to c:\coLinux , and will refer to it as if you do it the same way.

3. Decompress the Debian or Gentoo image. (It'll look something like gentoo-i586-ext3-2g-deluxe or Debian-3.0r0.ext3.1gb .) You can use WinRAR for this.

4. Decompress vmlinux-modules (use WinRAR again).

5. Open default.colinux.xml in Notepad.

You'll see several parts that need to be adapted.

My file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<colinux>
    <block_device index="0" path="\DosDevices\C:\coLinux\Debian-3.0r0.ext3.1gb" enabled="true"/>
    <block_device index="1" path="\DosDevices\c:\coLinux\swap_256Mb" enabled="true"/>
    <bootparams>root=/dev/cobd0</bootparams>
    <image path="vmlinux"/>
    <memory size="64"/>
    <network index="0" type="tap" name="TAP"/>
</colinux>

    <block_device index="0" path="\DosDevices\C:\coLinux\Debian-3.0r0.ext3.1gb" enabled="true"/>

This part links to the image file (in this case the Debian file). It needs to point to the correct directory, so make sure not to make any mistakes!

    <block_device index="1" path="\DosDevices\c:\coLinux\swap_256Mb" enabled="true"/>

This part points to the swap file. A swap file is optional.

If you don't want to use it, change "true" to "false".

If you do want to use a swap-file, download one from this location and uncompress it (and make sure the directory is displayed correctly in default.colinux.xml!).

    <memory size="64"/>

This is the last important part of the file. Don't use too much of the memory, or your computer can slow down. Don't use too little, or Linux won't run well. 64 Mb should do well, if you're not running anything like KDE or Gnome.

Save default.colinux.xml and close it.

6. In the Windows Start Menu, search for the 'File Prompt' (good old DOS), and start it.

Type

cd c:\colinux

You are now in the correct directory.

7. Type

colinux-daemon.exe -c default.colinux.xml

This will start the colinux-daemon.exe file, using the defaults chosen in default.colinux.xml.

8. You're running Linux in Windows! Next part: going graphical!

So, how does my explanation look?

edit 1: changed part 7

Edited by Mathiasdm

Thanks, guys :D

Well, I'm not going to add screenshots yet. Maybe once I get the GUI working (might take me a little longer).

I didn't post this thread in the FAQ section, since it seemed unfinished to me.

But then again, you CAN use Linux already :p

I didn't post this thread in the FAQ section, since it seemed unfinished to me.

But then again, you CAN use Linux already  :p

585363067[/snapback]

Don't get hung up on the word "completed" in the title of the section. This is Open Source, and everything is constantly fixed and improved by the community. :yes:

The "completed" was added to prevent people from posting new general questions in here, like "How do I do xxxxx in Slackware?".

This the right place to ask for help? :p

I've installed it, with Gentoo, but how do I get it so I can access the internet, do I need to bridge the connections in XP?

585369011[/snapback]

I'm still working on that ;-)

I've tried several methods already, but I can't figure it out :blush:

Maybe take a look at this page: http://forums.gentoo.org/viewtopic.php?t=1...ghlight=colinux

  • 4 months later...
Don't get hung up on the word "completed" in the title of the section.  This is Open Source, and everything is constantly fixed and improved by the community. :yes:

585363098[/snapback]

Damn right mark! That coLinux thing sounds pretty cool, maybe a part on setting up Internet with the host (Windows)?

when it asks to enter login and pass i can enter login but when i get to pass, it just wont let me type :s

586166279[/snapback]

You do realize that there is no onscreen indicator as you type in the password, right? No characters, no asterisks, no nothing.

yep just found out, sorry i am n00b to linux.. anywho here is my problem.. after i enter the login info.. it just sits there it does nothing.. is there somthing i have to type i have tried:

startx

kde

go

start

but it says "command not found"

ok here is what i did,

i downloaded it, i picked Gentoo, i then downloaded the images needed

then i went to the directory, opened the files that need extracting with winrar, extracted them to the colinux folder and the edited the xml file:

<?xml version="1.0" encoding="UTF-8"?>

<colinux>

  <block_device index="0" path="\DosDevices\C:\Program Files\coLinux\Gentoo-colinux-stage3-x86-2004.3" enabled="true"/>

  <bootparams>root=/dev/cobd0</bootparams>

  <image path="vmlinux"/>

  <memory size="256"/>

  <network index="0" type="tap" name="TAP"/>

</colinux>

then i simply typed in dos: colinux-daemon.exe -c default.colinux.xml

then it asked for the login and pass typed that in.. and now i am sitting here waiting :s

ok here is what i did,

i downloaded it, i picked Gentoo, i then downloaded the images needed

then i went to the directory, opened the files that need extracting  with winrar, extracted them to the colinux folder and the edited the xml file:

then i simply typed in dos: colinux-daemon.exe -c default.colinux.xml

then it asked for the login and pass typed that in.. and now i am sitting here waiting :s

586166576[/snapback]

Now you have the base system. You have to specifically install stuff on it that you want. Gentoo is a somewhat advanced distro - it doesn't come with much more than the bare essentials to get the OS running by default, and then you go from there. If you want a pretty gui like kde or gnome, you'll have to install them yourself. I've never used colinux, nor did I read the docs, but you might be able to use "emerge sync" if you have network connectivity, and if that works then just start emerging whatever you want to run on it ;)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • It does invite Linux because MS should have been improving their products all along these years instead chose to ignore the users now this year they’re making all of these improvements to their products where as Linux doesn’t have this kind of problems in fact it has gotten so good I can even play Windows games in Steam that I no longer ever needed Windows to carry on with my life, unlike you still use Windows and chose to try beat down down those who don't use Windows because they love their LG TV. (Surprisingly I actually own a 55” LED LG TV and it has been going strong for almost 14 years, longer than any Sony TV”)
    • As much as I love owning my own hardware, it's hard to argue with the value. I'm not a huge gamer, I'd actually be interested in a cheaper plan with limited monthly hours, or even a pay-by-the-hour plan.
    • Well, they (LibreOffice/The Document Foundation) are bitchy and whiny, yes, but they're right, at least this time. It doesn't make sense to market something as "free and open source to thwart dependency on foreign companies' software" but at the same time, using the formats of said companies (Microsoft) by default. That way, you are changing nothing, essentially, you're just using another UI. We all know that users just use the defaults and almost never change them. I'm not saying they should drop other formats altogether, but they shouldn't default to the thing they're trying to run away from in the first place. If you're gonna do something, just go all the way in, don't stop in the middle, IMO. Otherwise, shut up and move along.
    • Words cannot express how much garbage this app is.
    • Vivaldi 8.0.4033.46 by Razvan Serea Vivaldi is a cross-platform web browser built for – and with – the web. A browser based on the Blink engine (same in Chrome and Chromium) that is fast, but also a browser that is rich in functionality, highly flexible and puts the user first. A browser that is made for you. Vivaldi is produced with love by a founding team of browser pioneers, including former CEO Jon Stephenson von Tetzchner, who co-founded and led Opera Software. Vivaldi’s interface is very customizable. Vivaldi combines simplicity and fashion to create a basic, highly customizable interface that provides everything a internet user could need. The browser allows users to customize the appearance of UI elements such as background color, overall theme, address bar and tab positioning, and start pages. Vivaldi features the ability to "stack" and "tile" tabs, annotate web pages, add notes to bookmarks and much more. Vivaldi 8.0.4033.46 fixes: [Chromium] Update to 148.0.7778.263 ESR (includes security fixes from 149.0.7827.102/103) Download: Vivaldi 64-bit | 139.0 MB (Freeware) Download: Vivaldi 32-bit | ARM64 View: Vivaldi Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      FBSPL earned a badge
      Week One Done
    • One Year In
      Jim Dugan earned a badge
      One Year In
    • One Month Later
      Tommi118 earned a badge
      One Month Later
    • One Month Later
      sjbousquet earned a badge
      One Month Later
    • Week One Done
      sjbousquet earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      487
    2. 2
      PsYcHoKiLLa
      196
    3. 3
      +Edouard
      155
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      69
  • Tell a friend

    Love Neowin? Tell a friend!