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
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.
what if your package is malicious
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.
i can't find it useful for beginners
when you just proot-distro with
--shared-tmp
argument, inside the distro while termux x11 app is running, just type termux-x11
yeah install proot-distro
yeah
i installed
assume
but it fails
last time i got graphical output on x11 but it failed to give any response.
what?
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.
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"
Probably fixed with my two commits of this morning.
had problem where it asked to continue or abort somewhere and it didn't respond
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.
mouse doesnt works
How can i get output on termux x11 now?
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.after running the script it automatically ended up showing
Oh, sorry, I forgot that using 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 :
i ended up with this after giving login and password
idk how to mark it as executable and download script
second quote of my last message
wait a bit, please.
what should i do now? i ran the script below
okay
Now, you can run: It will not more ask you and break like that on package installation.
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
againmouse isn't working tho
idk why
send pic
actually vid would be better
with show touches enabled
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
proot-distro login <distro> --shared-tmp
Ahh the phantom process killer bitch
I've installed kde in Ubuntu
Good for you.
but it doesn't work
always add all info about your problem
screenshots, error messages, logs
they can't help you just with "doesn't work"