Termux-Desktops icon indicating copy to clipboard operation
Termux-Desktops copied to clipboard

strange script

Open Fskadi opened this issue 1 year ago • 3 comments

i followed the tutorial as written, only i changed the username in my username and it didn't want to take the passwd, apart from it i think i followed all

this is what i get after i restarted the phone and got into su

.../local/tmp $ su :/data/local/tmp # ls ArchLinuxARM-aarch64-latest.tar.gz chrootarch start_arch.sh startxfce4_chrootArch.sh :/data/local/tmp # sh startxfce4_chrootArch.sh 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 } Error type 3 Error: Activity class {com.termux.x11/com.termux.x11.MainActivity} does not exist. startxfce4_chrootArch.sh[7]: sudo: inaccessible or not found startxfce4_chrootArch.sh[9]: termux-x11: inaccessible or not found startxfce4_chrootArch.sh[13]: pulseaudio: inaccessible or not found startxfce4_chrootArch.sh[14]: pacmd: inaccessible or not found startxfce4_chrootArch.sh[18]: sudo: inaccessible or not found startxfce4_chrootArch.sh[16]: virgl_test_server_android: inaccessible or not found mount: mounting tmpfs on /data/local/tmp/chrootarch/dev/shm failed: No such file or directory /usr/bin/startxfce4: X server already running on display :0 xrdb: Connection refused xrdb: Can't open display ':0' Environment variable $XAUTHORITY not set, ignoring. Failed to import environment: Process org.freedesktop.systemd1 exited with status 1 xfce4-session: Cannot open display: . Type 'xfce4-session --help' for usage.

when i try to install the packages it says they are already installed

what i'm doing wrong? also before this i couldn't open the script with ./ only with sh works, when i use ./ it says no file or directory even when i'm in folder and the file is here and it has necessary permissions thank you

Fskadi avatar Dec 03 '24 15:12 Fskadi

for anyone having the same problem i had to install termux x11 arm64 debug from github, mkdir -p /data/local/tmp/chrootarch/dev/shm
and it worked, thanks for the tutorial

Fskadi avatar Dec 04 '24 13:12 Fskadi

Make new sh script and insert this

setenforce 0 sh /data/data/com.termux/files/usr/bin/termux-x11 & busybox mount --bind /data/data/com.termux/files/usr/tmp /data/local/chroot-distro/archlinux/tmp setenforce 1 chroot-distro command archlinux "export PULSE_SERVER=127.0.0.1" chroot-distro login archlinux

Then save it and chmod +x it As root run it and then run (or make a new sh script to make it easier later) export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4713 && dbus-launch --exit-with-session startxfce4

Kris123454 avatar Jan 31 '25 12:01 Kris123454

I was running into the same error and I added this to the startxfce4_chrootArch.sh

export PATH=/data/data/com.termux/files/usr/bin:/debug_ramdisk:/sbin:/sbin/su:/su/bin:/su/xbin:/system/bin:/system/xbin
export DISPLAY=:0
export TMPDIR=/data/local/tmp/chrootarch/tmp
export CLASSPATH=$(/system/bin/pm path com.termux.x11 | cut -d: -f2)```

sixstringacks avatar Mar 20 '25 22:03 sixstringacks