nathaneltitane / dextop

Unlock the full potential of your Android device and transform it into a Linux-based workstation in minutes with Dextop! No tech expertise needed - it's user-friendly and hassle-free!
http://dextop.app
GNU General Public License v3.0
166 stars 13 forks source link

X not connected #30

Closed kstenerud closed 11 months ago

kstenerud commented 11 months ago

I installed termux and termux-x11, ran the dextop installer script, and everything seems to be okay. But when I run container-session -o x11, it opens a window with the X logo that says "Not connected".

Is there something else I need to do to get the window manager running?

nathaneltitane commented 11 months ago

Hi @kstenerud , must be an issue with termux'S package management not fetching or installing required packages properly - please delete the .dextop folder in your home directory and run the setup once again without clearing your Termux setup, this should solve the issue and you will notice that the termux-packages run will be a tad slower than on the initial run.

Please advise if it has worked.

nathaneltitane commented 11 months ago

@kstenerud P.S.: x11 is the default - no need to specify it - container-session -o suffices

kstenerud commented 11 months ago

I'll check on it tonight after work. I wonder if there's some way to make the scripts fail fast in case of a broken download?

nathaneltitane commented 11 months ago

I'll check on it tonight after work. I wonder if there's some way to make the scripts fail fast in case of a broken download?

Will see about that, i added a failsafe to use pkg instead of apt for now - but the 'fix' in the initial comment should work through the issue for now

kstenerud commented 11 months ago

I've tried deleting .dextop and re-running the install script multiple times in a row. Each time it tells me that a number of packages are absent on the system (notably a number of x11 packages and wayland, xfce, even sudo), and then proceeds to install them (I assume it succeeds because it doesn't complain). It always reinstalls the same packages every time.

And then once that's done, I get the same result as before.

I've also tried uninstalling and reinstalling termux. Same result every time.

This is on a Galaxy s23 running stock firmware.

nathaneltitane commented 11 months ago

I've tried deleting .dextop and re-running the install script multiple times in a row. Each time it tells me that a number of packages are absent on the system (notably a number of x11 packages and wayland, xfce, even sudo), and then proceeds to install them (I assume it succeeds because it doesn't complain). It always reinstalls the same packages every time.

And then once that's done, I get the same result as before.

I've also tried uninstalling and reinstalling termux. Same result every time.

This is on a Galaxy s23 running stock firmware.

investigating...

nathaneltitane commented 11 months ago

Issue caused by termux-x11 apk being out of date - pulled the new october 26th version into the project repositories - can now launch X as expected. Please manually update the apk by downloading it from the official github repository or run termux-additions and close termux again, restart with container-session -o to check

kstenerud commented 11 months ago

I tried downloading and installing app-arm64-v8a-debug.apk but no dice.

I also tried uninstalling everything (uninstalling all termux apps from my phone and then reinstalling the main termux app from https://github.com/termux/termux-app/releases/tag/v0.118.0) and reinstalling, but no dice.

I can get a desktop using https://github.com/phoenixbyrd/Termux_XFCE but not using this project :/

nathaneltitane commented 11 months ago

This is very weird :/ - I really spent several hours going through the scripts and on two devices - did a full clean reinstall to validate and only the apk was seemingly the culprit.

I will certainly dig deeper when I have a chance over the weekend - this is certainly not a dismissal :)

Thank you for elaborating.

kstenerud commented 11 months ago

I'm going to see about modifying the scripts to set -euxo pipefail on everything, just to get a list of what it actually ran and stop if anything fails.

Is run.dxtp.app serving a particular branch or tag?

nathaneltitane commented 11 months ago

I'm going to see about modifying the scripts to set -euxo pipefail on everything, just to get a list of what it actually ran and stop if anything fails.

Is run.dxtp.app serving a particular branch or tag?

Sounds good - that domain serves the main dextop script under the main branch - easier than typing a really long url

kstenerud commented 11 months ago

I tried for a few hours, but it would take a LOT of work to update the scripts to support -u, so there's no easy way to debug where unbound variables are causing bugs :/

With -e, it breaks on /data/data/com.termux/files/usr/bin/bash: line 1: architecture_intent: command not found

There are thousands of errors in the various logfiles, mostly E: Could not get lock /data/data/com.termux/files/usr/var/lib/apt/lists/lock. It is held by process 24839 (apt-get).

$ grep -r "E: " .local/var/log | wc -l
40080

grep -v filtering out the locking errors, others are:

E: The package cache file is corrupted E: Problem renaming the file /data/data/com.termux/cache/apt/srcpkgcache.bin.HWY2y6 to /data/data/com.termux/cache/apt/srcpkgcache.bin - rename (2: No such file or directory)

It almost seems like multiple apt commands are trying to run simultaneously, with catastrophic results.

nathaneltitane commented 11 months ago

I tried for a few hours, but it would take a LOT of work to update the scripts to support -u, so there's no easy way to debug where unbound variables are causing bugs :/

With -e, it breaks on /data/data/com.termux/files/usr/bin/bash: line 1: architecture_intent: command not found

There are thousands of errors in the various logfiles, mostly E: Could not get lock /data/data/com.termux/files/usr/var/lib/apt/lists/lock. It is held by process 24839 (apt-get).

$ grep -r "E: " .local/var/log | wc -l
40080

grep -v filtering out the locking errors, others are:

E: The package cache file is corrupted E: Problem renaming the file /data/data/com.termux/cache/apt/srcpkgcache.bin.HWY2y6 to /data/data/com.termux/cache/apt/srcpkgcache.bin - rename (2: No such file or directory)

It almost seems like multiple apt commands are trying to run simultaneously, with catastrophic results.

I've been investigating this for a few days and am trying to pinpoint the exact reason this is happening - it is quite distressing as the last major update (October did not show any signs of this and the installation process went through as expected on three of my devices) - I'll try and fix this asap - thank you for reporting this - I can confirm the apt lock issue and a few other derived problems on the container side as well.

nathaneltitane commented 11 months ago

@kstenerud I have looked at the issues and revamped the installation process - it seems to be working. Stale repository references and aother pkg issues unknowns seemed to have been causing problems throughout the initial phase of the installation making required packages to be installed skipped or not downloaded due tot the errors mentioned prior as well.

I will be attempting an clean install on the remainder of my devices shortly to assess the fixes.

nathaneltitane commented 11 months ago

Some termux packages still fail to install - 99% of specified packages are installed and functional. termux-am fails to open applications on call (i.e.: container-session -o does not hook termux:x11 android app to bring it to front)