ClementTsang / bottom

Yet another cross-platform graphical process/system monitor.
https://clementtsang.github.io/bottom
MIT License
10.15k stars 239 forks source link

Termux: unrooted device installation #1614

Open b9Joker108 opened 2 weeks ago

b9Joker108 commented 2 weeks ago

Checklist

What operating system and version are you using?

Linux localhost 5.15.123-android13-8-28577532-abX910XXS4BXG5 #1 SMP PREEMPT Thu Jul 11 02:48:07 UTC 2024 aarch64 Android

What architecture are you using?

arm64

What terminal(s) are you running bottom on that are experiencing the problem?

❯ termux-info
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=15504
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://gnlug.org/pub/termux/termux-main stable main
# sources.list.d/pointless.list
deb https://its-pointless.github.io/files/21 termux extras
# sources.list.d/ivam3-termux-packages.list
deb [trusted=yes arch=all] https://ivam3.github.io/termux-packages stable extras
# x11-repo (sources.list.d/x11.list)
deb https://gnlug.org/pub/termux/termux-x11 x11 main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# root-repo (sources.list.d/root.list)
deb https://gnlug.org/pub/termux/termux-root root stable
# sources.list.d/rendiix.list
deb https://rendiix.github.io android-tools termux
Updatable packages:
docker/root 1:24.0.6-3 aarch64 [upgradable from: 1:24.0.6-2]
libpaper/stable 2.2.5-1 aarch64 [upgradable from: 2.2.5]
libseat/stable 0.9.0 aarch64 [upgradable from: 0.8.0]
parallel/stable 20241022 all [upgradable from: 20240922]
vtm/stable 0.9.99.27 aarch64 [upgradable from: 0.9.99.26]
termux-tools version:
1.44.1
Android version:
14
Kernel build information:
Linux localhost 5.15.123-android13-8-28577532-abX910XXS4BXG5 #1 SMP PREEMPT Thu Jul 11 02:48:07 UTC 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-X910
LD Variables:
LD_LIBRARY_PATH=:/data/data/com.termux/files/home/install/lib:/data/data/com.termux/files/home/install/lib
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.widget versionCode:13
com.termux.x11 versionCode:14
com.termux.api versionCode:51
com.termux.window versionCode:15
com.termux.styling versionCode:1000

None of the indicators are working except for processes: 🤕

What filesystem(s) are you using?

Other (please specify in the Additional Information area at the end)"

What version of bottom are you running?

bottom 0.10.2

How did you install bottom?

In Termux with:

cargo install --no-default-features starship
cargo install --no-default-features bottom

Describe the issue

btm is executing, but most of the indicators are flatlining/dead and show no activity except for the enumerated processes. Is this functionality sacrificed through the switches/flags used in the installation?

What is the expected behaviour?

I am trying to find a visually pleasing and modern process monitor implementation for my Termux host environment of my unrooted Android device, but am having much difficulty. I just want the process monitor to work!

What is the actual behaviour?

All the indicators, except for processes proper, are static and not indicating anything.

How can we reproduce this?

  1. pkg upd && pkg upg
  2. cargo install --no-default-features starship
  3. cargo install --no-default-features bottom
  4. btm --version
  5. btm --help
  6. btm

Additional information

I determined the filesystem of f2fs with:

❯ stat -f .
  File: "."
    ID: fe3a00000000 Namelen: 255     Type: f2fs
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 246089719  Free: 142609087  Available: 142576319
Inodes: Total: 9784317    Free: 3517997
ClementTsang commented 1 week ago

Hmm... I remember it working (paritally) on a non-rooted device last I tried. I can check again later though.