Win-Win with Cygwin

Creating a Multisystem Install Point

A multisystem install point, as I call it, is a Cygwin installation that you install on a network drive so that multiple Windows systems can map a drive to it and use the applications and utilities from that location. Cygwin does not need to be installed locally to work well because the installation makes no changes to the system folders, nor does it add any files to system folders. All Cygwin files reside under the Cygwin directory tree.

To install to a network drive, create a new share on your network storage or file server and map a drive to that location – I’ll call it drive X: . Direct the Cygwin installation wizard to install Cygwin under the X:\Cygwin folder and use X:\Temp for the installation source folder.

Performing a complete installation is convenient so you have every possible application and executable available for your work. When the wizard displays the categories list, click All (at the top of the Window) until it reads Install . This will change each of the categories to Install as well. A complete installation might take an hour or more to perform.

Once installed in this network location, you can map a drive from any system with access to it. You can add X:\Cygwin\bin permanently to the PATH environment variable by editing the system PATH. You can add temporary access by issuing

PATH=%PATH%;X\Cygwin\bin

at an administrator CMD prompt. Although it’s a bit cumbersome to do so, you can also use a NetBIOS-style path, such as \\system\share\cygwin\bin\ to each command you issue. For example:

\\system\share\cygwin\bin\ls.exe

Any system on which you might use Cygwin regularly should have a permanent (persistent) drive mapping created to the network share and have its PATH variable altered.

Summary

What Cygwin does for you, as a Windows administrator, is provide a consistent set of scripting tools like those you’ll find on *nix systems. It also presents you with a basic level of compatibility between two very different platforms. Cygwin transforms your Windows servers and workstations into advanced hybrid operating systems. Cygwin gives Windows administrators the tools and utilities needed to interact effectively with other data center operating systems.

For more information, read Cygwin’s FAQ and documentation. Also consult *nix man pages for any command-related questions.

Related content

  • Hands-on test of Windows Subsystem for Linux
    If you don't want to do without the main advantages of Linux on the Windows platform, the Windows Subsystem for Linux offers another option. We delve the depths of the Linux underworld and explain how you can optimize the subsystem.
  • MobaXterm: Unix for Windows

    MobaXterm, a portable X server for Windows, bundles built-in Unix/Posix tools into a single portable EXE file, letting you use a Linux command line and tools on the Windows desktop.

  • Eat. Pray. Script.

    Lazy … er, smart … administrators are hard at work in the background via scripts, cascading scripts, and cron jobs.

  • My Five Favorite Sys Admin Tools
    I've written hundreds of articles over the past two decades, and I always seem to come back to a single theme: sys admin tools. I have five favorite tools that have not only stood the test of time but have also served me well in every job I've held, including when I ran my own computer consulting company.
  • SSH on Windows

    For Linux admins, SSH is one the most important tools of remote administration. SSH also works in Windows, with tools such as PuTTY or WinSSH, MobaXterm, WinSCP, or Swish.

comments powered by Disqus