termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.94k stars 301 forks source link

How to connect it remotely. #681

Closed ImranSangle closed 1 month ago

ImranSangle commented 1 month ago

I want to ask, how to connect remotely to the termux-x11. Like if i have termux-x11 running on one device and termux app on another, i want my termux app's applications to display on another device's termux-x11 screen remotely, how to do that ? Thank you.

twaik commented 1 month ago

You can try to start termux-x11 :0 -listen tcp -ac and start your app as DISPLAY=<phone's ip>:0 pcmanfm on your other device, but it is not worth it. Termux:X11 is not designed for remote connections, it is optimised only for local use. VNC will give much better results.

ImranSangle commented 1 month ago

Thank you for your kind information.

ImranSangle commented 1 month ago

I have a biggest confusion about the x11 (normal x11 that a Linux pc has), it would be great if you help me clearing that. I want to ask that if x11 works in a client and server manner, who actually do all the rendering thing using the machine's hardware ( like GPU or CPU), is the client that renders the graphics and send the pixel data to the Xserver or it just sends the instructions to the server and the Xserver renders it using the hardware (in local or remote connection) ?

twaik commented 1 month ago
  1. Termux:X11 is normal X server. Whatever you know about it.
  2. https://en.wikipedia.org/wiki/X_Window_System_protocols_and_architecture
  3. In the case of GPU rendering X clients render image on their side wherever they are and send it to X server using DRI2/DRI3 in the case of local (UNIX) connection and via socket in the case of remote or local (TCP) connection.
ImranSangle commented 1 month ago

Well thanks again ! My confusion is now cleared. Termux and Termux-x11 is a great app.