RHEL 5 issue when trying to start x window

Posted on 2012-08-20
Last Modified: 2012-08-20
Hi ,
user is member of sudoers but getting an error when trying to use Xwindow application

xlib: connection to 7.0 refused by Server
Xlib : no protocol specified
error : cant open display : 7.0
-bash-3.2$ vncconfig &
[1] 841
xlib: no protocol specified

any ideas ?
Question by:c_hockland
    LVL 40

    Accepted Solution

    is someone else using the display?

    try to run the command

    xhost +`hostname`

    please note the inverted commas `

    thn you run the xwindows app
    LVL 31

    Expert Comment

    Being member of sudo is not enough. You have to prefix commands with sudo as well.
    sudo vncconfig &
    Second if it doesn't recognize the command, use full path of the command.

    Author Closing Comment

    that worked immediately , thanks much
    LVL 40

    Expert Comment

    Welcome :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now