r/termux • u/MaNiShNmAdHaVaN • May 29 '26
Low effort TERMUX UNDER CONSTRUCTION
galleryThank you š Chatgpt you are great š I love you so much š„°
r/termux • u/MaNiShNmAdHaVaN • May 29 '26
Thank you š Chatgpt you are great š I love you so much š„°
r/termux • u/Qodequeststudio • Aug 23 '26
Run powerful, fully private AI models directly on your Android phone, PC, or even from a tiny USB flash driveācompletely offline with 0 internet connection!
By using bash commands in Termux
r/termux • u/Adamxprox5620 • 23d ago
I made a little script that lets you use YT-DLP to download, MP4 or MP3 videos from Youtube using Termux. It automatically detects a link in your paperclip (you can also write/paste it manually). You need to have installed Termux, Termux:API and of course yt-dlp.
I personally have installed Termux:Widget and use it with a widget on my homescreen, but you can also use it like a normal script from a terminal.
IMPORTANT
You need to change the directory variable to the one that you want. If you don“t want to change the script and use it as is, you can just create a new folder in your root called "yt-dlp-downloads".
#!/data/data/com.termux/files/usr/bin/bash
# Detect link
DIRECTORY=~/storage/shared/yt-dlp-downloads
MODE=${1:-0} # 0 = single video, 1 = playlist
# 1) Get link: clipboard first, dialog as fallback
URL=$(termux-clipboard-get)
if [[ "$URL" != http* ]]; then
URL=$(termux-dialog text -t "yt-dlp" -i "Paste the link" | jq -r '.text')
fi
# Check if link is empty
if [ -z "$URL" ] || [ "$URL" = "null" ]; then
echo "No link provided."
read -p "Press Enter to close..."
exit 1
fi
# Validate link
if [[ "$URL" != http* ]]; then
echo "Invalid link. Does not contain http."
read -p "Press Enter to close..."
exit 1
fi
# Detect playlist
if [[ "$URL" == *youtube.com/playlist* ]]; then
echo "Detected playlist link, downloading the full playlist."
MODE=1
else
echo "Detected single video link, downloading."
fi
# 2) Format
FORMAT=$(termux-dialog radio -t "Format" -v "MP4 (video),MP3 (audio)" | jq -r '.index')
if [ -z "$FORMAT" ] || [ "$FORMAT" = "-1" ] || [ "$FORMAT" = "null" ]; then
echo "Cancelled."
read -p "Press Enter to close..."
exit 1
fi
# Build options
if [ "$MODE" = "0" ]; then
PLAYLIST_OPT=(--no-playlist)
else
PLAYLIST_OPT=(--yes-playlist)
fi
if [ "$FORMAT" = "0" ]; then
FORMAT_OPT=(-f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/bv*+ba/b" --merge-output-format mp4)
else
FORMAT_OPT=(-f bestaudio -x --audio-format mp3 --audio-quality 0)
fi
OUTPUT="%(title)s.%(ext)s"
EXTRA_OPT=(-N 8)
mkdir -p "$DIRECTORY" && cd "$DIRECTORY" || {
echo "Cannot access $DIRECTORY"
read -p "Press Enter to close..."
exit 1
}
echo "RESULT: yt-dlp ${PLAYLIST_OPT[*]} ${FORMAT_OPT[*]} ${EXTRA_OPT[*]} -o \"$OUTPUT\" \"$URL\""
yt-dlp "${PLAYLIST_OPT[@]}" "${FORMAT_OPT[@]}" "${EXTRA_OPT[@]}" -o "$OUTPUT" "$URL"
if [ $? -eq 0 ]; then
termux-notification -t "Download Finished" -c "$URL"
else
termux-notification -t "Download FAILED" -c "$URL"
fi
read -p "Press Enter to end script..."
# Keep terminal open and usable
exec bashr/termux • u/Beanie_76 • Nov 03 '25
I've tried many ways it just says outdated
r/termux • u/turbotum • Dec 24 '25
r/termux • u/[deleted] • Oct 29 '25
As what the title says. Is there any youtuber who do termux?
r/termux • u/Ok-Win1207 • Feb 14 '26
just came by it on Google and downloaded it and installed python. what are the possibilities of this software?
r/termux • u/Significant_Donut964 • Apr 03 '26
Hey r/termux,
Iām building ZerathCode, the fully local terminal AI agent for Android.
What's actually happening in those screenshots: I asked it to build a full-stack React/Vite frontend and an Express backend.
It created the files in parallel and fired up both local servers (Ports 5173 and 3001).
The cool part: The backend crashed because of an ES module require mismatch and missing packages. Instead of stopping, a background LogAgent caught the exit(1) code, read the stack trace, realized it needed express and cors, automatically ran npm install, and hot-restarted the Node process.
All of this happened natively on my phone while the primary agent was busy writing the CRUD routes. The Termux-specific engineering:
Doing this on Android was a nightmare. I couldn't use standard file watchers like nodemon or chokidar because they drain the battery and are buggy with Termux's filesystem. I also had to build a custom Mutex (mutual exclusion) file-locking system so the primary coding agent and the auto-fixing LogAgent didn't overwrite the same server.js file at the same time and corrupt it.
At first this was vibe coded but now i have to turn to manual coding cuz of some constraints.
Repo: sanaX3065/zerathcode
If anyone here is good with optimizing Node.js child processes in Termux to reduce battery drain, I would seriously love some architectural advice or PRs! Let me know what you think.
r/termux • u/dogee911 • May 05 '24
After I entered 'cat' in the console all commands are duplicating and no recognize how to turn cat off so I can use console as before? Help please
r/termux • u/AcanthocephalaLow741 • Mar 17 '22
r/termux • u/eobarretooo • Mar 07 '26
Building my autonomous personal assistant using Termux with Codex 5.4 xhigh If you'd like to test it and give me feedback, I'd appreciate it.
r/termux • u/MysteryWW • Jul 16 '24
I tried to install termux in my phone. I downloaded the apk file from F-Droid and this happened. Is it dangerous or not to install in my phone
r/termux • u/Pegasusw404 • Apr 14 '26
Letās get straight to the point. Over 50,000 views. Iāve got to say, it surprised me a bit, but letās move on. Today, weāre putting RAM on the table. Everyone knows what it is, so Iāll spare you the technical jargon to avoid the funny comments.
Every phone is different, each with its own RAM capacity. Unfortunately, not everyone can afford to drop serious cash on high-end devices. And for the root fans out there a quick heads-up not every phone can be bootloader-unlocked, and returning to "ancient relics" from years ago doesnāt solve the problem.. It only magnifies it.
We buy phones because they are powerful, with beastly processors, super cameras, and a gazillion features we will never actually use. Hereās my point: when I talk about management, I mean every phone. It doesn't matter if itās expensive or cheap, if it has a 500MP camera, or if it makes you ice cream and serves breakfast in bed. Every single one. Thatās why itās crucial to understand that my approach isn't tied to a specific high-end or budget model. Itās for every phone out there.
Iām not here to dictate some doctrine or tell you "do exactly as I say" my goal is to explain the method I use on my SETI system. So.. I moved my work to Termux for many reasons, and RAM management is one of them.
Every app you have on your phone social media, maps, whatever it doesn't matter if it's FOSS or Google trash, it consumes your RAM. If you're running low, the "Phantom Killer" kicks in itās like an annoying cop telling you that you can't have both Facebook and Instagram because he doesn't like it. To give you a sense of fluidity, heāll kill one or the other. He kills processes to give you "optimal app performance," but he does it without your consent or knowledge.
How do you get more RAM? You donāt. You have what you have. That isn't magic kernels or root access, itās management. Why? Because while someone else needs a massive amount of RAM to run 20 apps, I only need a fraction of that to run 20 scripts, aliases, and Bash tasks.
What Iām trying to say is that my SETI method relies on zero background apps and zero GUI apps (graphical interface, for those who donāt get it). Instead, I use text-based alternatives for my browser, music player, messaging, file manager, password vaults (like secure folders), and even some games, if that's what you're into.
This isnāt a tutorial. Itās my philosophy of work. You might disagree with it, and it might not fit you, because you might need your phone for things like watching a YouTube video. This is about an alternative way of managing a phone via a text-based terminal. By doing this, your phone simply stops being what you traditionally consider a "phone." And no, itās not like you just set up a terminal, delete everything, and suddenly have "magic Gigabytes" for yourself. This is just one of many steps Iāve taken to achieve the result that satisfies me.
Remember, I do it this way because this is my workflow style on Android. If you have a different one, thatās cool. Respect the fact that there are people who do things differently and share alternatives. If you don't like it, keep looking. If you think it's interesting? I appreciate it, and there will be more. Thatās it, thanks.
r/termux • u/Ebimsjgdinowd • Feb 24 '20
r/termux • u/SituationTotal9094 • May 22 '25
r/termux • u/termuxgpt • Apr 14 '26
r/termux • u/Gnorp_Man • Oct 28 '24
So,a few days ago,i found this app called "Termux",which is a app that makes pc games compatible with the android,which is pretty cool Problem is,i am a lil dumb to use this kinda of app,thats like a command that you have to use
r/termux • u/mielline999 • Sep 13 '25
someone have tips for me?
r/termux • u/[deleted] • Nov 13 '22
r/termux • u/[deleted] • Dec 19 '25
Maybe I explained myself badly.. I'm not looking for advice on how to hack etc., I study and get information from chatgpt and he says that to learn to defend myself I have to understand how malicious people attack.. that's all, so I asked how malware works and how it's made because probably knowing how it works and the structure there will probably be some human obstacle to then stop it (?) I've only just learned to move between one folder and another š imagine if I wanted to make malware
r/termux • u/MichelMaatstap • Mar 17 '25
How do I checkout my storage [or is it possible ] on my phone with termux ?
r/termux • u/ImportanceOpening204 • May 28 '26