Unix/Linux Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Error: Can't open display: :0.0

Red Hat


Tags
xclock

Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 08-08-2009
girish1428 girish1428 is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 16 May 2013, 3:40 PM EDT
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Error: Can't open display: :0.0

Hi,

I get errors while running xclock from a non root user:


Code:
[root@localhost girish]# xclock        --- this works fine
[root@localhost girish]# su - girish
[girish@localhost ~]$ DISPLAY=:0.0; export DISPLAY
[girish@localhost ~]$ xclock
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0
[girish@localhost ~]$

I basically want to install oracle. Please advice.

Regards,
Girish.
Sponsored Links
    #2  
Old Unix and Linux 08-08-2009
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 30 July 2015, 9:11 AM EDT
Location: Zürich
Posts: 8,573
Thanks: 337
Thanked 1,080 Times in 938 Posts
Hi.

Try running this as root before you do "su - girish":


Code:
xhost local:girish

The Following User Says Thank You to Scott For This Useful Post:
Neo (02-26-2015)
Sponsored Links
    #3  
Old Unix and Linux 08-08-2009
girish1428 girish1428 is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 16 May 2013, 3:40 PM EDT
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Many thanks Scott.
It worked :-)
    #4  
Old Unix and Linux 11-25-2009
cyberfrog cyberfrog is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 6 March 2015, 7:11 AM EST
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

How do you get around this if you cannot get root access? I get this same issue when I login as someone else and my display cannot connect

Thanks
Sponsored Links
    #5  
Old Unix and Linux 12-28-2009
gjkrpan gjkrpan is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 19 January 2010, 11:15 AM EST
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
xhost with non-root user

cyberfrog:

Whichever user is logged in controls the console, therefore you won't need root in order to use the xhost command.

xhost will still do what you need as listed above, using the same format shown.

For other options, check 'man xhost'

Hope this helps!
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to display an error msg? anushree.a Shell Programming and Scripting 8 10-30-2008 08:23 AM
xhost unable to open display ymg UNIX for Advanced & Expert Users 5 05-22-2006 02:31 AM
xhost: unable to open display???? soestx UNIX for Dummies Questions & Answers 5 05-03-2005 04:18 AM
How to open display from windows to solaris? ridgeback00 UNIX for Advanced & Expert Users 2 04-27-2005 12:05 AM
admintool : error display.. yls177 UNIX for Dummies Questions & Answers 6 12-11-2002 08:47 PM



All times are GMT -4. The time now is 04:15 PM.