Re: Getting rid of "Cannot open display" message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the last episode (May 05), Amit Dor-Shifer said:
> Hi all.
> 
> I'm using ssh to execute a command on a server. When the remote server
> has an X server running, I get a/m message written to standard error.
> 
> amit0 ~ # ssh localhost echo bla
> Cannot open display "default display"
> Cannot open display "default display"
> bla
> 
> Appending the '-x' parameter, as suggested, doesn't seem to help:
> 
> amit0 ~ # ssh -x localhost echo bla
> Cannot open display "default display"
> Cannot open display "default display"
> bla

You must have something in one of your shell's startup scripts that is
trying to access an X display.  Adding a "set -x" at the top of your scripts
will force each line to be printed as it is run, which should help you track
down the offending commands.

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux