When you are using remote access to a server sitting on
another location, it’s difficult to view GUI s of that server. If you are using
putty command prompt, you only can create a ssh connection using putty
terminal.
As an example assume that in your remote server there is
tcpmon GUI client and you need to open it. When you type >./tcpmon.sh in you
shell there you will see error like below,
[root@xxxxxxxx bin]# ./tcpmon.sh
java.awt.HeadlessException:
No X11 DISPLAY
variable was set, but this program performed an operation which requires it.
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at
java.awt.Window.<init>(Window.java:535)
at
java.awt.Frame.<init>(Frame.java:420)
at
javax.swing.JFrame.<init>(JFrame.java:224)
at
org.apache.ws.commons.tcpmon.TCPMon.<init>(TCPMon.java:75)
at
org.apache.ws.commons.tcpmon.TCPMon.<init>(TCPMon.java:119)
at org.apache.ws.commons.tcpmon.TCPMon.main(TCPMon.java:172)
to overcome this problem, you can use Xming server.
First download Xming.exe file to your local computer and
install it. Then using the icon created in the desktop, start the xming server.
After starting the server an icon will show in the right side of the task bar.
Now double click on the putty command terminal icon, it will
show login window as below,
Now expand SSH sub branch in the bottom of left corner.
Select X11 item and tick on “enable X11 forwarding”
like below.
Now login to the remote server. Now you successfully
activated X11 facility in your remote session and you can view GUI s like in
the local machine.
No comments:
Post a Comment