When we want to use desktop mode, we would need to setup a remote desktop. Because usb ports will not working on Android phones running postmarketOS.
The VNC server would be an easy solution, however what if the Linux mobile distro uses Wayland protocol instead of X11? It will be hard for remote accessing. Fortunately there are still some workarounds.
For GNOME desktop, there is a feature named “Desktop sharing”. Turn it on in System settings → Sharing → Desktop sharing. After that, open Remmina client or RealVNC Viewer on your desktop, input IP of the phone and connect to it.
There “WayVNC” is the Wayland implementation of vnc server. The biggest disadvantage of WayVNC is that it will make the phone huge lag and there is no way to adjust resolutions.
- Install wayvnc:
- Enable these options at `/etc/ssh/sshd_config':
- Restart sshd services:
sudo rc-service sshd restart
- Start WayVNC. Press Ctrl + C to stop.
- On your desktop, start a SSH connection to the phone:
- Open Remmina client, connect to the VNC server:
Thanks for your reading. You are welcome to share articles of Ivon's Blog (ivonblog.com). Please include the original URL when reprinting or citing articles, and abide by CC BY-NC-ND 4.0 license. For commercial use, please write an e-mail to me.