How to bootstrap the debian system for Windows32 / Cygwin.

(Or, how to install dpkg..)


Prequisites:

You will need to have cygwin installed (run the setup from this page: http://www.cygwin.com
You will need to be running Cygwin's telnetd/rlogind, instead of Microsft's telnetd. To install inetd under Windows 2000/XP, check out Adam Swann's HowTo install Inetd

You will need to have the ability to run processes as userid root, with a uid=0 and a gid=0. For more information on this, check out the Security section below.

Installing:



Security:

You must run dpkg as root, which means the userid and group need to be set to 0, and the name needs to = root.
You can accomplish this by manipulating your /etc/passwd and /etc/group files to change the administrator account to be root. Once you have done that, you have to either telnet or rlogin back to your machine and login as root.

for information on creating a root/superuser under cygwin, first read and understand the following:
http://cygwin.com/cygwin-ug-net/ntsec.html

Once you think you understand the document, then you should be able to create a root user. Here's what I did under my Win2K box:

Continuing Steps:

After you have dpkg installed, then other packages can be installed.
However, you will need to investigate dpkg's flags to allow for installing packages that have dependencies, but the cygwin equivalents are already installed (PERL comes to mind readily).
Also, you might need to override the architecture, since most packages are for i386(debian linux).

I am investigating how to create a proper debian archive structure to support w32 on this sourceforge site (in order to have the proper entry in /etc/apt/sources.list), but it's not there yet.