Cygwin brings a Unix-like desktop environment to a Windows PC. For example, it can be used to run a bash shell with a Unix-like terminal in Windows. It also helps to access the complete desktop environment of a remote Unix machine. To give you an example, you can customize a GNOME session, including the screensaver, and you even get those bang sounds that play when you press an invalid key in a vi session.
Installing Cygwin is pretty straightforward. Download the setup.exe program from the Cygwin Web site and run it. It will help you choose what to download, manage downloading your choices, and install all the components. A quick-and-dirty method is to choose all the components under category X11 when the script prompts you to select packages.
Once the installation is finished, you'll find a batch file named startxdmcp.bat under the $CYGWINHOME\usr\X11R6\bin directory -- $CYGWINHOME being the top-level Cygwin installation directory, which is prompted by the setup.exe script before even downloading the packages. You'll want to edit the batch file and make two changes.
First, change the REMOTE_HOST value to your server's IP address, then look for a line like run XWin -query %REMOTE_HOST% -nodecoration -lesspointer :1. Add the option -clipboard as one of the parameters (if it's not already present); this will allow you to copy text from a GNOME terminal in the Cygwin window and paste it into Windows application running locally on your PC. Make sure make sure an xdm server is running on your target host, then run the batch file to launch a connection to the remote xdmcp server. In Linux, it is as simple as typing xdm at the console. For advanced xdm options, refer to xdm's man pages. Then, log into your *nix desktop normally.
There's a lot to like about Cygwin. For one thing, it's amazingly lightweight. An instance of Cygwin takes just about 8MB of system memory on my Windows 2000 PC, a Pentium 4 with 256MB RAM. It's also stable -- I've been running it for more than six months and it's never crashed on me. And of course, it's free.
Cygwin allows a great deal of customization in installations and utilities, and it's easy for organizations to customize it to meet their needs. Folks in my organization use Cygwin as a terminal, specifically to access mainframe computers.
Cygwin is a pretty hefty download, about 150MB, but this is justified for the a package which contains the entire X server along with all the Unix tools like shells, GNU utilities, etc. Also, given network speeds these days, this may not be a big issue, but I didn't like waiting two or three hours to download and install the software over my cable Internet connection.
Cygwin has helped me get the best of both worlds -- the developer-friendly Linux environment on a user-friendly Windows laptop.
Note: Comments are owned by the poster. We are not responsible for their content.
BitTorrent link <a href="http://linuxtracker.org/download.php?id=2189&name=KNOPPIX_V5.0.1DVD-2006-06-01-EN-screensaver.iso.torrent" title="linuxtracker.org">here</a linuxtracker.org>
That's all well and good, but...
Posted by: Anonymous Coward on July 13, 2006 01:30 AMWhat does this mean? Well, it means that most any program written for Unix/Linux, that uses POSIX standard calls, can be simply recompiled in a Cygwin environment to use said progam in Windows without modification! No longer do you need to write code to port that ultra useful Unix/Linux application (emacs, X, bash, etc.) to work in Windows, which is a completely different beast altogether.
This brings me to the second thing that Cygwin "is": Along with the POSIX to Win32 compatibility layer, it is also a large collection of Unix/Linux applications that have been compiled in the Cygwin environment to be used seamlessly in Windows. This is what gives you the capabilities that the author discusses:
- X
- bash
- GNOME
- ssh
While useful for what the author has explained, Cygwin comprises much more than what was stated, and started as a POSIX to Win32 software layer at its beginnings. The compilation and addition of the various applications that come with a Cygwin installation is what makes it such a useful package today.
#