this post was submitted on 09 Nov 2023
31 points (91.9% liked)

Linux

46777 readers
1724 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 9 months ago (1 children)

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.

[–] [email protected] 1 points 9 months ago (1 children)

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

[–] [email protected] 1 points 9 months ago

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.

[–] [email protected] 4 points 9 months ago* (last edited 9 months ago)

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
[–] [email protected] 3 points 9 months ago (1 children)
[–] [email protected] 1 points 9 months ago (3 children)

The play store entry for that looks even more sketchy

[–] [email protected] 2 points 9 months ago

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

[–] [email protected] 1 points 9 months ago

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.

[–] [email protected] 1 points 9 months ago

SCRCPY is phenomenal.

[–] [email protected] 1 points 9 months ago