LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-14-2007, 12:17 AM   #1
M_C
LQ Newbie
 
Registered: Mar 2007
Posts: 26

Rep: Reputation: 15
Xlib : connection to `0:0` refused by server


I've managed to successfully install oracle 9.2.4 on a RHE4.
My only problem is that i get the error message :
Xlib : connection to `0:0` refused by server
( i got this when doing the installation and the same running enterprise manager)

However when i run the following command the problem is fixed
Xhost + local:root then
Xhost +localracle - the user i created

After running the above i can go ahead with the installation.
My problem is that i have to run this each time i log off.

Is there any config file i can edit to solve this.

thanks
 
Old 11-14-2007, 03:31 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
look at man xhost, xauth, startx

also you have X initialisation files,
usually .xinitrc or .xsessionrc or something
which are called when you start X.
you can put the xhost call in there (easy)

I think it's
.xinitrc if you manually start X
.xsessionrc if you use a graphical login.
 
Old 11-14-2007, 04:01 AM   #3
M_C
LQ Newbie
 
Registered: Mar 2007
Posts: 26

Original Poster
Rep: Reputation: 15
i've been trying to do add this
add export XAUTHORITY=/home/name/.Xauthority to /root/.bashrc
- where exactly is this supposed to go:
the moment i reboot my machine then i cant log in and have to log in failsafe mode to undo.(Xlib : connection to `0:0` refused by server)

is this solution platform specific - i'm using RHE4


thanks
 
Old 11-14-2007, 04:54 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
not sure, can't test here,

remove the .Xauthority

I'd say do it in .xsessionrc
 
Old 11-14-2007, 07:13 AM   #5
M_C
LQ Newbie
 
Registered: Mar 2007
Posts: 26

Original Poster
Rep: Reputation: 15
anyone with a solution to this ?
so far nothing seems to work

thanks
 
Old 11-14-2007, 11:51 AM   #6
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Hi M_C,

You didn't say what you did when you got the error message. From the fix I guess you ran an X11 client as oracle when the X11 server was controlled by another user, hence oracle wasn't authorized to access the server.

Often it's easiest to ssh into the same box as the other user, e.g., "ssh -X oracle@localhost" and let SSH handle X authority.

Random hints:
  • If you don't want to type oracle's password to ssh, put your public id into ~oracle/.ssh/authorized_keys. Then whoever gets into your account can also get into oracle.
  • You use "local" above; usually it's "localhost" or "localhost.localdomain".
  • I read "xhost +..." is an older and not very secure mechanism. I use "xauth" instead: As the owner of the X server, "xauth l :0" (or whatever is your $DISPLAY). It will print something like "mybox/unix:0 MIT-MAGIC-COOKIE-1 4c07f1c708040929e8fb2332badb39d5". Then as the other user (oracle) "xauth add MIT-MAGIC-COOKIE-1 4c07f1c708040929e8fb2332badb39d5". As before, you'll have to repeat this every time you restart the X server.
 
  


Reply



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
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Linux - Newbie 12 11-27-2018 01:30 PM
XERROR: 'Xlib: connection to ":0.0" refused by server' tsiMental Debian 11 02-16-2007 07:30 PM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Programming 1 03-02-2004 08:22 AM
Wine not working. Xlib: connection to ":0.0" refused by server Xerop Linux - General 1 02-18-2004 09:37 PM
Mplayer: [Xlib: connection to ":0.0" refused by server] elluva Slackware 2 12-18-2003 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:08 PM.

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