Hello,
I am using imx6ull Aster Carrier Board with TDX Wayland with XWayland Upstream 6.7.0-devel-20240710125113+build.0 (kirkstone) Colibri-iMX6ULL-eMMC_Reference-Multimedia-Image-upstream tdx-reference-multimedia-image (OS) which is custom yocto image.
i want to access screen of the device remotely. i am not talking about cli i already know one can access cli via ssh. i am talking about how to access GUI application remotely.
i tried with real vnc, tigervnc, remmina but it didnt worked it says wayland server is already running which not allow to run two server(one is x11 and one is wayland). suggest me steps how can i access application.
if it is done by any package of the wayland then provide me proper steps to do.
Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To remotely access the GUI of your iMX6ULL device running a custom Yocto image with Wayland, you’ll need to adapt the approach since traditional X11-based VNC servers won’t work directly with Wayland due to its different architecture. However, there are ways to achieve remote access with Wayland through solutions designed to work with its protocol.
One such solution is using Wayland remote access protocols like weston-remote or employing a Wayland-compatible VNC server such as wayvnc. Here’s a general approach to setting up wayvnc on your device:
Install wayvnc and its dependencies: You might need to add wayvnc and its dependencies to your Yocto build. This involves creating or updating a recipe for wayvnc and ensuring that all its dependencies are satisfied. wayvnc relies on neatvnc and aml libraries, so these will also need to be included.
Modify your Yocto Project recipes: If wayvnc is not available in the Yocto Project layers you are using, you may need to write a new recipe or find an existing one that suits your version of Yocto. This involves creating a bitbake recipe that fetches, compiles, and installs wayvnc into your image.
Enable the Wayland compositor to support remote access: Ensure that your Wayland compositor (Weston in this case) is configured to allow remote connections. This might involve modifying Weston’s configuration to load any necessary modules or plugins that facilitate remote access.
Running wayvnc: Once wayvnc is installed on your device, you can run it by specifying the Wayland display to connect to, usually something like wayvnc 0.0.0.0. This will start a VNC server that mirrors your Wayland session, which you can connect to using any VNC client by entering the IP address of your iMX6ULL device and the port number displayed by wayvnc.
Security considerations: As mentioned in the context you provided, enabling remote graphical access can have implications for performance and security. For development purposes, this setup is valuable, but for production environments, consider using secure, authenticated connections and limiting access to the VNC server.
Please note that integrating wayvnc into your Yocto project and configuring it correctly can be complex
Please, also check if these links can help you solve your problem:
I already gone through this link in that i am getting docker error that docker is not there in the image.
And how can i add wayvnc in image and how can i use it
The above link shared by Toradex AI is valid if you are using our TorizonOS, you can ignore it if your are not using it.
It is not necessary to add wayvnc, you can add any other available packages . eg. libvncserver.
You can search the required recipes here and compile a new image that include the required recipe.
You can also refer to yocto documentaion and check how to include packages to your image and build the image.
Hello @sahil.tx
i got to know that VNC is supported only in weston 12 and newer versions and my source have weston 10.0.2.
This will be the issue? i am confused.
I added libvncserver to the yocto image and rebuild the image but i dont know how to use that
After so many explorations. I am able to display screen on the host but it displays only root terminal and i am unable to access it. i want full operations like anydesk. please help