Setting up proot distro on termux and getting graphical output on termux x11

It's a complete mess to get a proot distro running and all the tutorials fail at some point during the procedure of installing the desktop environment and getting graphical output running on termux x11 I just need any distro and desktop environment running that works!
32 Replies
pi-dev500
pi-dev5008mo ago
see how I did on https://github.com/pi-dev500/termuxubuntu-x11. I'm not sure my script work, but it is simple, and you can take exemple on it. At first, if you try to use play store's default termux, it will never work. You need to get it from F-droid.
schrodinger69
schrodinger69OP8mo ago
what if your package is malicious
marcusz
marcusz8mo ago
GitHub
GitHub - termux/termux-x11: Termux X11 add-on application.
Termux X11 add-on application. Contribute to termux/termux-x11 development by creating an account on GitHub.
schrodinger69
schrodinger69OP8mo ago
i can't find it useful for beginners
marcusz
marcusz8mo ago
when you just proot-distro with --shared-tmp argument, inside the distro while termux x11 app is running, just type termux-x11
schrodinger69
schrodinger69OP8mo ago
No description
marcusz
marcusz8mo ago
yeah install proot-distro
schrodinger69
schrodinger69OP8mo ago
yeah i installed assume but it fails last time i got graphical output on x11 but it failed to give any response. what?
pi-dev500
pi-dev5008mo ago
Sorry for the late answer, the bug is a syntax error in my script, I forgot some space in if tests. I will try to fix it today.
tomikun
tomikun8mo ago
If you want to display things from inside the proot-distro into termux-x11, you need to use the --shared-tmp argument (I think, might be wrong, I think this related to hardware acceleration instead but idk, just do it, you won't lose anything) To set up a desktop environment inside termux, not inside proot, just install xfce4-session xfce4-goodies x11-repo termux-x11-nightly then after that all you need to do is to run this command termux-x11 -xstartup xfce4-session To stop it just do pkill app_process or killall main or force close the termux app From inside proot, you can then run any graphical program you want on termux-x11 as long as you export DISPLAY=:0 since that's the default If you want to start a desktop environment inside proot then Install the termux-x11-nightly package in termux, not proot Install xfce4-session, xfce4-goodies and dbus inside the proot, not termux Do not run proot-distro with the --isolated argument or it will NOT work then run this command termux-x11 -xstartup "dbus-launch xfce4-session"
pi-dev500
pi-dev5008mo ago
Probably fixed with my two commits of this morning.
schrodinger69
schrodinger69OP8mo ago
had problem where it asked to continue or abort somewhere and it didn't respond
pi-dev500
pi-dev5008mo ago
After password/id entry or before? If it is before, the only thing that can ask to continue is the pkg install and I never had any issues with this simple script which uses apt. If it is what you posted in #x11 , I just fixed it.
schrodinger69
schrodinger69OP8mo ago
mouse doesnt works
No description
schrodinger69
schrodinger69OP8mo ago
How can i get output on termux x11 now?
No description
pi-dev500
pi-dev5008mo ago
You need to wipe Ubuntu proot by proot-distro remove ubuntu, and run back my script to have a clean install, and then just type ubuntu in termux should start it.
schrodinger69
schrodinger69OP8mo ago
after running the script it automatically ended up showing
No description
pi-dev500
pi-dev5008mo ago
Oh, sorry, I forgot that using
| bash
| bash
disallow user input, You need to download the script, mark it as executable, and run it as shown in my last commit on the readme :
wget https://raw.githubusercontent.com/pi-dev500/termuxubuntu-x11/main/install.sh -O ubuinstall.sh && chmod +x ./ubuinstall.sh && ./ubuinstall.sh
wget https://raw.githubusercontent.com/pi-dev500/termuxubuntu-x11/main/install.sh -O ubuinstall.sh && chmod +x ./ubuinstall.sh && ./ubuinstall.sh
schrodinger69
schrodinger69OP8mo ago
i ended up with this after giving login and password
No description
schrodinger69
schrodinger69OP8mo ago
idk how to mark it as executable and download script
pi-dev500
pi-dev5008mo ago
second quote of my last message wait a bit, please.
schrodinger69
schrodinger69OP8mo ago
what should i do now? i ran the script below okay
pi-dev500
pi-dev5008mo ago
Now, you can run:
proot-distro remove ubuntu && wget https://raw.githubusercontent.com/pi-dev500/termuxubuntu-x11/main/install.sh -O ubuinstall.sh && chmod +x ./ubuinstall.sh && ./ubuinstall.sh
proot-distro remove ubuntu && wget https://raw.githubusercontent.com/pi-dev500/termuxubuntu-x11/main/install.sh -O ubuinstall.sh && chmod +x ./ubuinstall.sh && ./ubuinstall.sh
It will not more ask you and break like that on package installation.
tomikun
tomikun8mo ago
it's already running You already have output by that point i highly do not suggest whatever the other guy is telling you unless you read and understand the script they're telling you to use because you're gonna be as clueless as when you were at the start and if you encounter any problems, you'll have no idea how to fix them if you don't care about learning how to do this yourself and just want something that magically works then sure, use the script anyways it's already running, it's already working, you just need to swap over to the termux:x11 app if nothing apppears or it's buggy, kill it all then run termux-x11 again
schrodinger69
schrodinger69OP8mo ago
mouse isn't working tho idk why
tomikun
tomikun8mo ago
send pic actually vid would be better with show touches enabled
schrodinger69
schrodinger69OP8mo ago
okay thanks it worked this time but how I'll use the share tmp argument can you give an example for an distro after i install xfce4 in proot
tomikun
tomikun8mo ago
proot-distro login <distro> --shared-tmp
schrodinger69
schrodinger69OP7mo ago
Ahh the phantom process killer bitch I've installed kde in Ubuntu
twaik
twaik7mo ago
Good for you.
schrodinger69
schrodinger69OP7mo ago
but it doesn't work
Catinette
Catinette7mo ago
always add all info about your problem screenshots, error messages, logs they can't help you just with "doesn't work"
Want results from more Discord servers?
Add your server