[Keine deutsche Version dieses Documents verfuegbar]

Martin Cracauer's WWW Pages

Turning Win32 machines into something useful

Obviously, the "most" right solution is to eleminate your Windows installtion and install FreeBSD or something similar, but in case you need some less drastic solution, read this page.

The following should work both on Windows 95 and Windows NT (all real Win32 platforms).

  1. Create a homedir: "/home/cracauer" or whatever, but it should be on C: (see below).

  2. Set the following variables in 'system proterties/environment':

  3. Get some useful stuff:

    ftp://ftp.cygnus.com/pub/gnu-win32
    is a full set of GNU tools, including a gcc version that has a Posix-enabled library that doesn't prevent you from using win32 things (sockets etc.), the bash shell (including filename and programname completion) etc.

    Please note that these GNU-Win32 tools have the in common that the author's primary intention is to make a framework where Unix sources can be used as unchanged as possible. The obvious problem is that handling for filesystem valume letters ("C:") is not part of Unix. The shared library of these tools tries to map filenames like '//D:/foobar' to the right place, but that may fail depending of what the program does with the path. Additionally, there is a mount` command. You can do `mount D: /d`, then you can access the contents of D: without a volume letter. The trick is to have a global list of mountpoints for all GNU-Win32 programs, inplemented in the common shared library.

    Anyway, the point about this toolset is to be able to compile Posix programs without using the Microsoft-supplied Posix environment. The latter doesn't allow you to mix Win32 and Posix calls (you can do this with GNU-Win32), you can't even use sockets and the Posix lib has moved out of Visual C++ anyway, you need to buy another package from Microsoft to get the crap.

    At this point of installtion, you have at least a working Unix-compatible 'rm, with support for '-r' and '-f'. You should take the obvious analogy and try 'rm -rf /', just in case you're not longer sure you really want to tangle with Windows anymore.

    http://www.cs.washington.edu/homes/voelker/ntemacs.html
    is where you can get binaries of emacs-19.xx. Please note that the original GNU Emacs sources compile and install on Windows NT without problems (if you have Visual C++). The above are just binaries of unchanged sources, not a port.

    Emacs on NT has 'M-x shell' support. You get command-line editing for every commandline-editing tool (like ftp), backward scrolling in the emacs buffer and you can search in this buffer. 'Curses'- using tools (whatever that is called in DOS, I mean non-graphics cursor-addressing programs) will not work, of course. This feature is just what you have under Unix Emacs.

    It has dired-support, so you can get around some less intuitive tools proved with NT. Changing permissions isn't support yet.

    http://www.itribe.net/virtunix/mystuff.html
    http://www.itribe.net/virtunix/
    http://www.itribe.net/virtunix/otherstuff.html
    some additional stuff, df, dd, ps, kill :-]

    This site include a link to a working version of unzip.exe (many version with long filename support can' handle packages like these)

To "C:" or not to "C:"?

A central problem with Unix-Tools on Win32 is that some understand the partition letters, other do not.

This problem becomes a real hassle when it comes to environment variable settings. $HOME need to be set for a lot of tools, so should it include "C:" or not?

The only workaround I found is to avoid using letters as much as possible. It is absolutly necessary to have your home directory on the same partition your Unix tools are on, so $HOME and the local variables of the tools will point to the same partition.

Things you should know about to feel at least a bit warmer.

Things that may get in your way

So, why should you *not* use Windows NT?



Martin Cracauer <cracauer @ cons.org>
http://www.cons.org/cracauer/

©2007 Martin Cracauer $Id: win32-useful.html4m,v 1.4 1997/04/29 15:31:15 cracauer Exp $