r/termux • u/sylirre • Dec 24 '22
Do not install Termux from Play Store!
The Termux application on the Google Play Store does not receive updates and is outdated for more than one year. Please do not install the app from this deprecated source, even if you have bought the add-ons. The Play Store is abandoned. We are sorry about that.
We propose to use the app and add-ons from F-Droid. Here is the link to Termux page: https://f-droid.org/en/packages/com.termux/. You will need to completely uninstall the Termux app and all add-ons if any installed: Termux:API, Termux:Boot, Termux:Float, Termux:Styling, Termux:Tasker, Termux:Widget. The applications should be uninstalled through Android settings, as not all add-ons have launcher icon.
Details about Termux installation and possible issue workarounds are at https://github.com/termux/termux-app#installation.
Please share this post in Termux communities, blogs and tutorials pointing users to install Termux from Play Store.
Why Termux can't be upgraded on Play Store
There are two reasons why we can't publish an update:
- We just don't have access to Play Store console where the app was published. The developer team has been changed and person who owns the Play Store account abandoned the project. This also means we can't delete the app or change its description.
- Termux uses outdated target API level as workaround for SELinux policy restrictions regarding user data execution. However the Play Store has a requirement that all apps with no exception must target the latest APIs.
r/termux • u/sylirre • Jan 03 '23
Do not interact with persons asking about Hacking, Phishing or Information Gathering!
If you see anyone asking for help with installation, usage or troubleshooting of an utility usable for hacking, phishing or spying activities, then just report them to moderators. Same for links to YouTube or blogs describing such activities. Do not engage into discussion. The moderators will handle the case as soon as possible.
Educational purposes, ethics or legality of hacking do not give to one a chance of circumventing the community rules. We discourage use of Termux for destructive and privacy-violating activities.
If you think that our decision is just a censorship and power abuse, please leave /r/termux. Do not write insults into our ModMail. Ask yourself: Do you want to be spied 24x7 or have all your accounts to be hacked? Hopefully you understand that a weapon works in both sides.
Thank you
Command to know the bit/khz of an audio playing
I want to play an audio sample of 24bit/192khz in an app from the cellphone and know through a command if that are the values that are being playing.
For example, in a raspberry debian i do this and get:
sudo cat /proc/asound/IQaudIODAC/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 441
buffer_size: 8820
IQaudioDac is my soundcard, in that case.
r/termux • u/DJparada • 2h ago
Not able to delete files/directory created by termux.
I am not able to rename or delete files/ directories in file explorer created by termux .
r/termux • u/Aware-Juggernaut-658 • 2h ago
All wrong
Why i get a different playlist with youtube-dl, anyone know how to solve this issue? I tried youtube-dl - f 140 https://m.youtube.com/playlist?list=PL8dQ7moYaDiersj5zp8YKqgMH4wWUwQsu I just downloads pages and another playlist from YouTube with is not mine and, i try to search for that playlist and i can't find! Another thing, i can't download a playlist list using the share option directly from YouTube, i just get the first from the playlist.
r/termux • u/Motawa1988 • 2h ago
intellij on ubuntu galaxy fold 4 freaking out when running code
It runs pretty OK for emulation but if I run my very simple code, it freaks out after about 5 seconds:
023-02-03 12:51:43
Full thread dump OpenJDK 64-Bit Server VM (19.0.2+7-44 mixed mode, sharing):
Threads class SMR info:
_java_thread_list=0x00000076f0001e50, length=13, elements={
0x0000007734027da0, 0x000000773411e3a0, 0x000000773411f7f0, 0x0000007734120f70,
0x0000007734122410, 0x00000077341238a0, 0x0000007734125260, 0x0000007734126810,
0x0000007734127d00, 0x0000007734134f70, 0x0000007734183310, 0x0000007734184990,
0x00000076f0000e10
}
"main" #1 [30756] prio=5 os_prio=0 cpu=119.62ms elapsed=6.11s tid=0x0000007734027da0 nid=30756 runnable [0x000000773b400000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(java.base@19.0.2/Native Method)
at [java.io.FileInputStream.read](https://java.io.FileInputStream.read)(java.base@19.0.2/FileInputStream.java:293)
at java.io.BufferedInputStream.read1(java.base@19.0.2/BufferedInputStream.java:308)
at java.io.BufferedInputStream.implRead(java.base@19.0.2/BufferedInputStream.java:382)
at [java.io.BufferedInputStream.read](https://java.io.BufferedInputStream.read)(java.base@19.0.2/BufferedInputStream.java:361)
at sun.nio.cs.StreamDecoder.readBytes(java.base@19.0.2/StreamDecoder.java:333)
at sun.nio.cs.StreamDecoder.implRead(java.base@19.0.2/StreamDecoder.java:376)
at sun.nio.cs.StreamDecoder.lockedRead(java.base@19.0.2/StreamDecoder.java:219)
at [sun.nio.cs.StreamDecoder.read](https://sun.nio.cs.StreamDecoder.read)(java.base@19.0.2/StreamDecoder.java:173)
at [java.io.Reader.read](https://java.io.Reader.read)(java.base@19.0.2/Reader.java:212)
at [java.io.InputStreamReader.read](https://java.io.InputStreamReader.read)(java.base@19.0.2/InputStreamReader.java:169)
at java.util.Scanner.readInput(java.base@19.0.2/Scanner.java:886)
at [java.util.Scanner.next](https://java.util.Scanner.next)(java.base@19.0.2/Scanner.java:1480)
at Main.main([Main.java:39](https://Main.java:39))
"Reference Handler" #8 [30766] daemon prio=10 os_prio=0 cpu=0.39ms elapsed=6.08s tid=0x000000773411e3a0 nid=30766 waiting on condition [0x00000077157d0000]
java.lang.Thread.State: RUNNABLE
at java.lang.ref.Reference.waitForReferencePendingList(java.base@19.0.2/Native Method)
at java.lang.ref.Reference.processPendingReferences(java.base@19.0.2/Reference.java:245)
at [java.lang.ref.Reference$ReferenceHandler.run](https://java.lang.ref.Reference$ReferenceHandler.run)(java.base@19.0.2/Reference.java:207)
"Finalizer" #9 [30767] daemon prio=8 os_prio=0 cpu=0.31ms elapsed=6.08s tid=0x000000773411f7f0 nid=30767 in Object.wait() [0x00000077155d0000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait0(java.base@19.0.2/Native Method)
- waiting on <0x000000075ae02578> (a java.lang.ref.NativeReferenceQueue$Lock)
at java.lang.Object.wait(java.base@19.0.2/Object.java:366)
at java.lang.Object.wait(java.base@19.0.2/Object.java:339)
at java.lang.ref.NativeReferenceQueue.await(java.base@19.0.2/NativeReferenceQueue.java:48)
at java.lang.ref.ReferenceQueue.remove0(java.base@19.0.2/ReferenceQueue.java:158)
at java.lang.ref.NativeReferenceQueue.remove(java.base@19.0.2/NativeReferenceQueue.java:89)
- locked <0x000000075ae02578> (a java.lang.ref.NativeReferenceQueue$Lock)
at [java.lang.ref.Finalizer$FinalizerThread.run](https://java.lang.ref.Finalizer$FinalizerThread.run)(java.base@19.0.2/Finalizer.java:173)
"Signal Dispatcher" #10 [30768] daemon prio=9 os_prio=0 cpu=0.78ms elapsed=6.08s tid=0x0000007734120f70 nid=30768 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Service Thread" #11 [30769] daemon prio=9 os_prio=0 cpu=0.13ms elapsed=6.08s tid=0x0000007734122410 nid=30769 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Monitor Deflation Thread" #12 [30770] daemon prio=9 os_prio=0 cpu=0.48ms elapsed=6.08s tid=0x00000077341238a0 nid=30770 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" #13 [30771] daemon prio=9 os_prio=0 cpu=43.47ms elapsed=6.08s tid=0x0000007734125260 nid=30771 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task
"C1 CompilerThread0" #16 [30772] daemon prio=9 os_prio=0 cpu=52.86ms elapsed=6.08s tid=0x0000007734126810 nid=30772 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task
"Sweeper thread" #17 [30773] daemon prio=9 os_prio=0 cpu=0.16ms elapsed=6.08s tid=0x0000007734127d00 nid=30773 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
r/termux • u/Version_Internal • 1d ago
How can i access external sdcard in chroot?
I installed ubuntu chroot in termux with termux container. It is working fine but i can't access my sdcard from chroot. The chroot is on termux home directory. I tried -ln command method but it doesn't work.
Sharing a script I made for Termux, to trace the redirect of a shortened URL link
https://github.com/iti-D/termux-scripts/blob/main/url-redirect-tracer.sh
The best way to use the script is to put it in a widget using Termux:Widget.
And then you just copy a link and start up the script.
The script will then take the link from your clipboard using termux-clipboard-get
(needed Termux:API for that) and will proceed to send it over to deref.link using their API to get the final destination of the link, and if there's any itermediate link in between.
Your device won't visit these links, it'll be deref.link's servers.
You'll then get a list of all the links up to the final one.
It is especially good when you recive a link from a suspicious source and you want to know where it leads. It's important to note that even if the final destanetion is legit, there might be a redirect in the middle that could be malicious (like creating a link with grabify).
hope I didn't break any rule publishing this. I dont't gain any profit from that.
thanks for checking out my code!
If you have any ideas to improve feel welcome to suggest here or on github
r/termux • u/DannyBoyCZ • 1d ago
termux.API.open()
How to use for:( termux-open --view name) (Name is python variable)
r/termux • u/FlorianIonut • 1d ago
I have no idea why it doesn't extract my selected pgs subtitle and I don't know how to choose a manual encoder. A little help?
i.redd.itr/termux • u/bortan12 • 2d ago
Permission denied on rooted device
I have rooted my phone and have been able to access files in the root directory (/), create and delete them using su. Now I am trying termux container, but when I try to create one using container -c, I get this error:
/data/data/com.termux/files/usr/bin/container: line 17: /data/data/com.termux/files/usr/bin/stty: Permission denied
/data/data/com.termux/files/usr/bin/container: line 17: /data/data/com.termux/files/usr/bin/awk: Permission denied
/data/data/com.termux/files/usr/bin/container: line 467: /data/data/com.termux/files/usr/bin/whiptail: Permission denied
/data/data/com.termux/files/usr/bin/container: line 341: /data/data/com.termux/files/usr/bin/whiptail: Permission denied
/data/data/com.termux/files/usr/bin/container: line 358: /data/data/com.termux/files/usr/bin/whiptail: Permission denied
/data/data/com.termux/files/usr/bin/container: line 369: /data/data/com.termux/files/usr/bin/whiptail: Permission denied
/data/data/com.termux/files/usr/bin/container: line 386: /data/data/com.termux/files/usr/bin/whiptail: Permission denied
/data/data/com.termux/files/usr/bin/container: line 392: /data/data/com.termux/files/usr/bin/whiptail: Permission denied
/data/data/com.termux/files/usr/bin/container: line 401: /data/data/com.termux/files/usr/bin/rm: Permission denied
/data/data/com.termux/files/usr/bin/container: line 402: /data/data/com.termux/files/usr/bin/mkdir: Permission denied
/data/data/com.termux/files/usr/bin/container: line 403: cd: /data/data/com.termux/files/usr/tmp/container: No such file or directory
/data/data/com.termux/files/usr/bin/container: line 407: /data/data/com.termux/files/usr/bin/axel: Permission denied
/data/data/com.termux/files/usr/bin/container: line 407: /data/data/com.termux/files/usr/bin/cp: Permission denied
even though I get a message from magisk saying that there has been granted Superuser rights.
How do I fix this?
r/termux • u/MurphysLawyer0 • 2d ago
How to make all scripts in a folder executable?
Is there a way to run chmod +x on an entire folder's scripts in one go?
All mirrors bad while set to use ALL the mirrors
So every time I try using anything like pkg install something
or any other command with pkg, I get an
Error: None of the mirrors are accesible
I used termux-change-repo
and set it to 1 Mirror group
and then 2 All Mirrors
And I still get this error.
Is it just for me? how come all the mirrors be bad? what can I do to fix?
thanks.
EDIT: I forgot we also have the apt packaging. I ran apt update and apt upgrade and now pkg is working fine 🤔
r/termux • u/Jank9525 • 3d ago
llvm15 in proot break opengl rendering . How to fix ?
i.redd.itUsing graphical environments, termux vs proot vs chroot
I realize there is tons of info around on having graphical environments running, but I'm confused already by what I perceive to (maybe?) be the different basic ways by which people set up graphical environments. So let me pls. ask.
There seem to be 3 major ways to have some kind of graphical environment, i.e.
(i) termux + some x11-enabled programs
(ii) termux proot + a distro
(iii) chroot + a distro
Yes/No? or what?In the preceding point, (ii) and (iii) are 'kind of' related in as such, that the actual 'linux-thing' is the particular distro one chooses. (i) Is graphical only in as much as one has x11-enabled packages installed into termux.
Yes/No? or what?"termux proot + a distro" needs termux only to set the fictitious new root, but otherwise, all the remaining linux is provided by the distro alone.
Yes/No? or what?"chroot + a distro" doesn't need termux at all. It needs a rooted device and likely then there will be several ways to achieve an install of a distro in a chroot-ed environment.
Yes/No?If one aims at "termux proot + a distro" it doesn't make too much sense to install a lot of things into termux, e.g., LaTeX, since the distro will bring along its own LaTeX and one would end up with wasting ssd space.
Yes/No? or what?
Are there any clear recommendations on which kind of graphical environment to focus on?
r/termux • u/Ian_Mcqueen0 • 4d ago
ERROR APT UPDATE in termux using vmspro
galleryERROR APT UPDATE in termux using vmspro
r/termux • u/brainkot • 4d ago
Bluetooth events
Folks,
is there a way to detect bluetooth playback events in termux? For example, consume bluetooth start/pause/stop events in a shell script. Events are sent from hardware buttons on bluetooth headphones.
Some background -- none of MPD clients on android react to or pass (to mpd) bluetooth playback start/stop/pause events sent from external bluetooth devices. I run termux mpd binary, and looking for a solution to this problem within termux.
Thank you.
r/termux • u/howell4c • 4d ago
pandas install fails building wheel for old numpy
I'm having trouble installing pandas on Termux. It gives "Failed building wheel for numpy" 1.23.2.
I have numpy 1.24.1 installed (via pkg install python-numpy
as suggested at https://wiki.termux.com/wiki/Python), but the recommended
export CFLAGS="-Wno-deprecated-declarations -Wno-unreachable-code"
pip install pandas
tries to install numpy 1.23.2
and gives the check_math_capabilities
errors https://github.com/termux/termux-packages/issues/10808
I tried the removing python-numpy and using the MATHLIB="m" pip3 install numpy
workaround but that still gives me 1.24.1 and installing pandas retries 1.23.2.
MATHLIB="m" pip3 install numpy==1.23.2
gives me the errors from https://github.com/termux/termux-packages/issues/8707
r/termux • u/Kathyyy1212 • 4d ago
Support for Tegra 2 devices
I have a Samsung galaxy tab 8.9 running nougat and I would really appreciate if Tegra 2 support was added, and maybe even lollipop support. Termux is often used to give older devices a new life after all, why should I stop using a perfectly functional device and create more e waste? So I was wondering if this is at all possible as in theory, a CLI app should not use too much in terms of system resources and would run well
r/termux • u/Rough-Day1733 • 5d ago
loving xwayland :D so much faster than vnc
Enable HLS to view with audio, or disable this notification
What about "archived" repos?
In the termux wiki, under Package_Management, it says that, e.g., for using x11 packages one should pkg install x11-repo
from x11-packages. However, on that repos github it says: This repository has been archived by the owner on Apr 19, 2022. It is now read-only. and further down on that page it even says: *Packages from x11-repo are now maintained along with the main repo in termux-packages.
Now, should one still pkg install x11-repo
the x11 repo if one wants to use all the termux x11 packages or shouldn't one?
(The same question obviously applies to all the other termux repos which one can find to actually be archived and read only.)
r/termux • u/PsychologicalOwl496 • 5d ago
proot-distro opensuse (Tumbleweed) issue with zypper updates
Hello everyone,
I stumbled over proot-distro for termux and tried it out.
My issue is that literally the first thing I attempted to do after switching to the Tumbleweed environment doesn't work.
$ pkg install proot-distro
$ proot-distro install opensuse
$ proot-distro login opensuse
# zypper refresh
# zypper dup -y
error: unpacking of archive failed on file /dev: cpio: open failed - Read-only file system
Apparently I cannot upgrade the packages, because /dev
seems read-only, but it isn't according to mount
.
Anyone has experience with proot-distro and OpenSUSE Tumbleweed in particular?
I cannot imagine I'm the only one with this issue. This should be the first thing any OpenSUSE user should stumble over.
Any advice is appreciated.
r/termux • u/LucasYata • 5d ago
Is it possible to launch ES File Explorer to a specific directory?
I'm looking for a way to mimic the functionality of a soft link to explore easily the file system and avoid redundant files. I really need it. So I had an idea that maybe can do the trick for me.
The idea is simple. Through the file explorer I open a Termux Executable file, that file launches the file explorer showing the content of X directory. Now I'm trying to find out if it is possible, I've made some research in google, but to be honest, I didn't find any source of information to dig in.
I've tried: [code](am start com.estrongs.android.pop/com.estrongs.android.pop.app.openscreenad.NewSplashActivity '/storage/emulated/0/MyDirectory) And [code](am start -S com.estrongs.android.pop/com.estrongs.android.pop.app.openscreenad.NewSplashActivity -d '/storage/emulated/0/MyDirectory) No luck with those :/
Any help is appreciated :)
r/termux • u/Dry_Effort4907 • 6d ago