GUI through SSH connection

Post Reply
rth
Posts: 38
Joined: Thu Jun 21, 2012 4:47 pm

GUI through SSH connection

Post by rth » Fri Jun 22, 2012 5:51 pm

We have problem to run nrngui with X11 tunneling. Every user has authorized_keys for connection to nodes without password.
if user logs in to node and runs nrngui:

Code: Select all

$ssh cn0
cn0>nrngui 
the standard NEURON's menu appears, but if user runs neuron without log in:

Code: Select all

$ssh cn0 nrngui
it can see black square inside window frame Image.

We have identical OS in the nodes, during booting up nodes mount /bin, /sbin, /lib, /lib64 and /usr from head node. So gedit and may other applications work perfectly.
I pretty sure that problem with environment variables,

Code: Select all

cn0>export
declare -x COLORTERM="1"
declare -x CPU="x86_64"
declare -x CSHEDIT="emacs"
declare -x DISPLAY="localhost:10.0"
declare -x EUDIR="/usr/local/euphoria"
declare -x GPG_TTY="/dev/pts/0"
declare -x HISTSIZE="1000"
declare -x HOME="/home/rth"
declare -x HOST="cn0"
declare -x HOSTNAME="cn0"
declare -x HOSTTYPE="x86_64"
declare -x INPUTRC="/etc/inputrc"
declare -x LANG="en_US.UTF-8"
declare -x LD_LIBRARY_PATH="/home/rth/local/lib:/home/rth/local/lib64:/home/rth/local/x86_64/lib:"
declare -x LESS="-M -I -R"
declare -x LESSCLOSE="lessclose.sh %s %s"
declare -x LESSKEY
declare -x LESSOPEN="lessopen.sh %s"
declare -x LESS_ADVANCED_PREPROCESSOR="no"
declare -x LOGNAME="rth"
declare -x MACHTYPE="x86_64-suse-linux"
declare -x MAIL="/var/mail/rth"
declare -x MANPATH="/usr/local/man:/usr/share/man"
declare -x MINICOM="-c on"
declare -x MORE="-sl"
declare -x OLDPWD="/home/rth"
declare -x OSTYPE="linux"
declare -x PAGER="less"
declare -x PATH="/home/rth/bin:/home/rth/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games"
declare -rx PROFILEREAD="true"
declare -x PWD="/home/rth/MPICluser"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="10.54.0.1 36243 22"
declare -x SSH_CONNECTION="10.54.0.1 36243 10.54.0.100 22"
declare -x SSH_TTY="/dev/pts/0"
declare -x TERM="xterm"
declare -x USER="rth"
declare -x XAUTHLOCALHOSTNAME="cn0"
declare -x XKEYSYMDB="/usr/X11R6/lib/X11/XKeysymDB"
declare -x XNLSPATH="/usr/share/X11/nls"
otherwise

Code: Select all

$ ssh cn0 bash -c export
declare -x COLORTERM="1"
declare -x CPU="x86_64"
declare -x CSHEDIT="emacs"
declare -x DISPLAY="localhost:10.0"
declare -x GPG_TTY="not a tty"
declare -x HISTSIZE="1000"
declare -x HOME="/home/rth"
declare -x HOST="cn0"
declare -x HOSTNAME="cn0"
declare -x HOSTTYPE="x86_64"
declare -x INPUTRC="/etc/inputrc"
declare -x LANG="en_US.UTF-8"
declare -x LESS="-M -I -R"
declare -x LESSCLOSE="lessclose.sh %s %s"
declare -x LESSOPEN="lessopen.sh %s"
declare -x LESS_ADVANCED_PREPROCESSOR="no"
declare -x LOGNAME="rth"
declare -x MACHTYPE="x86_64-suse-linux"
declare -x MAIL="/var/mail/rth"
declare -x MANPATH="/usr/local/man:/usr/share/man"
declare -x MINICOM="-c on"
declare -x MORE="-sl"
declare -x OLDPWD
declare -x OSTYPE="linux"
declare -x PAGER="less"
declare -x PATH="/home/rth/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games"
declare -x PROFILEREAD="true"
declare -x PWD="/home/rth"
declare -x SHELL="/bin/bash"
declare -x SHLVL="2"
declare -x SSH_CLIENT="10.54.0.1 36242 22"
declare -x SSH_CONNECTION="10.54.0.1 36242 10.54.0.100 22"
declare -x USER="rth"
declare -x XAUTHLOCALHOSTNAME="cn0"
declare -x XKEYSYMDB="/usr/X11R6/lib/X11/XKeysymDB"
declare -x XNLSPATH="/usr/share/X11/nls"
declare -x _="/bin/bash
Does it make any sense?

Thanks,
Ruben

hines
Site Admin
Posts: 1577
Joined: Wed May 18, 2005 3:32 pm

Re: GUI through SSH connection

Post by hines » Sat Jun 23, 2012 10:02 am

I don't know. But noticing the difference between GPG_TTY, a longshot that is easy to try is
ssh cn0 nrngui -isatty

but I don't know what that would have to do with the missing window contents.
One other thing. You can try playing with the background and foreground colors in
/where/you/installed/nrn/share/nrn/lib/nrn.defaults

rth
Posts: 38
Joined: Thu Jun 21, 2012 4:47 pm

Re: GUI through SSH connection

Post by rth » Mon Jun 25, 2012 12:15 pm

Thanks, -isaty works.

Post Reply