Error: Can't open display: :0.0 | Unix Linux Forums | Red Hat

  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


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 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 08-08-2009
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 24 November 2014, 2:16 AM EST
Location: Zürich
Posts: 8,489
Thanks: 333
Thanked 1,050 Times in 916 Posts
Hi.

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


Code:
xhost local:girish

Sponsored Links
    #3  
Old 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 11-25-2009
cyberfrog cyberfrog is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 14 June 2011, 11:42 AM EDT
Posts: 43
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 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 Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:23 AM
xhost unable to open display ymg UNIX for Advanced & Expert Users 5 05-22-2006 03:31 AM
xhost: unable to open display???? soestx UNIX for Dummies Questions & Answers 5 05-03-2005 05:18 AM
How to open display from windows to solaris? ridgeback00 UNIX for Advanced & Expert Users 2 04-27-2005 01:05 AM
admintool : error display.. yls177 UNIX for Dummies Questions & Answers 6 12-11-2002 09:47 PM



All times are GMT -4. The time now is 04:06 AM.