If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I know this is not a rare problem. I've read the threads here regarding this for the most part and the advice I have picked up hasn't helped. I often get this message when trying to run apps in KDE as root:

I have tried xhost + and xhost + localhost and it doesn't seem to do anything. Of course, if I log in as root rather than just su to root I don't have this problem. So it is obviously a permissions issue. Does anybody know how to fix this? I haven't had this problem until I had to reinstall recently. Suggestions most appreciated.

There's a couple things you need to do. First become root and from a command prompt. Type:

root@yourhost#>echo $DISPLAY

If you don't get :0.0 for output, we need to make it that way. So type

root@yourhost#>export DISPLAY=:0

That takes care of the first part. Now I assume you are logging into the box with your user account, starting x if it's not already started, then su -ing to root. If this is the case, you need the MIT Magic Cookie!

What you just did is pulled a copy of the MIT-Magic-cookie thing from your user account's Xauthority and put it in yours.

"There's a big difference between "copy" and "use". It's exatcly the same
issue whether it's music or code. You can't re-distribute other peoples
music (becuase it's _their_ copyright), but they shouldn't put limits on
how you personally _use_ it (because it's _your_ life)."

Hi Hayl. Thank you for your reply as well. I later found that the previous method while effective, is only temprorary. Once I shutdown X I had to issue the command again (although still appreciative for the suggestion).

So I tried the method you had described and it did not work for me at all. I have seen the method you have described offered as advice several times...but it never works for me. I don't know why:

1. Launch the 64 bit Cygwin X.
2. It starts the Cygwin X and shows its symbol on right corner.
3. Then I started the xterm and start the xclock which is required to start the Xmenu through putty.
4. After that I have used the below commands to access the X display windows:
export DISPLAY=IPaddress:0.0
xhost +
5. Here I am getting that error. I am not able to open the required screen as well.
6. I tried to add the IP in host file but still getting the same error.
7. I have also tried xauth list $DISPLAY but it didn't show me the display list

Can you please help me out to get the solution of this so that I can use the cygwinX on Window 7?