-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add desktop environment support using Termux X11 #49
Comments
Thanks for the idea. Just to clarify, do you mean that Termux will run X11 server, and the distro in the rootfs will connect to that? |
Yes, exactly! |
Unfortunately I only have one device which is rooted, and it is Android 7 device. Thus, I can't help with this as Termux X11 requires at least Android 8. Pull requests are welcome to address this case in the README file. |
This is my own script for using termux-x11: `echo "Creating Termux-X11 server process" XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 -ac & #sleep 0.5 echo "Mounting X-Server…" sleep 0.5 echo "Creating shm…" sleep 0.3 echo "Fix chmod…" sleep 0.2 echo "Mounting to fix sudo…" su -c chroot-distro login debian` Then when you're inside chroot just type:
|
It works but for some reason the process ends suddenly, gives some warnings with dbus, and I tried it on different devices anyway thanks for the contribution |
This does it for me for debian chroot. Ideas taken from https://github.com/LinuxDroidMaster/Termux-Desktops/blob/main/Documentation/chroot/debian_chroot.md, https://ivonblog.com/en-us/posts/termux-virglrenderer/#42-in-chroot:
@jjkola to save an extra step it would for me be useful to set variables with the Or, have an option to load a separate user config? Edit: Disregard, my fault for not reading well, I see there is already an option to pass a separate command! |
it worked for me in both ubuntu and debain |
Are there any tutorials on how to connect Termux:x11 to display graphics in Arch Linux running inside a chroot-distro? |
just follow the above tutorial, give termux root access and run then one by one inside termux |
How to Set Up XFCE4 Desktop Environment with Termux-X11Installing Dependencies Package1: Install Termux-X11
2: Install Required Packages in Termux
3: Set Up Desktop Environment (Assuming that you're already installed the Chroot Distro)
Launch the Desktop Environment Easily
Save this script as "chroot-xfce.sh" as it provides user-friendly menu and use it to launch your XFCE4 desktop environment later:
Once completed, you'll have a fully functional XFCE4 desktop environment with audio capabilities running through Termux-X11. |
@jjkola add this in readme? |
More Readable README and Adding Tutorial for Desktop Environment through Termux-X11 Magisk-Modules-Alt-Repo#49
Thanks, I will try to review the changes as soon as possible. |
np, sure, do take your time. |
I think it would be great to add support for running a desktop environment in the chroot distro using Termux X11..
Basic implementation would include:
Add Termux X11 dependencies:
Create a simple startup script:
Benefits:
The text was updated successfully, but these errors were encountered: