Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.