« Migrating to ASM | Main | Sizing your Buffer Pool »

Cygwin as Display Server

In this article i will show you how to setup Cygwin as a Display Server which can be used for Installing Oracle Softwares (i.e to run runInstaller).

Cygwin is a free software available at www.cygwin.com. It provides an UNIX kind of environment on Windows where you can execute your shell scripts etc... It can also be used as Display Server when installed with X11 Packages. Below i will explain step by step on installing cygwin and configuring it as a display server

cygwin: cygwin

Installation Instructions

Configuring it as Display Server

  • Start cygwin on your desktop/latop
  • Type "startx" command without quotes on the cygwin window
  • Once you see an xterm window popup type "xhost +" without quotes (note the space between plus sign and xhost). You will see a message as "access control disabled, clients can connect from any host"
  • Type "ipconfig" and get the IP Address of your laptop/desktop
  • Login to your unix server using putty or any other utility, export DISPLAY variable to your "<ipaddress>:0.0"
  • Verify the display server by running xclock from putty session this will popup an xclock on your laptop.

Troubleshooting

  • Many times you cannot ping your laptop/desktop from UNIX server this could be due to Windows Firewall, disable and try it.
  • Sometimes TCP/IP Reset on Windows has helped in UNIX server able to ping your laptop/desktop (Note: execute this step with caution it might cause your LAN or Wireless Adapters not to work sometimes)

References

 

TrackBack

TrackBack URL for this entry:
http://blogs.oracle.com/mte1521/mt-tb.cgi/528

Comments (3)

I used to use cygwin as a X server.
There is a much faster (in terms of installation) and simpler way to use X on windows:
http://sourceforge.net/projects/xming

After that, simply use putty with X-tunneling on, which relieves you of the cumbersome setting of the DISPLAY variable.

Murali:

Thanks Frits, Let me try xming too.

Robert Hayden:

I would suggest looking at XMing. It is very light weight. You will need to install the extra fonts to support OUI. Here are some quick and dirty steps I give to people.

Once it is installed, you will need to create an "xlaunch" configuration file.

1) Run <file://C:\Program Files\Xming\XLaunch.exe>

2) Take the defaults, except make sure the "No Access Control" button is checked.

3) On the final page, save the configuration. This saved file is what you would run to launch Xming.

Once Xming is running on your PC, then you can export the DISPLAY as you normally would and test with xclock.

Remember the DISPLAY must be set to your PC ip address with the :0.0 at the end.

For example,
hlthfx2> export DISPLAY=10.162.3.245:0.0
hlthfx2> xclock

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on September 11, 2007 3:26 PM.

The previous post in this blog was Migrating to ASM.

The next post in this blog is Sizing your Buffer Pool.

Many more can be found on the main index page or by looking through the archives.

Top Tags

Powered by
Movable Type and Oracle