VNC

This guide explains how to setup a VNC server on your phone.

x11vnc
Using, which is in the Alpine repos. You need a running X server (e.g. running Xfce), then you just run x11vnc on the device in a terminal/tty and connect to it. From there, you can manipulate the previously running X server. You might need to specify the X server if x11vnc does not detect it (e.g. by passing  to it or doing a   before running it, assuming the display is at  )

wayvnc
This works for wayland sessions like Phosh. By default wayvnc listens to

Install, and start a server listening to any network interface on the phone:

Or listen to  on port  :

After a server setup, use a client, for example, to connect to the server , and press :



Have fun with it.



XDG_RUNTIME_DIR not set in the environment
This happens when  is not set, usually in SSH sessions.

Just set it with:

And start the server again.

Connection refused/timed out
Check if your VNC server is started, and the port is open to the clients. By default, incoming packets from USB Networking are accepted by nftables on the phone.

But when connecting via Wi-Fi, you need to open the port. If using port, it's as simple as installing  and restarting nftables:

However, when connecting to a custom port like, it requires to add a rule to accept the connection:

No route to host
Check if the host even exists on the LAN.

Related pages
DIAL