On Mon, 14 Dec 2009, Edward A. Berry wrote:

Mark A. White wrote:
Stuart,

Are you logged-in as root or are you working in a root shell ( using su
or sudo)? Depending on your security settings X-windows may not permit a
program that is run from a root shell to access the display, which
belongs to the user logged-in through X-windows.

Another way around this (assuming you have ssh server running) is login
to a graphics desktop as yourself, then "ssh r...@localhost"
Depending how your SSH, SSHD are configured, you may have to ssh -X or
ssh -Y, but the X11 server will be available to the "remote" session
so you can run ccp4i (or nedit or xclock or whatever X application),
with copy and paste between the remote session window(s) and local, all
without having to violate the taboo of never starting X as root.

You have to ensure that X11Forwarding is set to 'yes' in /etc/ssh/sshd_config.

Reply via email to