From d4e27e7ad89e8556fc28523560173d118dbc6a84 Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Sat, 18 Feb 2023 19:56:18 -0700 Subject: [PATCH] New: VNC and Waypipe notes --- notes/linux/network_transparency.md | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 notes/linux/network_transparency.md diff --git a/notes/linux/network_transparency.md b/notes/linux/network_transparency.md new file mode 100644 index 0000000..fd33962 --- /dev/null +++ b/notes/linux/network_transparency.md @@ -0,0 +1,41 @@ +# Remote desktop + +SSH is great for using another computer remotely, though it falls short when you +want to use a graphical application like Chromium. Forwarding graphics requires +a very fast and stable connection + +## Wayland + +Most of these come from the [sway migration +guide](https://github.com/swaywm/sway/wiki/i3-Migration-Guide) + +### VNC + +VNC forwards the entire desktop, which is much heavier, though lets you use apps +already running + +`wlroots` compositors can do vnc using `wayvnc` [available +here](https://github.com/any1/wayvnc). That's the server. The client can be any +x11 VNC client, though if you don't want xwayland scaling problems, use `wlvncc` +[found here](https://github.com/any1/wlvncc) + +A simple script (from the client) to enable this: + +```bash +ssh -L 9000:localhost:9000 emiliko@waybook wayvnc localhost 9000 & +wlvncc localhost 9000 +``` + +### Waypipe + +`waypipe` is x11 forwarding for wayland. It will only run apps explicitly +started while using the ssh connection, which is much lighter than VNC + +Install [waypipe from here](https://gitlab.freedesktop.org/mstoeckl/waypipe). +`waypipe` **must be installed as `/usr/bin/waypipe` on both the client and +server**. The path is hard coded in `waypipe` + +```bash +# On the client: +waypipe ssh emiliko@waybook firefox +```