Questions tagged [termux]

Termux is a powerful shell environment for Android.

Filter by
Sorted by
Tagged with
1
vote
0answers
21 views

Error while installing GAP software on Termux

I am trying to install GAP on my Android phone using Termux. https://www.gap-system.org/Releases/4.11.1.html https://termux.com/ How to install the mathematical GAP-software on an Android phone? (...
1
vote
1answer
52 views

Sharing a directory between Termux and another application (PasswdSafe)

I have a Samsung Galaxy Tab A 8.0". I haven't rooted the device (and don't really want to). Until today, I was running Android 10. Today I installed an update that upgraded it to Android 11. I'm ...
0
votes
0answers
40 views

How to create an application using buildAPKs within Termux

Suppose I have application sourcecode (from github) in a tar.gz or zip file. Now how can I use the buildAPKs within Termux to turn it into an actual installable application (apk file) inside the /...
3
votes
0answers
39 views

is it possible to impose speed limit to certain device connected to my hotspot?

I have several devices connected to my android hotspot and would like to rate limit certain device from hogging the bandwidth too much. Phone is already rooted, and i've tried using built-in 'tc' ...
0
votes
0answers
36 views

Reliably set CPU Affinity

I need to benchmark the performance of every core in an Android phone, so I need to run a program exclusively on a core. Fortunately, I'm dealing with a dynamIQ chip from Qualcomm, so I think I ...
1
vote
0answers
30 views

Is there any way to call the share menu in a termux script?

I made a bash script for termux and at the end of it i want to call the share menu to send a file made by my script by whatsapp for example I really don't have any idea about how to do this. Any help ...
0
votes
0answers
30 views

Is there a way to make a short cut icon that executes a sh file in android?

I made a sh file for being executed in termux, i want to make an icon that opens termux and execute that sh file. Kind an apk icon, that when you mash it executes the program
0
votes
0answers
43 views

Cxxdroid can execute c++ binary in any internal storage directory, but Termux cannot

I was testing some c++ executable in my old smartphone (Android 8, no root). Here's the description of the problem: I have both Termux and Cxxdroid installed in that phone. And in termux, I have clang ...
1
vote
0answers
56 views

Boot Linux from stick in Termux

This question explains in detail why it's basically impossible to boot Linux from a USB stick. But I am still wondering: is it possible to load and "boot" a stick-bound Linux distro from a ...
0
votes
0answers
60 views

Put Termux environment on external SD card

Following this answer, I formated my sdcard as ext4-fs. Then tried mounting the sdcard into termux home as the link above says mount /dev/block/mmcblk1p2 /data/data/com.termux/files/home/ext4-fs I ...
0
votes
0answers
15 views

Wget cannot send post data same was as it does in laptop

I use a shell script containing the following line of code to quickly log me in to my institute's ldap server, which then grants me internet access as the process is tedious. wget --delete-after --...
1
vote
1answer
142 views

Failed installing Ubuntu using termux-ubuntu

I want to mine sugar on my Android phone. Can someone help a simple complete script, especially to complete method 1 or 2, whichever works. METHOD 1 Installed F-Droid and Termux Commands pkg install ...
2
votes
0answers
34 views

(ROOTED PHONE) Using WiFi and LTE Simultaneously

I have a rooted Google Pixel 4a and an IoT device which I connect to over WiFi. This WiFi network does not have internet connectivity and simply serves as a way to control the IoT device. I have a ...
0
votes
0answers
47 views

Emulate tsu when the device su binary doesn't support command as a parameter

The stock su binary from the semi-officially rooted Meizu smartphone (Android 7, Flyme 7) does not support passing commands as parameters (--c option) so tsu fails with an error "invalid option --...
2
votes
3answers
118 views

Termux write permissions

pretext: as gmail no longer allows me to send zip files, i have been looking into other ways to get my java source directories from android to laptop and back again, depending whether I'm at home or ...
1
vote
0answers
315 views

Is it possible to run an X Server and a window manager in TermUX

I am running the TermUX application on an Android 10 smartphone, and can type in it with my Logitech K480 keyboard. I want to run a window manager like fvwm (see fvwm.org). I have found an article on ...
0
votes
0answers
763 views

How to run tcpdump on termux?

I can have tcpdump binary installed, but my (android) OS is not rooted. So if I try to run it on termux: $tcpdump -ni any tcp and port 12345 tcpdump: wlan0: SIOCETHTOOL(ETHTOOL_GLINK) ioctl failed: ...
1
vote
0answers
56 views

Can Termux adb push file from unrooted phone to tablet via OTG cable? [duplicate]

Can I use Termux to send an app (APK file) via, e.g., adb push, from my unrooted Samsung Galaxy S10 phone to an unrooted Android 5.1.1 tablet via an OTG cable?
1
vote
1answer
224 views

Termux closes window immediately on Android 10 and 11

Since a few days I have problems with Termux on my Android devices. On a Lenovo TB-X304F running Android 8.1.0 I got: CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/bash": ...
1
vote
0answers
29 views

Connecting to a private IP over WiFi and public IP over LTE simultaneously

I'm designing an Ubuntu app for Android which is running through a Termux chroot jail. The app requires the phone to be connected to a drone through the drone's generated Wifi network. This network ...
2
votes
0answers
84 views

Opening Termux to the entire phone

I think I have a memory leak on my phone. So I installed Termux then htop via pkg. When I opened htop, I could only see two processes--what seemed to be the instance of Termux, and htop. How can I use ...
1
vote
0answers
212 views

How to make a bootable ISO from Android CLI? (via Termux or Proot-distro)

I know there are some .APK apps that do it, but none seems to work for me (but if you have any suggestions, I'll try). I have LineageOS on my PC. So, my question is How to make a bootable stick with ...
1
vote
1answer
100 views

How can I use Termux with the JuiceSSH interface?

I would like to use Termux and its package manager as a local terminal, but I cannot get used to its keyboard. The volume buttons are a poor choice IMO, as they require significant finger pressure and ...
1
vote
0answers
17 views

Termux (specifically npm) can't install in internal storage [duplicate]

Everytime I try to use NPM to install something into /storage/emulated/0/dir it would always do this: npm WARN tar EPERM: operation not permitted, futime npm WARN tar EPERM: operation not permitted, ...
0
votes
0answers
23 views

com.termux linked or mounted on SD (Root Available) [duplicate]

So I'm trying to get more space into my termux to download and use I'm trying to mount the folder onto the SD does anyone know how to already or done it? I've seen that it isn't possible but I don't ...
5
votes
3answers
3k views

Is it possible to install Docker using Termux?

I'm just tinkering with my Android tablet and was wondering if I can get Docker running on it. I've tried dkg install docker and also apt install docker both gave me unable to locate package Docker I ...
1
vote
1answer
225 views

Why can't I delete a folder in /config/sdcardfs as root (Termux)?

I'm looking to delete a folder that is in /config/sdcardfs. My device is rooted and I'm trying as superuser. I still get the results operation not permitted. What do I need to do to get the permission ...
1
vote
0answers
46 views

Using Here Documents in Termux

I'm trying to run commands in a script that needs to be run as superuser. I tried doing this with here documents but wasn't successful. ( I used to be able to use it with tsu in Termux). Does anyone ...
1
vote
1answer
601 views

Termux (Terminal) tsu is adding “(unreachable)” to my current working path

When I run tsu (which is Termux's version of su), my current working directory gets prefixed with "(unreachable)", as you can see from the transcript of my session. [u0_a116 …/~]$ tsu [root …...
0
votes
0answers
24 views

how to take android browser offline when my external ip changes?

My ISP only provides ipv4 ips dynamically. I have tracked them using a termux script and found that i can get back ips after reconnecting a couple of times. Now what I want is to restrict my browser ...
1
vote
0answers
220 views

Stop ActivityManager killing background Termux processes

I've been trying to run a ssh and a http server on my non-rooted Android phone using Termux. I've installed Termux:Boot and termux-services to run them. The server processes run for a while after I ...
0
votes
0answers
58 views

Termux messed up C++ pointer with clang compiler

Here is a simple C++ code named test.cpp to detect whether a pointer is null. #include"iostream" using namespace std; int main() { int *a; if(a!=NULL) cout<<"a ...
0
votes
0answers
27 views

Cannot access network from non-root users in terminal (Permission denied) [duplicate]

Preamble My problem is, to run specific commands (i.e., start specific processes, possibly at background) on boot. I've installed Termux, so I want to start some of its commands at boot time, such as ...
0
votes
0answers
38 views

on a termux app terminal access where should I put my own runnit service to start on phone reboot?

I wrote a simple service like this one: http://smarden.org/runit/runscripts.html#apache2 $ cat start_node_exporter #!/data/data/com.termux/files/usr/bin/sh termux-wake-lock . $PREFIX/etc/profile /...
1
vote
0answers
22 views

Port to port routing in rooted android device locally

I want to route the incoming TCP packets of one specific IP. Packet can arrive on any port on android. Packet needs to be forwarded to one specific port on the same device, Without using middleware ...
0
votes
1answer
148 views

how to identify on command line terminal emulator apps and packages that have active network connections [duplicate]

I tried this using an app and I am able to identify most apps and their network connections however there are certain apps listed as '?' so apparently it is not able to identify a package name I ...
3
votes
1answer
2k views

Can the Termux environment be put on an external SD card?

I would like to install my termux environment (usr folder) to an SD card. is this possible? I have seen this post Can I install packages to external SD card on Termux in Android?. From what I ...
0
votes
1answer
278 views

How to find the PID of an app without ADB?

The ADB method is easy enough, but I may not have a computer at hand. Can I retrieve the PID with a Termux package or an app, or any other methods (including those which require root)?
0
votes
0answers
33 views

How to Create batch SYMLinks

I'm installing legacy Termux on an Android 6.0 device. I downloaded the legacy app- and the legacy packages. There is a txt file with all the symlinks that need to be created. I'm looking for a way to ...
0
votes
1answer
176 views

Can't decrypt adopted storage [closed]

Last night, I messed up my LineageOS 16 install on my Galaxy S5 and had to reinstall it, starting essentially from scratch. I wanted to see if there was any way I could decrypt the 128 GB microSD card ...
1
vote
0answers
642 views

Termux: airmon-ng: Permission denied

I want to run airmon-ng but when I do it seems like the airmon-ng skript can't access other tools and it looks like this: % sudo airmon-ng start wlan0 /data/data/com.termux/files/usr/bin/airmon-ng: ...
0
votes
1answer
1k views

termux: running termux via adb without *any* direct interaction with the device?

I know how to open the termux app, run (for example) sv up sshd, and then interact with the Android device via ssh, rsync, etc. This is just an example, and the same is also true for any other termux ...
0
votes
0answers
70 views

How to make the kernel to also check termux bin folders

How can i make android kernel to always check termux binary folder for some binaries assuming they are not found in /system/bin ? I tried copying those binaries from termux bin folder into /system/bin ...
0
votes
0answers
151 views

Top running processes - interpretation of Termux result

Post updating a bunch of apps, I noticed high battery drain and temperature. I ran top -m 10 on Termux and the output is below Going by the CPU usage, the first app is a big culprit and was killed (...
-2
votes
1answer
192 views

Downloading file using wget in Termux fails due to the character '&' in the URL

When I simply put this URL in my Android Chrome or any web browser: https://api.worldtradingdata.com/api/v1/stock?symbol=AHT.L,AZN.L,AUTO.L,AVV.L,AV.L&api_token=...
4
votes
1answer
1k views

Insufficent rights for npm install in Termux on Android

I'm trying to install a Node.js module in a folder, for example, /data/data/com.termux/files/home/storage/shared/documents/projects/code/js/test-npm, from Termux on rooted Android 6 running npm ...
0
votes
0answers
22 views

How to SSH into my Android Phone's command prompt [duplicate]

I have a non-rooted Android phone with the Termux app installed. I can run ifconfig on the phone's terminal and see the IP address of wlan0, and I can ping the phone's IP from the terminal on my ...
0
votes
0answers
891 views

How to make a screenshot using Termux

When I am using Termux may I send a command to create and save a smartphone screenshot in /sdcard/DCIM ?
1
vote
1answer
178 views

Zombie process using termux

I am testing one of my application on android's (Android version 7.0) termux terminal emulator. I want to spawn some zombie processes. On GNU/Linux, if I open a terminal emulator and write: ruby -e '...
1
vote
0answers
660 views

dpkg does not work using Termux Ubuntu installation, returns tar errors and exits with error code 1

I have tried to use Termux to install Ubuntu on ChromeOS without developer mode or root priveleges, and was successful up to this point. I accessed an Ubuntu shell from Termux but dpkg returns this ...