X11 Forwarding mobian
#11
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!
  Reply
#12
(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=n...3-Released
  Reply
#13
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)
  Reply
#14
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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation No wIfI after Mobian update crakabeats 4 3,335 05-10-2024, 06:45 AM
Last Post: 98cwitr
  Can't get Mobian on PinePhone to recognise USB-C docking bar duncan_bayne 9 8,519 12-04-2023, 02:14 AM
Last Post: Peter Gamma
  Mobian PIN changed after update! Mwo87 21 20,775 12-02-2023, 11:53 PM
Last Post: Karrenbrady
  Cellular Data, Mobian - "No WWAN Adapter Found" justneedsomedatathanks 3 4,943 05-25-2023, 09:03 PM
Last Post: justneedsomedatathanks
  No sound after Mobian upgrade arbocenc 1 1,079 11-28-2022, 11:02 AM
Last Post: arbocenc
  pinephone-support package not upgradable on Mobian fhireman 4 3,163 09-24-2022, 08:01 AM
Last Post: dante404
  PinePhone running Mobian - Malware extraction? names_fold 1 1,953 01-24-2022, 12:00 PM
Last Post: tophneal
  Mobian updates for phosh steves 2 2,534 01-17-2022, 02:18 AM
Last Post: bcnaz
  Assists for running Mobian my PinePhone gilwood 0 1,810 01-01-2022, 04:38 PM
Last Post: gilwood
  ? vpn or tor for mobian rvh 9 8,572 12-02-2021, 05:58 PM
Last Post: b7l3wui26r

Forum Jump:


Users browsing this thread: 1 Guest(s)