termux / termux-x11

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

How to use it in chroot? #279

Closed HilmiRidho closed 1 year ago

Heasterian commented 1 year ago

If you mean new branch, you need to add -listen tcp flag when starting Xvfb in Termux so DISPLAY=:0 taskset -c 4-7 Xvfb -listen tcp :0 -ac -screen 0 4096x4096x24 for example and you should be able to connect to DISPLAY=:0 from chroot.

HilmiRidho commented 1 year ago

If you mean new branch, you need to add -listen tcp flag when starting Xvfb in Termux so DISPLAY=:0 taskset -c 4-7 Xvfb -listen tcp :0 -ac -screen 0 4096x4096x24 for example and you should be able to connect to DISPLAY=:0 from chroot.

If you mean new branch, you need to add -listen tcp flag when starting Xvfb in Termux so DISPLAY=:0 taskset -c 4-7 Xvfb -listen tcp :0 -ac -screen 0 4096x4096x24 for example and you should be able to connect to DISPLAY=:0 from chroot.

why is the command so complicated? please make things easy and maybe change the socket to wayland-0 that's better :))

HilmiRidho commented 1 year ago

if there is an error in the GUI I can kill it via the termux terminal, now it can only export display 0 and startlxde if you want another command then you have to ctrl+c :(((

twaik commented 1 year ago

If you mean new branch, you need to add -listen tcp

I am planning to make termux-x11 work with Xwayland again, -listen tcp will not work in newer builds.

maybe change the socket to wayland-0 that's better :))

https://github.com/termux/termux-x11/issues/231#issuecomment-1436031561

HilmiRidho commented 1 year ago

If you mean new branch, you need to add -listen tcp

I am planning to make termux-x11 work with Xwayland again, -listen tcp will not work in newer builds.

maybe change the socket to wayland-0 that's better :))

#231 (comment)

and one more thing, i think if you make a concept like sparkle it's good. start by pressing the start button to turn on the socket and stop to turn off the socket

twaik commented 1 year ago

and one more thing, i think if you make a concept like sparkle it's good. start by pressing the start button to turn on the socket and stop to turn off the socket

I am not sure I understand what you mean.

HilmiRidho commented 1 year ago

and one more thing, i think if you make a concept like sparkle it's good. start by pressing the start button to turn on the socket and stop to turn off the socket

I am not sure I understand what you mean.

https://youtu.be/IR0mZ_KPaVg

twaik commented 1 year ago

https://youtu.be/IR0mZ_KPaVg

It will not happen. Program must work without root so executing additional commands is mandatory.

HilmiRidho commented 1 year ago

https://youtu.be/IR0mZ_KPaVg

Itu tidak akan terjadi. Program harus bekerja tanpa root sehingga menjalankan perintah tambahan adalah wajib.

place the socket in termux /tmp

Heasterian commented 1 year ago

-listen tcp will not work in newer builds.

Could I ask why? Looks like works pretty well at this moment.

twaik commented 1 year ago

place the socket in termux /tmp

Applications in Android exist in sandboxes and do not have access to sandboxes of other applications.

Could I ask why? Looks like works pretty well at this moment.

It works with Xvfb. In Xwayland -listen is synonym to -listenfd.

HilmiRidho commented 1 year ago

https://youtu.be/IR0mZ_KPaVg

It will not happen. Program must work without root so executing additional commands is mandatory.

I also noticed the cursor doesn't fit the screen size. it stays the same size as default when I change the screen resolution to lower

twaik commented 1 year ago

I did not implement cursor scaling.

HilmiRidho commented 1 year ago

I did not implement cursor scaling.

maybe you should remove option change screen resolution :)) let user buy keyboard and mouse or cast screen by hdmi :))

twaik commented 1 year ago

maybe you should remove option change screen resolution

It will not happen.

let user buy keyboard and mouse or cast screen by hdmi

Users still can use external keyboard, mouse and screen. Nothing changed.

HilmiRidho commented 1 year ago

:)))