You are here: CLASSE Wiki>Computing Web>CygwinXorg (16 Feb 2012, seb)Edit Attach
Tags

Using Xorg (or XFree86)

Warning:

The use of Cygwin is no longer supported at LEPP. If you need a Linux environment, use a Linux computer. The information below is retained strictly for historical reasons.


Here are instructions for starting various X-sessions using Cygwin with Xorg on Windows.

When you have started X Windows on your local machine, a window called Cygwin/Xorg will open with a bash terminal inside. All of the following instructions should be run in that bash terminal. Left clicking on the green background of the Cygwin/Xorg window gives you a list of commands. For example, to Kill an application, after left clicking on the background, select "Kill." Whatever X application you click on next will be terminated.

For further help, please refer to http://cygwin.com and http://cygwin.com/xfree.

Accessing UNIX and OpenVMS systems using SSH

UNIX (lnx102: linux, sol333: Solaris, lns101: Tru64):
  1. Start X Windows on your local machine.
    • type startxwin from a cygwin bash shell
  2. From the bash terminal in the Cygwin/XFree86 window, ssh into the remote machine.
    • type ssh -X user@host example: ssh -X dab66@lnx233.lns.cornell.edu or ssh -X dab66@128.84.45.54
    • enter your password.
  3. You may now start remote X clients.
    • type xterm& to start an xterminal. (the "&" allows you to open multiple windows from one shell.)
    • type xclock& to start xclock.
    • type netscape& to start netscape.
  4. Depending on the system, exit or logout to disconnect from the remote machine.
OpenVMS (lns62: a VAX, lns61: an Alpha):
  1. Start X Windows on your local machine.
    • type startxwin from a cygwin bash shell
  2. From the bash terminal in the Cygwin/XFree86 window, ssh into the remote machine.
    • type ssh -X user@host example: ssh -X dab66@lns61.lns.cornell.edu or ssh -X dab66@128.84.47.61
    • enter your password.
  3. Type the command CREATE/TERMINAL to start a DECterm.
  4. You may now start X programs on the remote machine by typing commands in the original login window.
    • Type the command SPAWN/NOWAIT MCR DECW$CLOCK to start XClock
  5. Type logout to disconnect from the remote machine.

Accessing PC140 from inside the lab using rsh.

*Windows 2000h*(PC140):
  1. Start X Windows on your local machine.
    • type startxwin from a cygwin bash shell.
  2. Add the host machine to your Access Control List.
    • type xhost host example: xhost pc140.lns.cornell.edu
  3. From the bash terminal in the Cygwin/XFree86 window, rsh into the remote machine
    • type rsh host x11 -display your_computer example: rsh pc140.lns.cornell.edu x11 -display pc54.lns.cornell.edu or rsh pc140.lns.cornell.edu x11 -display 128.84.45.54
  4. You may now log into the remote pc with your LNSNTCAD UserID and Password.

MATHEMATICA

If you would like to remotely run Mathematica using Cygwin, you must place the Mathematica fonts in the correct location on your local PC
  1. Download mathematica-fonts.zip.
  2. unzip mathematica-fonts.zip onto your local disk.
  3. Place the contents of the unzipped folder in C:/cygwin/usr/X11R6/lib/X11/fonts/ so you end up with C:/cygwin/usr/X11R6/lib/X11/fonts/AFM/, C:/cygwin/usr/X11R6/lib/X11/fonts/X/, etc.
  4. Start XFree86 from Cygwin, connect to the remote machine that has mathematica, and enjoy!
Topic revision: r3 - 16 Feb 2012, seb
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CLASSE Wiki? Send feedback