Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using nxclient on my Windows machine to connect to a Linux server which is running RHE. I am able to run all programs with GUI correctly. However, when I run the same programs with sudo, I get the following

error:(SciTE:25243): Gtk-WARNING **: cannot open display: :1066.0

There is no display connected to this machine, so I am gussing nx is setting my $DISPLAY to :1066.0?

share|improve this question

problem is that sudo changes you user context to root and root doesn't have a display set. try using kdesu (for kde) or beesu (for gnome) to launch your app

share|improve this answer
Isn't beesu a wrapper around su? I was hoping to find a way that I can use sudo rather than using beesu and entering the root password. – Ari Jun 8 '12 at 20:05
What happens if you launch sudo with :1066 as a parameter? – uSlackr Jun 8 '12 at 20:23
I don't think that's a valid argument: sudo :1066.0 SciTE sudo: :1066.0: command not found – Ari Jun 9 '12 at 4:01
how about sudo Scite :1066? – uSlackr Jun 9 '12 at 19:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .