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
  How To Share The External MicroSD Folders and Files On A Network? pinephoneuser22 5 1,416 02-10-2024, 08:47 AM
Last Post: jakfish
  Boot screen stuck at 'K' because of firmware deleted. poundantisec 9 5,003 08-28-2023, 11:38 AM
Last Post: fxc
  locked out on PIN screen g40 1 594 06-07-2023, 10:20 PM
Last Post: Kevin Kofler
Sad New PinePhone won't boot 9/10 times - Screen is on but stays black :( dante404 8 5,094 02-03-2023, 01:27 AM
Last Post: dante404
  My screen bottom side has loosed its tactile function arbocenc 1 755 01-06-2023, 10:02 AM
Last Post: britelite
  "PinenotePhone": Swap E-Ink Screen Onto Pinephone? britelite 0 625 01-03-2023, 06:17 PM
Last Post: britelite
  Screen seems ok but no display UncleMeat 3 1,487 11-03-2022, 07:02 AM
Last Post: fxc
Question Black screen no matter the OS joseph303 2 1,414 07-19-2022, 01:07 AM
Last Post: joseph303
  Boot problem: wrong screen orientation Jetpac 6 3,651 07-18-2022, 12:47 PM
Last Post: fravoi
  Manjaro phosh no screen rotation sandspur 1 1,267 06-23-2022, 01:02 AM
Last Post: rapp

Forum Jump:


Users browsing this thread: 1 Guest(s)