06-10-2022, 02:43 AM
https://wiki.postmarketos.org/wiki/VNC
I just tried it on mobian and it worked. On the phone in the terminal (not via ssh, at least for the wayvnc part):
sudo apt install wayvnc
wayvnc -r 0.0.0.0
The -r option makes it render the mouse pointer as shown on the phone's screen which may or may not be useful. The 0.0.0.0 tells it to listen on all the phone's IP addresses - good for getting started, but it would be better to use the address for the interface that you'll actually be using. You need to know that address to connect anyway. Since I didn't specify a port it will use the default 5900. The PmOS wiki page specifies port 9999 instead.
Now on your PC, using the VNC client of your choice, connect to the phone's IP address and port 5900 (or whatever else you specified when starting wayvnc). I used TigerVNC which is available for both Windows and linux.
This will give you the copy of what's on the phone's screen in a window on your desktop, although it's a little laggy. You can copy and paste text between them - I haven't tried anything more complicated like dragging and dropping files. I wouldn't like to use libreoffice this way, but if you can't get X forwarding to work it's an option.
I just tried it on mobian and it worked. On the phone in the terminal (not via ssh, at least for the wayvnc part):
sudo apt install wayvnc
wayvnc -r 0.0.0.0
The -r option makes it render the mouse pointer as shown on the phone's screen which may or may not be useful. The 0.0.0.0 tells it to listen on all the phone's IP addresses - good for getting started, but it would be better to use the address for the interface that you'll actually be using. You need to know that address to connect anyway. Since I didn't specify a port it will use the default 5900. The PmOS wiki page specifies port 9999 instead.
Now on your PC, using the VNC client of your choice, connect to the phone's IP address and port 5900 (or whatever else you specified when starting wayvnc). I used TigerVNC which is available for both Windows and linux.
This will give you the copy of what's on the phone's screen in a window on your desktop, although it's a little laggy. You can copy and paste text between them - I haven't tried anything more complicated like dragging and dropping files. I wouldn't like to use libreoffice this way, but if you can't get X forwarding to work it's an option.