termux-boot icon indicating copy to clipboard operation
termux-boot copied to clipboard

The usual problem - I can't get Termux:Boot to work at all (but it used to).

Open chrisisbd opened this issue 10 months ago • 5 comments

I'm running Termux on an Umidigi Bison Android 11 phone.

It (as in the phone) threw a wobbly a few days ago and I had to reset to factory defaults and thus reinstall apps (fortunately not many).

Having reinstalled both Termux and Termux:boot from F-Droid I can't get Termux:Boot to work for me. Termux is fine and I can start both the things I want to start (sshd and syncthing) OK manually. I can simply run ~/.termux/boot/rc.local and the things in rc.local start OK.

As I said it all used to work OK so I guess I must just have not done something necessary but I can't see what at the moment.

When the instructions say 'run Termux:Boot' does that simply mean clicking on the Termux:Boot icon so that the description appears? I've done that. In the 'About' section for Termux it confirms that both Termux and Termux:Boot have been installed from F-Droid and they have the same certificate key etc.

So, what might be wrong and how can I diagnose things?

chrisisbd avatar Feb 17 '25 14:02 chrisisbd

Ah, maybe I have misunderstood what's supposed to happen.

If I run termux on the phone (i.e. bring up a terminal window) then sshd and syncthing get started. Is this what's supposed to happen? ... or should they have got started regardless of whether I run Termux?

chrisisbd avatar Feb 17 '25 14:02 chrisisbd

What does ~/.termux/boot/rc.local contain? Make sure it has a working shebang. Is the exe bit set on the script?

It should run when android declares that device boot is done, and that might be up to a minute or so after you have already unlocked and started using the device

Grimler91 avatar Feb 17 '25 15:02 Grimler91

See below:-

u0_a165@bison$ pwd
/data/data/com.termux/files/home/.termux/boot
u0_a165@bison$ ls -l
total 8
-rwxrwxr-x. 1 u0_a165 u0_a165 118 Nov 27  2023 rc.local
u0_a165@bison$ more rc.local
#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
sshd
syncthing -no-browser -logflags=3 >~/tmp/syncthing.log
u0_a165@bison$ 

That all looks about right to me.

I'll try waiting longer after firing up my phone. However I'm confused as to why it runs when I start Termux but appears not to run otherwise.

chrisisbd avatar Feb 17 '25 15:02 chrisisbd

Enable AutoStart for temrux and boot app in android settings.

https://dontkillmyapp.com/

agnostic-apollo avatar Feb 17 '25 16:02 agnostic-apollo

Bonjour,
Oui c'est ça que j'ai relevé : Same issue here on Android 15. Termux:Boot installs but doesn't launch at boot. No error, just silent failure. Installed via F-Droid. Any workaround?

J’ai téléchargé Termux:Boot via F-Droid sur Android 15. L’installation reste bloquée : pas de bouton “Installer”, redirection vers la documentation. J’ai désactivé Play Protect, autorisé les sources inconnues, mais rien n’y fait.

innoecotech-code avatar Nov 09 '25 20:11 innoecotech-code