Termux

T

Termux

Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required.

Join

lighttpd always shows 403 Forbidden

I've installed lighttpd and termux-services. I've got a basic HTML page at /data/data/com.termux/files/usr/var/www/index.html and have set server.document-root = "/data/data/com.termux/files/usr/var/www/" and server.port = 8080 in the lighttpd.conf When I browse to http://localhost:8080 on the phone, or the phone's IP:8080 on LAN I get "403 Forbidden". That definitely comes from the lighttpd process, as when I sv stop lighttpd then I don't get any response. The files have permissions 644 and all directories back to /data/data/ have permissions 755 with the same username that is running Termux. I've tried using a directory on /storage/emulated/0/www and a directory off home, with the same result....
Solution:
seems like you need to also put /index.html to the address on your browser

2 questions about termux

It all started when I tried to delete a folder inside Android/data, but i got the error "Permision Denied" so I tried Shizuku + Termux to delete it, I set it up and run the command "rm -rf [folder]" but I also got "Permission denied" (First image), so I searched a little and saw that I should've used the "termux-setup-storage" command, so i went and used, but I got a text (image 2) and I got afraid that typing "Y" would erase all my data (even if it's saying that will not be deleted). So I'm her...
No description

Theeming extra keys

Can anyone help me with changing the extra keys color in termux. I know about the termux styling app but that doesn't work for extra keys thing. I tried editing the apk which worked but after I click on the buttons the button became black again.

Pls help

Please help me. I'm a new user and I'm having this problem and I don't know how to fix it....
Solution:
&& is a command separator. It's running pkg update, and if that's successful it'll try running pkg upgrade, there is no command separator after this so the rest of the command line is passed as arguments to pkg. It knows what to do with pkg upgrade but the rest it treats like package names, and it obviously can't find a pkg package, or an install package, so it throws errors for those. Just run your commands one at a time....
No description

Valgrind package in repo

Clang for development is already in repo, why not add memory debugging, if will, does su needed?

Unable to upgrade termux-tools

I made a cleanup of packages long ago and haven't upgraded packages since, and now while attempting to, I get this strange error and only with termux-tools package. Any idea how can I fix it? Would reinstalling the bootstrap packages work and if so, how can I do that without deleting Termux data?
No description

pip can't build pycares. How can I substitute `getservbyport_r()`?

I don't have much to add except that NetBSD also lacks this function. Here's the error excerpt ``` deps/c-ares/src/lib/ares_getnameinfo.c:300:15: error: call to undeclared function 'getservbyport_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 300 | if (getservbyport_r(port, proto, &se, (void *)tmpbuf, | ^...
Solution:
for me it works, and this is reportedly a very old error that only affects old versions of pycares.

termux-x11 crashing(?)

I asked chat gpt to get around somethings and it worked and i even downloaded firefox and all but after two minutes it crashes and logs off proot, I included the logs from termux hope it helps. gpt is dump...
Solution:
Phantom Process Killing 📱 🔫 👻 Termux being randomly killed and displaying [Process completed (signal 9) - press Enter] is a known problem. It is caused by an Android battery optimization called the phantom process killer. - More information about the issue: https://github.com/termux/termux-app/issues/2366 - Potential solutions...

Fastfetch spits out `bad system call`.

Hi, I had an issue after updating all packages on termux, whenever I use fastfetch it spits out bad system call fastfetch
No description

Unable to install certain tree-sitter packages from pypi

if i try to install tree-sitter-markdown, tree-sitter-json, tree-sitter-toml, tree-sitter-yaml, tree-sitter-html, tree-sitter-rust, tree-sitter-xml or tree-sitter-java from pypi, it just fails (also is it possible to get python 3.13 on termux?)...

Unable to update and upgrade my repos

I got this error message file or directory) E: Failed to fetch https://mirrors.cbrx.io/apt/termux/termux-main/pool/main/u/unzip/unzip_6.0-10_aarch64.deb Could not open file /data/data/com.termux/cache/apt/archives/partial/unzip_6.0-10_aarch64.deb - open (2: No such file or directory)...

"function not implemented" occured when running ls

Can anyone help me with this output. "ls: cannot access <folder/file/*>: Function not implemented", the output did shown after apt uprade not sure what package it did
Solution:
Strace logs all the syscalls a program is making. So old ls tried to use the statx() syscall. Introduced in Kernel version 4.11.0 https://man7.org/linux/man-pages/man2/statx.2.html...
No description

[to mods regarding discord management] How is your current experience with AnswerOverflow?

Hey! I saw this forum AnswerOverflow for syncing threads. Curious how the community / moderators enjoy using AnswerOverflow? Is there anything about your current setup (commands, customization, UI, etc.) you’d like improved?...

Error installing build-essential on Ubuntu (AnLinux) inside Termux (Android 5, legacy version)

I’m running a legacy version of Termux (the last one available for Android 5). I installed Ubuntu using the script provided by AnLinux, and I can enter the environment successfully using: ./start-ubuntu.sh However, when I try to install build-essential with: apt-get install -y build-essential I get this error: error while loading shared libraries: libm.so.6: cannot stat shared object: operation not permitted...

I got leveled up from a beginner to an amateur.

after some help from "deepseek" I managed to run Ubuntu on my phone (I used the termux-x11 way). what should I do next after that. it was more like a challenge more than a necessity. can someone give more goals like customizations, themes and yeah let me don't forget how I can play with it....

Help

Hello, everyone i am trying to launch a python code using termux i have already installed the required libraries for that code but still after launching the code it gives the error module not found.

a

RWRAP_ERROR[php (18961)] - _rwrap_bind_symbol: Failed to find __res_ninit: libdl.a is a stub --- use libdl.so instead

[HELP] Tailwind CSS fails to initialize on Termux

Tailwind CSS packages install successfully, but initialization fails likely due to ARM architecture incompatibility on Termux (Android 13, Node.js v24.7.0, npm v11.5.1). First attempt with direct node call: ``` >> node node_modules/tailwindcss/lib/cli.js init -p...

Quick question

1-How many termux version there are? 2-is it make any difference?...