PINE64
X11 Forwarding mobian - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: X11 Forwarding mobian (/showthread.php?tid=11755)

Pages: 1 2


RE: X11 Forwarding mobian - 3x5co - 01-15-2021

This worked fine for me. I followed the directions above to create a new .Xauthority file, then created a function in ~/.bashrc like this:

```
function send() {
GDK_BACKEND=x11 $1
}
```

And restarted bash with `. ~/.bashrc' . Now, I can log into my phone with ssh -X mobian@mobian and if I run, for example, `gedit`, it'll open on my phone. But if I run `send gedit` it'll open on my desktop. Cool!


RE: X11 Forwarding mobian - Zebulon Walton - 01-22-2021

(01-15-2021, 03:08 PM)3x5co Wrote: This worked fine for me. I followed the directions above to create a new .Xauthority file, then created a function in ~/.bashrc like this:

```
function send() {
  GDK_BACKEND=x11 $1
}
```

And restarted bash with `. ~/.bashrc' . Now, I can log into my phone with ssh -X mobian@mobian and if I run, for example, `gedit`, it'll open on my phone. But if I run `send gedit` it'll open on my desktop. Cool!

That is pretty cool, tried it and it works! It does takes forever to come up, but it's not all that much worse than using X forwarding from a regular desktop PC. (The X wire protocol is a real pig.)

What would be really nice is a way to share the Pinephone screen with something like VNC. I've found there is a program called "WayVNC" for Wayland but it doesn't seem to be in the Debian/Mobian repositories yet. It seems to be in a fairly early stage of development, so maybe some time in the future it will be included.

https://www.phoronix.com/scan.php?page=news_item&px=WayVNC-0.3-Released


RE: X11 Forwarding mobian - spaetz - 02-08-2021

Can I propose a different means to GUI forwarding? :-). (actually 2).

The first one is by using the broadway backend (the following on the phone):

Code:
sudo apt install libgtk-3-bin
broadwayd&
GDK_BACKEND=broadway gedit
And then connect to http://pinephone:8080 with a webbrowser. Tada, gedit runs in your webbrowser on whatever computer your browser runs :-).

The second solution is by using waypipe which forwards a wayland connection and enables a kind of -X11 forwarding experience using wayland. I tried it and it worked for me. https://social.librem.one/interact/105666613468202272 (it runs through a ssh connections)


RE: X11 Forwarding mobian - Zebulon Walton - 02-08-2021

Cool, thank, will have to give those a try! Still looking for a way to share out the entire screen as with x11vnc and similar programs for X11. So far all I've found is wayvnc which as far as I can tell is not currently supported on Debian.