Code Monkey home page Code Monkey logo

termux-desktops's Introduction

Hi, I'm @LinuxDroidMaster 👋

  • 👀 I'm interested in exploring the intersection of Android, Linux, and customization.
  • 🌱 I'm currently learning new techniques and hacks to enhance the functionality of Android devices using Termux and custom ROMs.
  • 💞️ I'm looking to collaborate on open-source Android projects or anything related to the exciting world of custom ROMs.
  • 📫 You can reach me through my YouTube channel, DroidMaster, where I share tutorials on ROMs and advanced usage of Linux on Android via Termux or through my Telegram community.
  • 😄 Pronouns: He/Him
  • ⚡ Fun fact: I believe that turning your Android device into a Linux powerhouse is not just a technical endeavor, but also a creative one. Let's explore the endless possibilities together!

Feel free to connect, collaborate, and share the passion for pushing the boundaries of what our Android devices can achieve! 🚀

termux-desktops's People

Contributors

linuxdroidmaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

termux-desktops's Issues

Zink on chroot ?

Hello

When I tried zink method and virgl method on a chrooted system ,on a14 and sd 732g with adreno 618

Screenshot_20240211-150413_Termux_X11
Screenshot_20240211-151016_Termux_X11

Got these errors

Note :
I mounted tmp of termux on chroot tmp

I have latest termux x11 version ,dont know if that XDG issue is because ot or not

Thanks

dbus-launching issue

Whenever I start debian I got this output and x11 shows blank screen
termux-x11: no process found
Xwayland: no process found
Starting: Intent { cmp=com.termux.x11/.MainActivity }
-bash: line 1: dbus-launch: command not found

Can't follow chroot guide

Unfortunately even after being rooted. Magisk busybody module flashed and followed your guide to the T. Running that start.sh script says it can't find busy box

Pin: release a=*
Pin-Priority: -10
droidmaster@localhost:$ exit
logout
root@localhost:
# exit
logout
:/data/local/tmp # exit
~ $ sudo nano /data/local/tmp/start.sh
~ $ sudo XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 -ac &
sudo busybox mount --bind $PREFIX/tmp /data/local/tmp/chrootubuntu/tmp

sh /data/local/tmp/start.sh
[2] 14455

[2]+ Stopped sudo XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 -ac
/data/local/tmp/start.sh: 7: busybox: not found
/data/local/tmp/start.sh: 9: busybox: not found
/data/local/tmp/start.sh: 10: busybox: not found
/data/local/tmp/start.sh: 11: busybox: not found
/data/local/tmp/start.sh: 12: busybox: not found
/data/local/tmp/start.sh: 15: busybox: not found
/data/local/tmp/start.sh: 18: busybox: not found
/data/local/tmp/start.sh: 21: busybox: not found
~ $ exit
logout
There are stopped jobs.
~ $

This is weird considering busybox is indeed installed. I tried rebooting. Restarting from scratch. Reflashing. Just can't proceed past these final steps.

I'm running android 13. Full root. OnePlus 8t. There shouldn't be much difference than most other rooted setups.

Remove all

How to remove all directories and get rid of ubuntu???

Crash

Constant crashes on debian
log

GFX1-]: glxtest: ManageChildProcess failed

[GFX1-]: No GPUs detected via PCI

[Child 18785, Main Thread] WARNING: read-only dup failed (Permission denied); not using memfd: file ./ipc/chromium/src/base/shared_memory_posix.cc:255
[Child 18925, TaskController #3] WARNING: read-only dup failed (Permission denied); not using memfd: file ./ipc/chromium/src/base/shared_memory_posix.cc:255
The futex facility returned an unexpected error code.
ExceptionHandler::GenerateDump sys_pipe failed:Function not implemented

error

~ $ ./start_ubuntu.sh

  • Removing stale PID file /var/run/dbus/pid.
  • Starting system message bus dbus [ OK ]
    libmutter-Message: 13:49:53.032: Running GNOME Shell (using mutter 45.2) as a X11 window and compositing manager
    Xlib: extension "DPMS" missing on display ":0".
    Window manager warning: Impossible to set scaling on crtc 63 to 1.000000, error id 2
    Window manager warning: Scalig CRTC 63 at 1.000000 failed

Xlib: extension "DPMS" missing on display ":0".
libEGL warning: DRI3: Screen seems not DRI3 capable
Xlib: extension "DPMS" missing on display ":0".
GNOME Shell-Message: 13:49:55.190: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
GNOME Shell-Message: 13:49:55.488: Failed to register AuthenticationAgent

(gnome-shell:24207): libmutter-WARNING **: 13:49:55.491: Failed to create colord device for 'xrandr-screen': failed to obtain org.freedesktop.color-manager.create-device auth
GNOME Shell-Message: 13:49:55.516: No permission to trigger offline updates: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.NotAuthorized: Only trusted callers (e.g. uid 0 or an action owner) can use CheckAuthorization() for subjects belonging to other identities
GNOME Shell-Message: 13:49:55.566: No permission to control network connections: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.NotAuthorized: Only trusted callers (e.g. uid 0 or an action owner) can use CheckAuthorization() for subjects belonging to other identities
** Message: 13:49:55.608: Failed to start camera monitor
GNOME Shell-Message: 13:49:55.695: Failed to get PolKit permission: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.NotAuthorized: Only trusted callers (e.g. uid 0 or an action owner) can use CheckAuthorization() for subjects belonging to other identities
GNOME Shell-Message: 13:49:55.701: Error calling StartServiceByName for net.hadess.PowerProfiles: Launch helper exited with unknown return code 1
GNOME Shell-Message: 13:49:57.296: GNOME Shell started at Sun May 05 2024 13:49:54 GMT+0800 (Hong Kong Standard Time)
GNOME Shell-Message: 13:49:57.299: Registering session with GDM
GNOME Shell-Message: 13:49:57.453: Error registering session with GDM: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.DisplayManager was not provided by any .service files

Chroot debian not working

The error I get when I try to start chroot Debian

dbus-daemon[23763]: Failed to start message bus: Failed to bind socket "/tmp/dbus-Y6nFb6RFBr": Permission denied
EOF in dbus-launch reading address from bus daemon

Agregar Alpine, Void y Archlinux

Seria buenísimo si pudieras hacer un tutorial de como instalar algunas distribuciones como Alpine, Void o Arch Linux, seria muy interesante. Yo personalmente instalé Ubuntu 23.10 usando tus tutorial y modificando los Scripts que hiciste, pero desconozco cómo hacerlos con las distros que ya nombre por qué son comandos diferentes a los de debian y derivados. Que tenga un buen día 😃.

Issue launching environment following install script execution

Hello, I was giving your Debian automated install script a run. Device is obviously rooted, BusyBox good to go, all packages you listed installed before hand.

The install script went smoothly, not issues I noticed. When executing the startxfce4_chrootDebian.sh there is a bind failure with dbus, permission issue.

~ $ sh startxfce4_chrootDebian.sh
termux-x11: no process found
Xwayland: no process found
pulseaudio: no process found
virgl_test_server_android: no process found
termux-wake-lock: no process found
Starting: Intent { cmp=com.termux.x11/.MainActivity }
Warning: Activity not started, intent has been delivered to currently running top-most instance.
mkdir: '/data/local/tmp/chrootDebian/dev/shm': File exists
mkdir: '/data/local/tmp/chrootDebian/sdcard': File exists
dbus-daemon[25905]: Failed to start message bus: Failed to bind socket "/tmp/dbus-MDZWKL9ArX": Permission denied
EOF in dbus-launch reading address from bus daemon

Figured I would ask if this is something you have run into, or if that script is still a work in progress before I go looking into it myself.

Gran trabajo

Hola, este proyecto está increíble muchas gracias por crearlo y por qué te tomaste el tiempo para hacer esto increíble. Admiro y te felicito por tu gran trabajo. Espero que tengas un buen día😃.

chroot_debian_installer.sh[239]: wget: inaccessible or not found

When doing su and then sh chroot_debian_installer.sh I get this error because wget is available for the default termux user but not for root:

[✓] Created directory:
[+] Downloading file...
chroot_debian_installer.sh[239]: wget: inaccessible or not found
[!] Error downloading file: debian12-arm64.tar.gz. Exiting...
[!] Something went wrong. Exiting...

I worked around it by doing instead:

export PATH=/data/data/com.termux/files/usr/bin:$PATH
sh chroot_debian_installer.sh

User change

Awesome script first of all. But I couldn't find where to edit the droidmaster username in the script. It's commented out under sleep. With #.

I made a new user, added to sudo group, exited and downloaded script. Edited with nano where it says droidmaster and it still loads in with droidmaster user.

What I'm doing wrong?

Can't chroot into debian

i tried setting up the debian chroot manually since automatic one didnt work
turns out i cant chroot into it because i get this error:

su: cannot open session: Error in service module

any ideas on how to fix this?

user droidmaster does not exist

When i run this script i get this errors
"Errors from xkbcomp are not fatal to the X server"
su: user droidmaster does not exist or the user entry does not contain all the required fields.

This means on that startxfce4_debian.sh script u hace to edit edit the sudo username from droidmaster to your sudo username

I Hope this will help
Screenshot_20240112_001550_Termux

bind socket error using debian chroot

When i try to run the script the termux-x11 app opens and gives me a black screen, and in termux i get this error:
image

I'm rooted and on Android 14.
How can I fix this?

please add dbus start at the start of proot-distro

There is a view that will be better, an example for debian:

-# Login in PRoot Environment. Do some initialization for PulseAudio, /tmp directory
-# Start dbus service
-# and run XFCE4 as user root.
-# See also: https://github.com/termux/proot-distro
-# Argument -- acts as terminator of proot-distro login options processing.
-# All arguments behind it would not be treated as options of PRoot Distro.
proot-distro login debian --shared-tmp -- /bin/bash -c 'export PULSE_SERVER=127.0.0.1 && export XDG_RUNTIME_DIR=${TMPDIR} && su - root -c "service dbus start && env DISPLAY=:0 startxfce4"'

Session Closed When Start the Terminal on debian

Session start the well with some errors but when open Termux x11 it will open but when try to start the terminal it will closed the session automatically. And termux X11 it will say not conected the session will die on termux to idont know uf this will be due to my phone or it just script bug
Screenshot_20240112_143246_Termux

Permission denied chroot debian (Pixel 7)

killall: termux-x11: No such process killall: Xwayland: No such process killall: pulseaudio: No such process killall: virgl_test_server_android: No such process killall: termux-wake-lock: No such process
Starting: Intent { cmp=com.termux.x11/.MainActivity } startxfce4_chrootDebian.sh[9]: sudo: inaccessible or not found startxfce4_chrootDebian.sh[11]: termux-x11: inaccessible or not found startxfce4_chrootDebian.sh[16]: pulseaudio: inaccessible or not found startxfce4_chrootDebian.sh[17]: pacmd: inaccessible or not found startxfce4_chrootDebian.sh[20]: virgl_test_server_android: inaccessible or not found mkdir: '/data/local/tmp/chrootDebian/dev/shm': File exists mkdir: '/data/local/tmp/chrootDebian/sdcard': File exists dbus-daemon[21049]: Failed to start message bus: Failed to bind socket "/tmp/dbus-irFQpEAN6k": Permission deniedEOF in dbus-launch reading address from bus daemon 1|:/data/data/com.termux/files/home #

when I sudo bash'ing it:
~ $ sudo bash startxfce4_chrootDebian.sh termux-x11: no process found Xwayland: no process found pulseaudio: no process found virgl_test_server_android: no process found termux-wake-lock: no process found W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). E: [autospawn] core-util.c: Home directory not accessible: Unknown error 13
W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
E: [pulseaudio] main.c: Failed to acquire autospawn lockHome directory not accessible: Unknown error 13
No PulseAudio daemon running, or not running as session daemon.
mkdir: '/data/local/tmp/chrootDebian/dev/shm': File exists
mkdir: '/data/local/tmp/chrootDebian/sdcard': File exists
dbus-daemon[23252]: Failed to start message bus: Failed to bind socket "/tmp/dbus-BiXXUElYXA": Permission denied
EOF in dbus-launch reading address from bus daemon ~ $

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.