Does anyone use X11 forwarding with Android devices, so that they can access their UI apps remotely?

If so, what apps do you use and what issues have you run across?

There’s a “MobaXterm ssh” app and while I do love that app on other OS’s it doesn’t seem to be made by the same company so I don’t really trust it

7 points

After years of looking at this and working with x11 forwarding off and on. Honestly, just setup a VNC server and use the plethora of VNC clients for android. In my environment it performs better, and significantly easier to maintain. For my desktop I even find myself just using Steam Remoteplay if I need actual GPU performance over the internet.

Virtualgl +VNC is excellent if you get it working.

permalink
report
reply
1 point

Yeah I might still go that route, but there’s a lot of stuff where I just need to run a single app and the rest is all terminal so a full VNC session is overboard.

Also, it’s for a server so the less open ports and daemons running, the better

permalink
report
parent
reply
1 point

Totally fair, but you don’t have to open a port and could do ssh port forwarding if you are already going the ssh X forwarding route. I would try to measure the performance difference between X forwarding and a something like tigervnc. Depending on the specs of your server/clients it might not be very noticeable.

permalink
report
parent
reply
4 points
*

This might work:

  • install an x server app in your phone (e.g. XSDL) and start it
  • install Termux from f-droid (the one in play store hasn’t been updated due to changes in play store policy that prevents Termux package manager from working)
  • in Termux, run something like DISPLAY=127.0.0.1:0 ssh -Y user@hostname
permalink
report
reply
3 points

scrcpy

permalink
report
reply
1 point

The play store entry for that looks even more sketchy

permalink
report
parent
reply
2 points

Source code is available at GitHub but it require you to have your phone by yourside e.g. connected via usb or in the same network so you can connect via IP

permalink
report
parent
reply
1 point

SCRCPY is phenomenal.

permalink
report
parent
reply
1 point

I use it daily at work and it’s fine. It does everything you’re looking for in the way you’re looking for it.

Android natively supports video out for screen recording on your local machine. This just ingests the stream and plays it live instead of saving it.

permalink
report
parent
reply
1 point

Termux x11

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9K

    Monthly active users

  • 5.6K

    Posts

  • 154K

    Comments