1756409 Members
3320 Online
108847 Solutions
New Discussion юеВ

Re: X11 problem

 
SOLVED
Go to solution
Tonatiuh
Super Advisor

X11 problem

Red Hat Enterprise Linux 3.0

[oracle@rac2 oracle]$ xclock
Xlib: connection to "rac2.test.uvr:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: rac2.test.uvr:0.0

If I try to run the xclock application this does not work.

This is a privileges problem I think, because I can run well the xclock application with root user, but not with oracle user.

The path in oracle user .bash_profile is:

export PATH=/usr/bin:/usr/sbin:$PATH:.

Any idea?
4 REPLIES 4
Paul Cross_1
Respected Contributor
Solution

Re: X11 problem

you have to set the DISPLAY variable like this:

export DISPLAY=use.your.ip.number:0.0

and run this on your workstation
xhost +
Paul Cross_1
Respected Contributor

Re: X11 problem

Chakravarthi
Trusted Contributor

Re: X11 problem

i guess you are missing

running xhost + command on your host

regards
chakri
Suraj Singh_1
Trusted Contributor

Re: X11 problem

Hi,

1. Login as user 'oracle',
2. su - root,
3. xhost +rac2.test.uvr #Make sure this hostname can be resolved to IP address.
4. ^D
5. xhost +rac2.test.uvr
6. DISPLAY=rac2.test.uvr:0.0
7. export DISPLAY
8. xclock

Regards,
Suraj
What we cannot speak about we must pass over in silence.