• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 785
  • Last Modified:

RHEL 5 issue when trying to start x window

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 ?
0
c_hockland
Asked:
c_hockland
  • 2
1 Solution
 
omarfaridCommented:
is someone else using the display?

try to run the command

xhost +`hostname`

please note the inverted commas `

thn you run the xwindows app
0
 
farzanjCommented:
Being member of sudo is not enough. You have to prefix commands with sudo as well.
like
sudo vncconfig &
Second if it doesn't recognize the command, use full path of the command.
0
 
c_hocklandAuthor Commented:
that worked immediately , thanks much
0
 
omarfaridCommented:
Welcome :)
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now