Screen share vnc/rdp/x11 ?
#1
For development would be nice if we could have a screen share setup for the PinePhone.

I've got a mine with Manjaro and I'm struggling to find a way to share the PinePhone screen/imput to my linux desktop, I've tried to find vnc/xrdp through the package manager but no luck.

Does someone managed to have a good setup for screen/input sharing ?
#2
Hmm not got my phone yet but I've got something you could try not the best at the command line tho



Code:
ssh -R 6000:localhost:6001 <ip of phone>[/font][/size][/color]

export DISPLAY=localhost:1.0   

firefox.exe


Then if you run firefox or any X program it should show up locally


I should warn this code is untested and not sure if should use -L or -R

If you host is windows you need to install https://sourceforge.net/projects/xming/
owo notices your distro.
#3
(11-18-2020, 04:14 AM)dallytaur Wrote: Hmm not got my phone yet but I've got something you could try not the best at the command line tho



Code:
ssh -R 6000:localhost:6001 <ip of phone>[/font][/size][/color]

export DISPLAY=localhost:1.0   

firefox.exe


Then if you run firefox or any X program it should show up locally


I should warn this code is untested and not sure if should use -L or -R

If you host is windows you need to install https://sourceforge.net/projects/xming/
Thank you for reply but no luck with this !
After search for a while I found that the xauth was missing but even after install it and initialize .Xauthority I can not connect:
====
ssh -v -X manjaro@10.42.0.223
...
Welcome to Manjaro-ARM
~~Website: https://manjaro.org
~~Forum:  https://forum.manjaro.org/c/arm
~~Matrix:  #manjaro-arm-public:matrix.org
Last login: Thu Nov 19 12:15:05 2020 from 10.42.0.1
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 55516
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: channel 1: FORCE input drain
debug1: channel 1: free: x11, nchannels 2
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 55518
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: channel 1: FORCE input drain
debug1: channel 1: free: x11, nchannels 2
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
====
#4
(11-19-2020, 06:28 AM)mingodad Wrote:
(11-18-2020, 04:14 AM)dallytaur Wrote: Hmm not got my phone yet but I've got something you could try not the best at the command line tho



Code:
ssh -R 6000:localhost:6001 <ip of phone>[/font][/size][/color]

export DISPLAY=localhost:1.0   

firefox.exe


Then if you run firefox or any X program it should show up locally


I should warn this code is untested and not sure if should use -L or -R

If you host is windows you need to install https://sourceforge.net/projects/xming/
Thank you for reply but no luck with this !
After search for a while I found that the xauth was missing but even after install it and initialize .Xauthority I can not connect:
====
ssh -v -X manjaro@10.42.0.223
...
Welcome to Manjaro-ARM
~~Website: https://manjaro.org
~~Forum:  https://forum.manjaro.org/c/arm
~~Matrix:  #manjaro-arm-public:matrix.org
Last login: Thu Nov 19 12:15:05 2020 from 10.42.0.1
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 55516
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: channel 1: FORCE input drain
debug1: channel 1: free: x11, nchannels 2
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 55518
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: channel 1: FORCE input drain
debug1: channel 1: free: x11, nchannels 2
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
====


this way above what i know but you don't need to mess xserver as the Xserver is running on your PC and your just telling firefox on the phone to connect to the server on your PC and not the one on your phone
owo notices your distro.
#5
I tested again with only "ssh -X manjaro@xx.xx.x.xxx" and I can run fltk test programs (I compiled fltk-1.4) but any other preinstalled programs like "firefox"  open on the phone screen instead on my desktop.

I also installed tigervnc and can connect but only got a black screen so far.
#6
It's using Wayland not X, so forwarding X only works with applications that are using X by default. For the ones that can start with either display you may be able to coerce them into using X by setting an environment variable or two, but what you set depends on the toolkit the application is using, for example:
GDK_BACKEND=x11 firefox

I think for Qt it would be QT_QPA_PLATFORM=xcb but there may be something else too. I've not looked into it for other toolkits.
For desktop sharing you probably need something like gnome-remote-desktop - assuming it's compatible with phosh.


Possibly Related Threads…
Thread Author Replies Views Last Post
  My PinePhone shuts down when the screen turns off rvbarreto 0 43 06-13-2021, 05:11 PM
Last Post: rvbarreto
  PinePhone postmarketOS edition does not boot up properly anymore, black screen loops MrSaudade 3 815 03-07-2021, 06:11 AM
Last Post: Veraendert
  Not booting , Black screen backlight is on pokemanearth 17 6,565 02-02-2021, 05:25 AM
Last Post: gartxot
  Number Share matt_the_hall 1 545 12-04-2020, 04:10 PM
Last Post: wibble
  Changed pw in terminal to 'asd' can't log in at phone's home screen now LazyMechTech 4 913 11-30-2020, 06:14 PM
Last Post: ryo
  suggestion the broken screen issues dallytaur 0 461 11-19-2020, 10:27 PM
Last Post: dallytaur

Forum Jump:


Users browsing this thread: 1 Guest(s)