WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Unable to start x11vnc on piCore 14.1  (Read 560 times)

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Unable to start x11vnc on piCore 14.1
« on: September 09, 2024, 02:19:22 AM »
I have acquired a few SBCs and in one of the PI 5 I want to try out piCore!
I have managed to get the WiFi running and want to connect to the system remotely and have installed the X11vnc extension but when I execute ‘x11vnx’ command I receive the following message:
”x11vnc: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory”
I´ve also tried xfreerdp but there the missing shared library is libwebpmux.so.3.
For me to be able to run this piCore installation headless I need the VNC or RDP server.
Is there a way to find out all dependencies for a specific extension and from which paket they are?
I´ve also loaded Xorg and tried ”startx” but only receive ”failed in waitforX”
I run piCore 14.1 on a Raspberry Pi 5.
I am new to the Linux world having worked with Windows for many years so any help is very much appreciated!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14752
Re: Unable to start x11vnc on piCore 14.1
« Reply #1 on: September 09, 2024, 04:19:42 AM »
It’s my understanding that you would need the latest version of piCore64-15.x for an RPi5.

It looks like you’re missing the libnl and libwebp extensions.

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: Unable to start x11vnc on piCore 14.1
« Reply #2 on: September 09, 2024, 05:11:28 AM »
Thank you!
How do I upgrade to 15.0 without creating a new SD-image?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14752
Re: Unable to start x11vnc on piCore 14.1
« Reply #3 on: September 09, 2024, 05:26:01 AM »
It’s possible to do it by mounting the image and copying the files, but it would be easier to dd the image to sd.

If your current version is piCore-14.x and you update to piCore64-15.x you would need to replace all of the extensions anyway.

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: Unable to start x11vnc on piCore 14.1
« Reply #4 on: September 09, 2024, 05:52:11 AM »
Thanks, I´ll burn a new SD card with 15.0 beta and try it!

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: Unable to start x11vnc on piCore 14.1
« Reply #5 on: September 09, 2024, 11:40:09 AM »
So I have a Pi5 15.0 beta installation running and I have tried the different remote servers I know of.
Executing "x11vnc" seems to give me a client version and trying with "x11vnc -create" show a connection but as soon I connect from my Windows client the connection dies!
The web page "http://www.karlrunge.com/x11vnc/faq.html" does not seem to exist, are there documentation of how to use x11vnc somewhere, (I´m not so good at man pages)!
I also tried "Xfreerdp" but that also seem to be a client! Can I run xfreerdp as a server in some way?
I also loaded Xorg but when I try "startx" I only receive "failed in waitforX".
Any ideas where I go wrong?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14752
Re: Unable to start x11vnc on piCore 14.1
« Reply #6 on: September 09, 2024, 12:57:54 PM »
Are you using piCore or piCore64?

The piCore64 version of freerdp has the server libs, but the piCore version does not.

I tested x11vnc by running it on piCore and connecting to it from a linux machine running vinagre - maybe windows has a problem with x11vnc?

You can check Xorg by running “Xorg -nolisten tcp”.
« Last Edit: September 09, 2024, 01:00:19 PM by Juanito »

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: Unable to start x11vnc on piCore 14.1
« Reply #7 on: September 10, 2024, 02:50:25 AM »
I use piCore64:
Code: [Select]
root@box:/# uname -a
Linux box 6.6.47-piCore-v8-16k #19 SMP PREEMPT Sat Aug 31 15:16:12 EDT 2024 aarch64 GNU/Linux

Starting X11vnc with -create gives this result:
Code: [Select]
The VNC desktop is:      box:0
PORT=5900
10/09/2024 06:40:00 Got connection from client 192.168.32.7
10/09/2024 06:40:00   other clients:
10/09/2024 06:40:00 Normal socket connection
10/09/2024 06:40:00 incr accepted_client=1 for 192.168.32.7:56521  sock=4
10/09/2024 06:40:00 wait_for_client: got client
10/09/2024 06:40:00 Client Protocol Version 3.8
10/09/2024 06:40:00 Protocol version sent 3.8, using 3.8
10/09/2024 06:40:00 client progressed=1 in 12/7 0.007551 s
10/09/2024 06:40:00 client_set_net: 192.168.32.7  0.0241
10/09/2024 06:40:00 wait_for_client: running: env X11VNC_SKIP_DISPLAY=''  /bin/sh /tmp/x11vnc-find_display.6LGPNo
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
10/09/2024 06:40:00 wait_for_client: find display cmd failed.
10/09/2024 06:40:00 wait_for_client: FINDCREATEDISPLAY cmd: /bin/sh /tmp/x11vnc-find_display.6LGPNo Xvfb
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
trying N=20 ...
redir_daemon=
/usr/local/bin/startx .xinitrc -- /usr/local/bin/Xvfb :20 -screen 0 1280x1024x24 -cc 4 -nolisten tcp -auth /tmp/.xas40419106.b0pz92
nohup: appending output to nohup.out
10/09/2024 06:40:01 XOpenDisplay(":20") failed.
10/09/2024 06:40:01 Trying again with XAUTHLOCALHOSTNAME=localhost ...

10/09/2024 06:40:01 ***************************************
10/09/2024 06:40:01 *** XOpenDisplay failed (:20)

*** x11vnc was unable to open the X DISPLAY: ":20", it cannot continue.
*** There may be "Xlib:" error messages above with details about the failure.

And Xorg -nolisten tcp gives
Code: [Select]
tc@box:~$ Xorg -nolisten tcp
/usr/local/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
How do I become a console user?

    [Edit]: Added code tags.  Rich
« Last Edit: September 10, 2024, 11:05:07 AM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14752
Re: Unable to start x11vnc on piCore 14.1
« Reply #8 on: September 10, 2024, 03:14:28 AM »
Do you have the ipv6-netfilter-KERNEL extension loaded?

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: Unable to start x11vnc on piCore 14.1
« Reply #9 on: September 10, 2024, 04:40:53 AM »
No. Is that one of the "ipv6-netfilter-6.6.xx-piCore-v8-16k.tcz" extensions? If so which one?

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: Unable to start x11vnc on piCore 14.1
« Reply #10 on: September 10, 2024, 05:01:27 AM »
I installed "ipv6-netfilter-6.6.47-piCore-v8-16k.tcz" extension and I get the same result but without the ipv6 related info.
I also tried to connect using vinagre from another Rpi5 running Raspberry Pi OS but get the same error!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14752
Re: Unable to start x11vnc on piCore 14.1
« Reply #11 on: September 10, 2024, 05:14:12 AM »
If I start with “x11vnc -display :0” on one machine and use the vnc option with vinagre on another machine it works for me.

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: Unable to start x11vnc on piCore 14.1
« Reply #12 on: September 10, 2024, 05:36:55 AM »
First, I installed the ipv6-netfilter extension and now my wifi is gone!
I run this piCore system via ssh from a Windows system so I don?t have a display (screen) direct attached which I thought the Display option implies.
The x11vnc dies directly with this option it does not start listening!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14752
Re: Unable to start x11vnc on piCore 14.1
« Reply #13 on: September 10, 2024, 05:45:42 AM »
You could try using the xf86-video-dummy extension, but I didn’t try this for a while.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14752
Re: Unable to start x11vnc on piCore 14.1
« Reply #14 on: September 10, 2024, 07:27:19 AM »
..as I recall, you’ll need to replace xf86-video-fbdev with xf86-video-dummy in the appropriate dep file, set Xorg, flwm, aterm and wbar onboot and reboot.