[Gllug] RuntimeError: could not open display

Ryland, Peter peter.ryland at squaregain.co.uk
Thu May 4 09:32:39 UTC 2006


On Thu, 2006-05-04 at 10:29 +0100, Jim Bailey wrote:
> # take your display with you at remote login:
> # Put it into your ~/.bash_profile
> whoami=`who -ml`
> remhost=`expr "$whoami" : '.*(\(.*\))'`
> if [ -n "$remhost" ]; then
> DISPLAY="$remhost":0.0
> export DISPLAY
> fi
> 
> 
> which should take care of remote logins though the material I was
> reading said ssh takes care of this automatically?
> 
> http://www.linuxfocus.org/English/January2002/article222.shtml

It does if it's configured to do so, but a lot of distros are no longer
having this on by default.  To find out, do: "grep
ForwardX11 /etc/ssh/ssh_config"

If you can't or don't want to turn it on system-wide, you can always do:
"ssh -X server"

HTH,
Pete


*****************************************************************************
This communication is confidential and is intended solely for 
the use of the individual or entity to whom they are addressed. 
If you are not that person you are not permitted to make use of 
the information and you are requested to notify 
postmaster at squaregain.co.uk immediately that you have 
received it and then destroy the copy in your possession. 
Squaregain Ltd is authorised and regulated by the 
Financial Services Authority and is a member of the LSE.
******************************************************************************

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list