LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2017, 11:08 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 521

Rep: Reputation: 37
x11vnc XOpenDisplay failed (:0)


running fedora 25 and I keep getting this error when running x11vnc. I also tried xllvnx -create but that gives a black screen that times out and disappears after a few seconds. I've been trawling google but can't find a solution for fedora 25, thanks for any help.
 
Old 07-10-2017, 12:35 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,482

Rep: Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530
would be nice to explain how did you try it. Probably it is a permission related issue.
 
Old 07-10-2017, 04:46 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Probably a wayland issue.
 
Old 07-11-2017, 02:35 AM   #4
tonj
Member
 
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
@pan94 I logged in to the machine as root using putty from another machine on the LAN and typed x11vnc but it always gives this error. I also tried logging in as the user but that gives the same error. If it's a permission issue what do I need to give permission to?
 
Old 07-11-2017, 02:44 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,482

Rep: Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530
In this case the problem is (as I see) the X started by a user and noone else has access to this X session (even root has no access rights).
So first you need to set DISPLAY before starting x11vnc (but probably that was already set) and also need to execute xhost + on that host (not from a putty terminal, but from GUI). xhost + is not the best solution, but you can check if it helps at all.
 
Old 07-11-2017, 03:21 AM   #6
tonj
Member
 
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
thanks for your response, still no joy.
I did xhost in a terminal on the physical machine and it gave:
Quote:
$ xhost
access control enabled, only authorized clients can connect
SI:localuser:tony
I also did
Quote:
$ xhost +
access control disabled, clients can connect from any host
but still I get XOpenDisplay failed (:0) when running x11vnc. I've also tried x11vnc -display :1, and :2 but they failed. x11vnc -display disp also fails, along with x11vnc -find
x11vnc -create does work but it gives me a black screen. Any further ideas appreciated.
 
Old 07-11-2017, 03:27 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,482

Rep: Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530
did you check: x11vnc -display :0 ?
 
Old 07-11-2017, 03:33 AM   #8
tonj
Member
 
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
thanks yeah I tried that, it gave a different error:
Quote:
# x11vnc -display :0
Using X display :0

<snip loads of stuff>

rootwin: 0x270 reswin: 0xc00001 dpy: 0xa3c91cc0
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 73 (X_GetImage)
Serial number of failed request: 41
Current serial number in output stream: 41
 
Old 07-11-2017, 03:50 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,482

Rep: Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530
probably this helps: https://forum.winehq.org/viewtopic.php?t=7048
something (some packages/libraries are missing or incompatible with each others, or 64/32bit mismatch...)
 
Old 07-11-2017, 04:55 AM   #10
tonj
Member
 
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
thanks but I'm still scratching my head after reading the link you gave. I tried a different graphics card in the machine but it made no difference. If there is a package mismatch I don't know what that package would be or how to fix it.
 
Old 07-11-2017, 05:00 AM   #11
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,482

Rep: Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530
since you gave no information about your system it will be really hard (even guess) from here.
Probably you can find something usable here: https://askubuntu.com/questions/2299...-login-screen/
 
Old 07-11-2017, 09:38 AM   #12
tonj
Member
 
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
this is a brand new install of fedora 25, x11vnc is the first thing installed on it
 
Old 07-14-2017, 03:18 AM   #13
tonj
Member
 
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
solved: xfce desktop did the trick, I'm now in with x11vnc. Thankyou for your help pan64
 
Old 07-14-2017, 03:38 AM   #14
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,482

Rep: Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530Reputation: 5530
glad to help you.
if you really want to say thanks just click on yes
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
x11vnc error: Only root will have read permission for the file, and so x11vnc must be yogesh_attarde Linux - Software 7 09-23-2014 06:30 AM
X11 XOpenDisplay Problem poehli *BSD 2 03-05-2011 03:43 PM
XOpenDisplay() fails JohnCain Programming 1 01-26-2005 10:42 PM
can't boot: IO Error in XOpenDisplay jeffreybluml Linux - Newbie 0 06-11-2004 06:41 AM
Headless, error on XOpendisplay chrismcnally Linux - General 0 03-20-2004 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration