T
TermuxSchrödinger

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!
pi-dev500
pi-dev50026d 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.
Schrödinger
Schrödinger26d ago
what if your package is malicious
marcusz
marcusz26d 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.
Schrödinger
Schrödinger26d ago
i can't find it useful for beginners
marcusz
marcusz26d ago
when you just proot-distro with --shared-tmp argument, inside the distro while termux x11 app is running, just type termux-x11
Schrödinger
Schrödinger26d ago
No description
marcusz
marcusz26d ago
yeah install proot-distro
Schrödinger
Schrödinger26d 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-dev50024d 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
tomikun24d 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-dev50024d ago
Probably fixed with my two commits of this morning.
Schrödinger
Schrödinger24d ago
had problem where it asked to continue or abort somewhere and it didn't respond
pi-dev500
pi-dev50024d 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.
Schrödinger
Schrödinger24d ago
mouse doesnt works
No description
Schrödinger
Schrödinger24d ago
How can i get output on termux x11 now?
No description
pi-dev500
pi-dev50023d 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.
Schrödinger
Schrödinger23d ago
after running the script it automatically ended up showing
No description
pi-dev500
pi-dev50023d 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
Schrödinger
Schrödinger23d ago
i ended up with this after giving login and password
No description
Schrödinger
Schrödinger23d ago
idk how to mark it as executable and download script
pi-dev500
pi-dev50023d ago
second quote of my last message wait a bit, please.
Schrödinger
Schrödinger23d ago
what should i do now? i ran the script below okay
pi-dev500
pi-dev50023d 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
tomikun23d 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
Schrödinger
Schrödinger23d ago
mouse isn't working tho idk why
tomikun
tomikun23d ago
send pic actually vid would be better with show touches enabled
Schrödinger
Schrödinger23d 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
tomikun23d ago
proot-distro login <distro> --shared-tmp
Schrödinger
Schrödinger20d ago
Ahh the phantom process killer bitch I've installed kde in Ubuntu
twaik
twaik20d ago
Good for you.
Schrödinger
Schrödinger20d ago
but it doesn't work
Catinette
Catinette20d 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
More Posts
libicu breaks zenitylibicu/stable 75.1 breaks zenity which expects .74, how can I resolve this issue?Adding a shortcut of the `lynx` command to KISS launcher home screenHi, I want to add a shortcut for `lynx` to the KISS launcher home screen. It doesn't support widgetsundefined reference to `pwritev'I was trying to build master neovim, but i got this error from libuv. How do i work around it ?pulseaudio no sound termuxHello, I come to report a problem From termux, the audio doesn't work on my phone, it's a matepad 11Jupyter issue in termux arch Android 13I am using Arch linux (i also tried debian based linux(s) in hope of fixing this issue, tho did not How to restart python scripts automatically/werid python bugHello! I have a android 8.1 phone that I'm using termux on I have turned of all android battery opInstalling code-server on Termux Android 5I understand that alternatives exist such as vim / neovim, but this doesn't fufill what i need so I Helpmirror not accessiblethis photo was not mine, however our members have been experiencing this problem that he can't deletIs this type of error normal?hello um I was testing this Andronix thing for the first time and everything was fine so far, but I Public adresssend me my public adress, pleasebash: ./filename: Permission DeniedHello all i have this problem after i successfully compiled main.cpp with clang as per the screenshoHelp Needed with Termux Audio Output IssueHello everyone, I previously had Termux installed on my device and everything was working fine. HowNeed Help In able to access ssh from my PC to Termux via ssh tunneling.My ISP utilizes CGNET, preventing me from directly port forwarding to the public network. To overcomcant run codeserverSo codeserver needs nodejs18, but how do i install nodejs18 on termux?how to change localhost number?hello uh so I'm using termux and I downloaded 2 distros,(one Ubuntu and one Kali) now the Ubuntu oneDowngrade nodehow to downgrade nodejs to 18 in termux not proot ?How to fix this error> Restart and Update the Panel System has not been booted with systemd as init system (PID 1). Can'tHELP TERMUX11 ITS NOT COMPATIBLE WITH MY PHONEHELP I CANT USE TERMUX WITHOUT ITHow to exit root in Termux?I have typed exit to end the session however this has lodged a root file session. How do I stop this