Quote:
Originally Posted by nvicknai
I am trying to set a DISPLAY for oclock and everything I try does not work.
I am on Red Hat 7.0 using bash
Any thoughts??
|
You shouldn't need to set it.
With a GUI login, the GUI sets it. If you force it (via .profile or such initialization) then you will likely set the wrong value.
By default, the display for the FIRST login is :0.0. A second concurrent login will get :1.0
A remote login via ssh with X forwarding enabled on the server (and either set on the client, or requested by the client) will get a unix:10.0, or localhost:10.0, depending on various configurations of the server.
In any of these cases, setting the DISPLAY to something else will cause failures.
By default, X is configured to be as secure as possible. Thus the GUI disables the use of TCP for window connections. Instead it uses domain sockets, controlled by access permissions, and authorization keys. In this mode, remote X connections will fail. The preference is to use ssh with forwarded X connections.