SSH use remote xserver?
Hi everyone,
I am working on RH 7.2 cluster nodes with no graphics card installed. I would like to use qmon GUI for Gridengine clustering software and was wondering if it is at all possible to login through SSH, set the display to the ssh client (my workstation) and use the xserver on my workstation to display the GUI. Any advice/suggestions? Thanks. Breeno. |
Not only possible, but easy.
1. Permit X11Forwarding on both SSH server and client (see /etc/ssh/sshd_config and /etc/ssh/ssh_config files; remember to restart the sshd parent process with a kill -HUP when you've made the change). 2. ssh to the server from your client. When you echo $DISPLAY you'll see it looks something like <hostname>:10.0 where hostname is the name of the server. DO NOT CHANGE THIS. This means it is going to tunnel your X11 session to you across SSH. 3. Just fire up your X app in the SSH session - if the X Server is running on your client and allows the connection, it should pop up. Note : From the client's perspective, the X connection seems to come from localhost (i.e. from the client) as SSH has tunelled it. This has the useful side effect that you can block all non-local X sessions from appearing on you PC and it will still work fine. |
Remote $DISPLAY but no keyboard input!
Thanks for your response Iain,
I tried what you suggested: Error: Can't open display: localhost:0.0 Maybe it is expecting to find an xserver on the cluster node?? I then changed DISPLAY=10.0.0.1:0.0 to point to my workstation. The GUI now appears on my console but although the mouse works ok, I can't enter any text through the keyboard. Is there something else i need to enable to allow me to input data?? I have the following errors when i fire up the GUI: Warning: XmtLoadResourceFile: file 'qmon_messages' not found. Warning: Cannot convert string "-*-helvetica-medium-r-*-*-*-60-*-*-*-*-*-*" to type FontStruct Warning: translation table syntax error: Unknown keysym name: osfCancel Warning: ... found while parsing '<Key>osfCancel: MenuEscape()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfBeginLine Warning: ... found while parsing ':<Key>osfBeginLine: ManagerGadgetTraverseHome()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: ManagerGadgetSelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: MenuBarGadgetSelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfHelp Warning: ... found while parsing ':<Key>osfHelp: MenuHelp()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfHelp Warning: ... found while parsing ':<Key>osfHelp: Help()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfCancel Warning: ... found while parsing ':<Key>osfCancel: MenuEscape()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: DrawingAreaInput() ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfUp Warning: ... found while parsing ':<Key>osfUp: DrawingAreaInput() ManagerGadgetTraverseUp()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfBeginLine Warning: ... found while parsing ':c <Key>osfBeginLine: ActionGrab(SWTopLine)' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: KeySelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: KeySelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: ArmAndActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: Cannot convert string "-adobe-helvetica-medium-r-*--20-*-*-*-p-*-*-*" to type FontStruct Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: KActivate()' Warning: String to TranslationTable conversion encountered errors Thanks. B. |
Remote $DISPLAY but no keyboard input!
Thanks for your response Iain,
I tried what you suggested: Error: Can't open display: localhost:0.0 Maybe it is expecting to find an xserver on the cluster node?? I then changed DISPLAY=10.0.0.1:0.0 to point to my workstation. The GUI now appears on my console but although the mouse works ok, I can't enter any text through the keyboard. Is there something else i need to enable to allow me to input data?? I have the following errors when i fire up the GUI: Warning: XmtLoadResourceFile: file 'qmon_messages' not found. Warning: Cannot convert string "-*-helvetica-medium-r-*-*-*-60-*-*-*-*-*-*" to type FontStruct Warning: translation table syntax error: Unknown keysym name: osfCancel Warning: ... found while parsing '<Key>osfCancel: MenuEscape()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfBeginLine Warning: ... found while parsing ':<Key>osfBeginLine: ManagerGadgetTraverseHome()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: ManagerGadgetSelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: MenuBarGadgetSelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfHelp Warning: ... found while parsing ':<Key>osfHelp: MenuHelp()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfHelp Warning: ... found while parsing ':<Key>osfHelp: Help()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfCancel Warning: ... found while parsing ':<Key>osfCancel: MenuEscape()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: DrawingAreaInput() ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfUp Warning: ... found while parsing ':<Key>osfUp: DrawingAreaInput() ManagerGadgetTraverseUp()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfBeginLine Warning: ... found while parsing ':c <Key>osfBeginLine: ActionGrab(SWTopLine)' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: KeySelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: KeySelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: ArmAndActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing ':<Key>osfActivate: PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: Cannot convert string "-adobe-helvetica-medium-r-*--20-*-*-*-p-*-*-*" to type FontStruct Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing ':<Key>osfSelect: KActivate()' Warning: String to TranslationTable conversion encountered errors Thanks. B. |
Problem solved - XKeysymDB
I copied the XKeysymDB file to the cluster node and I can now enter text in the GUI.
Cheers. B. |
All times are GMT -5. The time now is 05:41 PM. |