"Any sufficiently advanced technology is indistinguishable from magic."
The setup routine for Cygwin will have you choose the 64 bit version for any reasonably modern version of Windows. After selecting installation types, path, source provider URL, you will choose from the package installer (with a click!) not 'default' but 'install' package option for at least the categories admin, base, devel, net, shells, system, utils, text, xll packages. You may want to spend some time looking through the other package listings and changing the 'default' install to 'install'.
The Cygwin installation can take some and involves post processing. By default, Cygwin will install itself into C:\Cygwin64 on most Windows systems. At a Windows administrative cmd prompt, cd to C:\Cygwin64 and type 'cygwin'. You will then start the shell by typing 'cygwin'. These contents of the (windows) cmd file cygwin.bat that will activate the bash shell for Cygwin's x11:
- @echo off
- chdir C:\cygwin\bin
- bash --login -i
A shell prompt will appear. Type 'startx' or 'startx&'. A Cygwin x11 window should appear:
After this point in the tutorial, all instructions should apply to any x11 terminal on MAC or other UNIX variants. In any x11 terminal, type at least some of these commands to assure a working installation for this course:
- gcc --help
- g++ --help
- vi --help
- gdb.exe --help
- ldd --help
- ld --help
- man man
- man info
- 'Page Down' and 'Page UP' scrolls the information as will the space bar.
- Pressing 'Enter' scrolls by line.
- 'q' will allow the user the quit the screen.
- 'clear' will clear the screen buffer.
- CTRL+C will terminate any running cmd.
- 'exit' will return you from your last shell or kill the instance of your the last shell.
- ALT-F4 should kill all of x11