Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: AXyOHM on September 09, 2024, 02:19:22 AM

Title: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM 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!
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito 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.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM on September 09, 2024, 05:11:28 AM
Thank you!
How do I upgrade to 15.0 without creating a new SD-image?
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito 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.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM on September 09, 2024, 05:52:11 AM
Thanks, I´ll burn a new SD card with 15.0 beta and try it!
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM 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?
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito 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”.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM 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
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito on September 10, 2024, 03:14:28 AM
Do you have the ipv6-netfilter-KERNEL extension loaded?
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM 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?
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM 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!
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito 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.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM 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!
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito 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.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito 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.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM on September 10, 2024, 07:41:17 AM
Sorry, not so good with Linux and piCore. Which is the appropriate dep file and what is onboot?
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM on September 10, 2024, 07:44:32 AM
..and how can I backout "ipv6-netfilter-6.6.47-piCore-v8-16k.tcz"?
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Juanito on September 10, 2024, 08:06:55 AM
This will find the dep file:
Code: [Select]
grep -l fbdev /mnt/mmcblk0p2/tce/optional/*dep
/mnt/mmcblk0p2/tce/onboot.lst is a text file containing a list of extensions to be loaded automatically on booting.

As long as ipv6-netfilter-KERNEL is not listed onboot it will not be loaded when you reboot.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Paul_123 on September 10, 2024, 08:26:11 AM
On a pi5, if you have no display, the kernel will not create a display.  You need to manually specify a display on the kernel command line.

Add this to cmdline.txt on the boot partition.

video=HDMI-A-1:1920x1080M@60
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM on September 10, 2024, 10:38:59 AM
OK, thank you and I will try this but I have connected a display now and thought I would have a GUI desktop popping up but I still only have the CLI. I tried to load TC.tcz but it seems it does not exist in 15.0 aarch64 repo. How can I have a desktop GUI at boot time?
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Rich on September 10, 2024, 10:59:27 AM
Hi AXyOHM
TC.tcz  is a meta-extension. It is the equivalent of running:
Code: [Select]
tce-load -wi Xorg flwm_topside wbar aterm
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: Rich on September 10, 2024, 11:06:11 AM
Hi AXyOHM
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly. Code tags also automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings.
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM on September 10, 2024, 11:32:26 AM
Hi Rich.
Will do!
Title: Re: Unable to start x11vnc on piCore 14.1
Post by: AXyOHM on September 11, 2024, 10:12:03 AM
Thank you for now.
I havn´t been able to run piCore the way I want so I will take a breakfrom this exercise, RTFM and try Tiny Core on a x86 system (an old Windows system!