Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-12-2010, 10:24 AM   #1
Registered: Sep 2010
Posts: 30

Rep: Reputation: 0
NX --> X11 Questions...

I am using NX client to remotely access a RHEL 5 box.

When I log in to the RHEL box as myself, I can then run xclock ok.
When I "sudo su -" or "su user" and run xclock I get:

Xlib: connection to ":1000.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :1000.0

Probably a simple fix but I am very green when it comes to X11
and would appreciate all suggestions.


Old 10-12-2010, 11:08 AM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
You have two different users. One that started the desktop and one that's starting an application hat uses the desktop. When you have two different users, permissions/privileges are likely at issue. The second user needs permission to use the desktop started by the first user.

That doesn't solve the problem, but I wanted to point it out just so you have a reference. So, what you need to do is issue an xhost command. An example I found online gave this:
xhost +local:username
It's been a while since I messed with it, but I don't think issuing that command is a permanent change. You might have to issue it each time you start a deskop. You'll need to find an appropriate X11 startup file to make the change permanent (if that's what you want).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
x11 questions Carpo Slackware 2 08-09-2008 11:29 AM
Solaris 10 vs Express vs OpenSolaris / ZFS / X11 questions RedShirt Solaris / OpenSolaris 2 06-22-2006 04:52 PM
X11 conf and fonts questions neilcpp Slackware 3 11-07-2005 01:13 PM
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
Roaming X11/Xfree86, X11 proxy zapp Linux - Software 1 09-12-2003 08:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration