Remote Access the "Linux Reference Multimedia" Using VNC or RDP (not TorizonCore)

I read this: Remote Access the TorizonCore GUI Using VNC or RDP

A very interesting feature

I read this (ENTRYPOINT) : https://github.com/toradex/debian-docker-images/blob/bullseye/weston/entry.sh

VNC_BACKEND="command=/usr/bin/weston --backend=vnc-backend.so --shell=fullscreen-shell.so"
RDP_BACKEND="command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen .....

if [ "$ENABLE_VNC" = "1" ]; then
    MSG=$REMOTE_UI"\n"$VNC_BACKEND
    echo -e $MSG | tee -a $CONFIGURATION_FILE $CONFIGURATION_FILE_DEV 1>/dev/null
fi

if [ "$ENABLE_RDP" = "1" ]; then
    {
    ...
    }
fi

Enviroment variable add extra –backend=…-backend.so

Is possible enable VNC or RDP on “Linux Reference Multimedia” image not Torizon?
which file is building vnc-backend.so ?
“which file” == recipe bitbake in layers folder

…
…
…
…
…
…
…
I have found a possible source of the file rdp-backend.so

layers/meta-toradex-nxp/backports/recipes-graphics/wayland/weston_9.0.0.imx.bb

EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=**false** -Dpipewire=false"

after set backend-rdp=true I try build image but I have problem with

| Run-time dependency freerdp2 found: NO (tried pkgconfig and cmake)
|
| libweston/backend-rdp/meson.build:9:1: ERROR: Problem encountered: RDP-backend requires freerdp2 which was not found. Or, you can use '-Dbackend-rdp=false'.

I add freerdp to image but it did not help

rdp-backend.so

  1. weston_9.0.0.imx.bb
    DEPENDS += “freerdp”
    -Dbackend-rdp=true

vnc-backend.so I have no idea how to build this file

Hi @MariusM ,

Thanks for your question.

We’re looking into it.

Best Regards
Kevin

Hi @MariusM,

as you might know, the Toradex Easy Installer also features VNC. You can have a look at the link below, from there you might be able to extract something that helps you progress on your project.

Best Regards
Kevin

1 Like

Mea culpa !
I thought that “Toradex Easy Installer” is closed source. I don’t know why !
ldd vnc-backend.so show me need “Neat VNC library” but I didn’t know how to build it

You opened my mind :wink:
thank you very much

Hi @MariusM ,

glad that this helped you.

Best Regards
Kevin