Skip to main content

Remote Desktop for Linux phones running postmarketOS using Wayland Protocol

分類 Smartphone Linux Phone
標籤 Linux PostmarketOS
Table of Contents

中文版

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.

GNOME Shell
#

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.

Phosh, Plasma Mobile, Sway
#

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.

  1. Install wayvnc:
sudo apk add wayvnc
  1. Enable these options at `/etc/ssh/sshd_config':
AllowTcpForwarding yes
X11Forwarding yes
  1. Restart sshd services:
sudo rc-service sshd restart
  1. Start WayVNC. Press Ctrl + C to stop.
wayvnc localhost 5901
  1. On your desktop, start a SSH connection to the phone:
ssh -L 5901:localhost:5901 user@192.168.0.243
  1. Open Remmina client, connect to the VNC server:
localhost:5901

Related


此處提供二種留言板。點選按鈕,選擇您覺得方便的留言板。

(留言板載入中)這是Giscus留言板,需要Github帳號才能留言。支援Markdown語法,若要上傳圖片請善用外部圖床。您的留言會在Github Discussions向所有人公開。

Click here to edit your comments.

(留言板載入中)這是Disqus留言板,您可能會看到Disqus強制投放的廣告。為防止垃圾內容,有時留言可能會被系統判定需審核,導致延遲顯示,請見諒。若要上傳圖片請善用外部圖床網站。