We can run graphical programs on Linux/solaris machines on campus remotely and display them on your desktop computer Runni Ng Windows. We can do this by using running, applications together on your Windows machine:xming and PuTTY.
What is Xming?
Xming is a PC X Window Server. This enables programs being run remotely to be displayed on your desktop. Download and run the installation program from:http://sourceforge.net/projects/xming/
Navigate to the Files sections and download:
Xming Setup from the Xming folder
The fonts Package installer from the Xming-fonts folder
By default both programs'll be installed to the same location, so don ' t the worry is about over writing files. We cannot work without both packages.
Once installed, running all Programs > Xming > Xlaunch are a good idea to see what's the configuration looks like. In most cases, the default options should is just fine.
Finally Run all Programs > Xming > Xming to start the PC X Server. The "X" icon should is visible on the Windows taskbar, as in the image below. The X Server must is started before setting up a SSH connection to a campus machine.
What is PuTTY?
PuTTY is a free SSH client. Through PuTTY We connect to a remote machine on the UT Dallas campus. Download the single Windows executable file from:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html There is no setup required, you can run by simply double clicking Putty.exe.
Under Session, enter the hostname you want to connect to:apache.utdallas.edu on port 22. Make sure the connection type is SSH.
- Next, scroll to Connection > SSH > X11. Check the box next to Enable X11 Forwarding. By default, the X Display location is empty. You can enter localhost:0. The remote authentication should is set to Mit-magic-cookie-1
- Finally go to the Session. You can save your session too, and load it each time you want to connect.
- Click Open to bring the terminal and login using your netid/password.
Open a graphical application by typing the command name
The ampersand runs the command in background so, can work on your terminal and run the graphical application.
To connect to Solarium for instance, connect to Apache as above and then from the terminal:
The-x switch as you guessed enables X11 forwarding. You can run X11 applications on Solarium now!
A few Gotchas
- Error message-x connection to localhost:47.0 broken (explicit kill
or server shutdown).
- fix:check X Server is running. Did you forget to start Xming before
connecting to the server?
- Error message-cannot Open Display
- fix:is The display variable set? Did you set X11 forwarding by
Adding the-x switch to the SSH command?
GVim Error message-e665:cannot start GUI, no valid font found
- Fix? Download and install Fonts Dejavu-fonts.zip. The latest version
of the Dejavu Fonts can be downloaded from the Dejavu Download Page.
Cadence error Message-x error of failed request:badname (named
Color or font does not exist)
- fix:download and install fonts Xming-fonts-7-5-0-25-setup.exe. The
latest version of the Xming Fonts pack can be downloaded from the
Xming files list.
X11 Forwarding using Xming and PuTTY