Using Cygwin/X for X Windows



Below are steps for using CYGWIN on windows for connecting unix server.

Cygwin Installation:

• Download the Cygwin/X setup executable to anywhere on your desktop, and launch the setup program (setup.exe).


• Click Next


• Click the Install from Internet option, and click Next


• Choose an install directory. Cygwin will treat this as the root





• After above screen we have to select package.

For X-windows for Unix install following packages.

openssh: The OpenSSH server and client programs
xorg-x11-base: Cygwin/X Base

 • If we want unix like environment on windows then install following packages.
more page through text one screenful at a time
less similar to more, but allows backward paging, and word highlighting
nedit text editor, very good for highlighting keywords in programs
tcsh shell type "C shell with file name completion and command line editing"
wget retrieve files via url addresses
emacs/xemacs another text editor, xemacs has keyword highlighting features

How to connect Remote Unix/Linux servers


• Open Cygwin using shortcut on desktop then a shell will popup and you can use unix commands.
• On the shell prompt Type startx, and press the enter key and another shell will popup.
• In new shell type ssh -X user/password@unixserver into the new shell
• Do the xterm to test the xwindows.(xterm &)

If Errors in connecting: ------

• If you see error: Can't open display: or a similar error and not able to connect then check connect strings and not able to connect then.
• Retrieve your Windows IP address.
• Type ipconfig and get the IP
• Then execute startx in the popup shell type:
# xhost +
# ssh -l user@unixserver
# export windowsIP:0.0 (where IP is your IP address retrieved above)
# Try opening up xterm again (xhost +)



No comments:

Post a Comment