Installing and running NCL under Cygwin/X. To get the 32-bit version of Cygwin/X, install it via the 'setup-x86.exe' program and not the 'setup-x86_64.exe' program. Details are included below. Here are some step-by-step instructions for getting NCL to run under Cygwin/X. Please read these instructions all the way through before starting the. Cygwin/X provides an X server for Windows clients, similar to Xming, which allows you to run X programs on remote hosts (generally Unix systems, such as the University's Strauss system) and route the display to your Windows desktop. The software is supported for all recent versions of the Windows operating system.
By NicholasDiPiazza
Universityof
Go to http://cygwin.com/setup.exe
The defaultpackages are NOT ENOUGH. you must click certainpackages in order to get the minimum stuff you need to run mentor.
Here arethe bare necessities!!!
UnderX11 -
X-startup-scripts
xorg-x11-base
xorg-x11-bin
xorg-x11-bin-dlls
xorg-x11-fenc
xorg-x11-fnts
xorg-x11-xwin
xterm
UnderNet -
openssh
inetutils
openssl
UnderAdmin -
cygrunsrv
UnderBase –
This should have every box checked
Underlib (everything that is by default included LEAVE included!!)
crypt
openssl
zlib (if it's not alreadyselected)
Under util
ccrypt
cygutils
![Cygwin x11 install Cygwin x11 install](http://www.csr.utexas.edu/personal/john/cygwin-x-setup/cygwin1.jpg)
After theyhave installed select NOT toput a shortcut or a start menu. The reason being we are not going to use theirshortcuts.
Go to yourdesktop, right click, go to new and new shortcut.
Then make ashortcut to
C:cygwinusrX11R6binstartxwin.bat
Right clickon the new .bat shortcut and click 'edit'
Insertthese 2 lines if they are not already
SETCYGWIN_ROOT=cygwin
SETPATH=.;%CYGWIN_ROOT%bin;%CYGWIN_ROOT%usrX11R6bin;%PATH%
Save thechanges and then try it out. Double click on the startxwin.batand it should open up a BASH xterm. If you use SSHSecure Shell Client, you may wish to not to have that xtermpop up and to instead just use it to start your xwindowssession. If this is the case then go back into startxwinand delete “xterm” command that opens the window.
It’simportant to understand what exactly CYGWIN-X does for you. It opens up an X11connection that you can use through SSH, Telnet or wherever to remotely runother X11 programs.
When youdouble click on startxwin.bat… no matter what youshould see axdown in your task bar. If you see it, you are all good. If not, youscrewed something up and you should re-read this document thoroughly and makesure you installed everything you need from step 1.
This is an easy step but still important none-the-less.
If you are using the SSH-Secure Shell on windows, you willhave to go in to Settings – Tunneling and click on “Tunneling X11 Connections.”
Otherwise if you are using opensshfrom your xterm window that opens after you execute startxwin.bat… you use this:
For instance if I am using one of the tux machines Iwould do
Now, whatever the option before, do this: Type “emacs,” and instead of getting the text-based version, youwill get an X11 connection from the remote machine with the real GUI interfaceof emacs. If this didn’t work and you got thetext-based version, you might not have enabled X11 port forwarding correctly.Go back in and make sure the settings saved when you checked the X11 portforwarding box.
Otherwise, if you get errors at this point – it’s somethingyou did somewhere back there.
For most applications, we would now be ready to go. Butmentor is annoying and uses their own fonts that wehave to install. It’s a real pain.
The way to get this done is to download this file...http://www.cs.wisc.edu/~dipiazza/mgc.zip
Run this, extract into C:cygwinusrX11R6libX11fonts. This should make a folderC:cygwinusrX11R6libX11fontsmgc_fonts_b4_dos
Now, here’sthe hard part.
LOCALLY (on your own machine!!! not throughSSH remotely!!!) Run this sequence of commands:
This shouldcomplete the font installation. Close everything including the X connection byclicking on the X in the task bar and clicking close.
Run a new startxwin , and sshinto a linux machine on campus. Type da and you should see the window pop up.
*****Finally,so in the future the font is loaded correctly, we go back into the startxwin.bat and add another line:
runxset +fp/usr/X11R6/lib/X11/fonts/mgc_fonts_b4_dos
If youdon’t do this, when you turn off your computer, the fonts will not be availablenext time.
Any problems? Contact me at [email protected]