linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

How can I use a computer as the display instead of the phone itself?

Open Uuili opened this issue 7 years ago • 3 comments

So, I've tried VNC, and while it works well to control Linux from the phone itself, it lags too much if I connect via a PC, because it's not there natively.

So I'm trying to use X11 to control my Linux installation on Android from a PC, but I'm not sure how to export the display over there rather than on the phone itself.

I'm also thinking of ways to do this by connecting my phone to the PC via ADB but I'm not succeeding right now.

Thanks.

Uuili avatar Aug 15 '19 03:08 Uuili

I'd try VNC on a 5GHz network (if you're not already on one), or, since you say it runs fine on the phone itself, maybe scrcpy will get you better results, since it works wired over adb.

ptrkc avatar Aug 28 '19 14:08 ptrkc

By using XManager or other X Server software, you could control your phone from PC. I have no idea about X11 forwarding, so I could only do manual settings in the terminal:

  1. Set environment variables in your Linux environment:
  • DISPLAY=PC_IP_ADDR:0 to set X server
  • PULSE_SERVER=tcp:PC_IP_ADDR:PORT if you have a PulseAudio running
  1. Start X Server in your PC.
  2. Execute the command to start your desktop, e.g. mate-session for starting MATE.

Drickle avatar Sep 07 '19 08:09 Drickle

download realVNC for pc.

titangames927 avatar Nov 16 '19 09:11 titangames927