Pipetto-crypto / Chroot-Docs

Some documentation for my chroot setup
GNU General Public License v3.0
11 stars 1 forks source link

how to use lxqt #1

Open namyunseong97 opened 1 year ago

namyunseong97 commented 1 year ago

thanks for your Docs. by the way, how to install and use lxqt desktop?

Pipetto-crypto commented 1 year ago

sudo apt install lxqt.

To use it run dbus-launch --exit-with-session startlxqt

ikmjssc commented 1 year ago

maybe it's better to pack everything together so you don't have to answear to how to install a package....

sudo apt install lxqt.

To use it run dbus-launch --exit-with-session startlxqt

Pipetto-crypto commented 1 year ago

maybe it's better to pack everything together so you don't have to answear to how to install a package....

sudo apt install lxqt. To use it run dbus-launch --exit-with-session startlxqt

I can't because the rootfs would become too big and it would take me days if not weeks to upload it with my connection if that's what you mean.

For me it is way easier to answer questions like this than packing everything together

namyunseong97 commented 1 year ago

LXQt not work

$ linux-deploy start -w

Initializing audio server before startup

Starting the chroot

Checking file system ... done Mounting the container: / ... fail

Binding internal storage

Binding external storage

Loading binfmts entries

Installing the termux-x11 script CANNOT LINK EXECUTABLE "curl": library "libssl.so.1.1" not found: needed by /data/data/com.termux/files/usr/lib/libcurl.so in namespace (default) Creating the socket chmod: cannot operate on dangling symlink '/data/data/com.termux/files/usr/xwayland' Loading shared library: /data/data/com.termux/files/usr/libexec/termux-x11/starter.apk!/lib/arm64-v8a/libx11-starter.so Looks like com.termux lacks "Draw Over Apps" permission. You can grant com.termux the "Draw Over Apps" permission from its App Info activity: Android Settings -> Apps -> Termux -> Advanced -> Draw over other apps. res = 0 Activity is started Got getWaylandFD socket: Permission denied Lorie requested fd Got getLogFD {ParcelFileDescriptor: java.io.FileDescriptor@4e102bd} Got finish request App sent finishing command chmod: cannot access '/data/local/mnt/tmp/runtime-android': No such file or directory chmod: cannot access '/data/data/com.termux/files/usr/xwayland/wayland-0': No such file or directory Starting the Xwayland server in the chroot through the script :: Starting core/emulator ... skip :: Configuring core/mnt ... :: Configuring core/net ... Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] -sh: 1: termux-x11: Permission denied All preparations completed, connecting now

android@localhost's password: Linux localhost 5.4.61-qgki-g65bf499c101d #1 SMP PREEMPT Thu Aug 19 16:35:21 CST 2021 aarch64 Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] Last login: Tue Oct 11 17:17:01 2022 from 127.0.0.1 $ dbus-launch --exit-with-session startlxqt dbus[21872]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/tmp/runtime-android" not available: No such file or directory qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

Pipetto-crypto commented 1 year ago

LXQt not work

$ linux-deploy start -w

Initializing audio server before startup

Starting the chroot

Checking file system ... done Mounting the container: / ... fail

Binding internal storage

Binding external storage

Loading binfmts entries

Installing the termux-x11 script CANNOT LINK EXECUTABLE "curl": library "libssl.so.1.1" not found: needed by /data/data/com.termux/files/usr/lib/libcurl.so in namespace (default) Creating the socket chmod: cannot operate on dangling symlink '/data/data/com.termux/files/usr/xwayland' Loading shared library: /data/data/com.termux/files/usr/libexec/termux-x11/starter.apk!/lib/arm64-v8a/libx11-starter.so Looks like com.termux lacks "Draw Over Apps" permission. You can grant com.termux the "Draw Over Apps" permission from its App Info activity: Android Settings -> Apps -> Termux -> Advanced -> Draw over other apps. res = 0 Activity is started Got getWaylandFD socket: Permission denied Lorie requested fd Got getLogFD {ParcelFileDescriptor: java.io.FileDescriptor@4e102bd} Got finish request App sent finishing command chmod: cannot access '/data/local/mnt/tmp/runtime-android': No such file or directory chmod: cannot access '/data/data/com.termux/files/usr/xwayland/wayland-0': No such file or directory Starting the Xwayland server in the chroot through the script :: Starting core/emulator ... skip :: Configuring core/mnt ... :: Configuring core/net ... Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] -sh: 1: termux-x11: Permission denied All preparations completed, connecting now

android@localhost's password: Linux localhost 5.4.61-qgki-g65bf499c101d #1 SMP PREEMPT Thu Aug 19 16:35:21 CST 2021 aarch64 Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] Last login: Tue Oct 11 17:17:01 2022 from 127.0.0.1 $ dbus-launch --exit-with-session startlxqt dbus[21872]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/tmp/runtime-android" not available: No such file or directory qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

Kill termux-x11 app then exit the chroot with the exit command and stop the chroot with linux-deploy stop command.

You should be in termux now, download openssl with this command:

pkg install openssl

Once you have done this enter the chroot with linux-deploy start command and type the following commands inside the chroot:

sudo mkdir -p /tmp/runtime-android sudo chown android:android /tmp/runtime-android sudo chmod 755 /tmp/runtime-android

Then exit the chroot again and stop it once more.

Now start the chroot with linux-deploy start -w command and when it launches termux-x11 app you have to stay inside the app up until the "Service Created" toast appears, only then you can leave the termux-x11 app and go back to termux.

namyunseong97 commented 1 year ago

some errors have been fixed but still not working.

~ $ linux-deploy start -w

Initializing audio server before startup

Starting the chroot

Checking file system ... skip Mounting the container: / ... skip /proc ... skip /sys ... skip /dev ... skip /dev/shm ... skip /dev/pts ... skip :: Starting core/emulator ... skip :: Configuring core/mnt ... :: Configuring core/net ... :: Starting extra/ssh ... skip

Binding internal storage

Binding external storage

Loading binfmts entries

Installing the termux-x11 script % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --100 50 100 50 0 0 205 0 --:--:-- --:--:-- --:--:-- 205 Creating the socket Loading shared library: /data/data/com.termux/files/usr/libexec/termux-x11/starter.apk!/lib/arm64-v8a/libx11-starter.so res = 0 Activity is started Got getWaylandFD socket: Permission denied Lorie requested fd Got getLogFD {ParcelFileDescriptor: java.io.FileDescriptor@84e1f8} Got finish request App sent finishing command chmod: cannot access '/data/data/com.termux/files/usr/xwayland/wayland-0': No such file or directory Starting the Xwayland server in the chroot through the script :: Starting core/emulator ... skip :: Configuring core/mnt ... :: Configuring core/net ... Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] /bin/sh: 0: cannot open /usr/bin/termux-x11: Permission denied All preparations completed, connecting now

android@localhost's password: Linux localhost 5.4.61-qgki-g65bf499c101d #1 SMP PREEMPT Thu Aug 19 16:35:21 CST 2021 aarch64 Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] Last login: Tue Oct 11 22:09:46 2022 from 127.0.0.1 $ dbus-launch --exit-with-session startlxqt qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

ikmjssc commented 1 year ago

maybe termux:x11 changed their xdg runtime path. change the path in the script or in the x11 app. also chmod +x termux-x11 in chroot.

Pipetto-crypto commented 1 year ago

some errors have been fixed but still not working.

~ $ linux-deploy start -w

Initializing audio server before startup

Starting the chroot

Checking file system ... skip Mounting the container: / ... skip /proc ... skip /sys ... skip /dev ... skip /dev/shm ... skip /dev/pts ... skip :: Starting core/emulator ... skip :: Configuring core/mnt ... :: Configuring core/net ... :: Starting extra/ssh ... skip

Binding internal storage

Binding external storage

Loading binfmts entries

Installing the termux-x11 script % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --100 50 100 50 0 0 205 0 --:--:-- --:--:-- --:--:-- 205 Creating the socket Loading shared library: /data/data/com.termux/files/usr/libexec/termux-x11/starter.apk!/lib/arm64-v8a/libx11-starter.so res = 0 Activity is started Got getWaylandFD socket: Permission denied Lorie requested fd Got getLogFD {ParcelFileDescriptor: java.io.FileDescriptor@84e1f8} Got finish request App sent finishing command chmod: cannot access '/data/data/com.termux/files/usr/xwayland/wayland-0': No such file or directory Starting the Xwayland server in the chroot through the script :: Starting core/emulator ... skip :: Configuring core/mnt ... :: Configuring core/net ... Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] /bin/sh: 0: cannot open /usr/bin/termux-x11: Permission denied All preparations completed, connecting now

android@localhost's password: Linux localhost 5.4.61-qgki-g65bf499c101d #1 SMP PREEMPT Thu Aug 19 16:35:21 CST 2021 aarch64 Debian GNU/Linux 11 (bullseye) [running via Linux Deploy] Last login: Tue Oct 11 22:09:46 2022 from 127.0.0.1 $ dbus-launch --exit-with-session startlxqt qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

Try to run termux-x11 normally, does it give any error or does it create the socket as expected, aka without any permission denied error.

This may be an error related to the fact that you are using Android 11/12 since this exact same script gives me no error on Android 7

namyunseong97 commented 1 year ago

It seems to be working abnormally depending on the Android version.

Could you please give me your backup of termux setting? By executing

termux-setup-storage

AND

tar -zcf /sdcard/profile.tar.gz -C /data/data/com.termux/files ./home ./usr

Pipetto-crypto commented 1 year ago

It seems to be working abnormally depending on the Android version.

Could you please give me your backup of termux setting? By executing

termux-setup-storage

AND

tar -zcf /sdcard/profile.tar.gz -C /data/data/com.termux/files ./home ./usr

I will now try to make a backup of my prefix but depending on how big it ends up I will not be able to upload it since I have a very slow connection and if it's too big it may end up taking serveral days.

As a last resort have you done this:

echo 'allow-external-apps = true' >> ~/.termux/termux.properties termux-reload-settings

Azkali commented 1 year ago

I forked the repo, automated some stuffs, fixed X11 with newer android/termux vesions, added CI to automate the rootfs build and other changes. It is still experimental but y'all might want to take a look https://gitlab.azka.li/azkali/linux-deploy-termux-x11-debian