LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   x11vnc XOpenDisplay failed (:0) (https://www.linuxquestions.org/questions/linux-software-2/x11vnc-xopendisplay-failed-0-a-4175609573/)

tonj 07-10-2017 11:08 AM

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.

pan64 07-10-2017 12:35 PM

would be nice to explain how did you try it. Probably it is a permission related issue.

AwesomeMachine 07-10-2017 04:46 PM

Probably a wayland issue.

tonj 07-11-2017 02:35 AM

@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?

pan64 07-11-2017 02:44 AM

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.

tonj 07-11-2017 03:21 AM

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.

pan64 07-11-2017 03:27 AM

did you check: x11vnc -display :0 ?

tonj 07-11-2017 03:33 AM

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

pan64 07-11-2017 03:50 AM

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...)

tonj 07-11-2017 04:55 AM

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.

pan64 07-11-2017 05:00 AM

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/

tonj 07-11-2017 09:38 AM

this is a brand new install of fedora 25, x11vnc is the first thing installed on it

tonj 07-14-2017 03:18 AM

solved: xfce desktop did the trick, I'm now in with x11vnc. Thankyou for your help pan64

pan64 07-14-2017 03:38 AM

glad to help you.
if you really want to say thanks just click on yes


All times are GMT -5. The time now is 01:00 AM.