Questions tagged [termux]

Termux is a powerful shell environment for Android.

Filter by
Sorted by
Tagged with
1
vote
0answers
30 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
38 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
14 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
37 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
26 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
31 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
80 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
62 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
273 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
48 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
169 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
25 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
52 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
100 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
48 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
16 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
22 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 ...
4
votes
3answers
2k 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
155 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
37 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
398 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
23 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
150 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
40 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
25 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
28 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
20 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
108 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 ...
2
votes
1answer
1k 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
177 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
150 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 ...
0
votes
0answers
32 views

Using an Android emulator with termux, how do I expose the emulator to gps services so I can add gps data to apps like WigLE WiFi?

I working on a problem of using an Android emulator on a PC to use the NIC like as if the NIC's are attached to emulator itself to do packet injection and other things. I almost have that beat but ...
1
vote
0answers
482 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
0answers
99 views

So many Wifi interfaces on PixelExperience

When I try to connect WiFi the system crash and don't connect. Then I type ip link to show iterfaces on termux and so many interfaces is shown. What was returned: mode DEFAULT group default qlen 1 ...
0
votes
1answer
779 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
557 views

How to setup a VPN server on Android?

I'm trying to create a VPN server on Android. It can be any protocol, including PPTP, L2TP/IPSEC/OpenVPN, etc. I tried it with Termux + AnLinux + CentOS, but I can't get it to work. Is there any way,...
0
votes
0answers
60 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
111 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
172 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
900 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
723 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
161 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
608 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 ...
5
votes
1answer
3k views

How do I access `$HOME/storage` outside of Termux (with a file explorer)?

How do I access $HOME/storage Termux directory on Android Pie with a GUI File Explorer? In Termux I print the working directory with pwd and it shows $HOME/storage as: /data/data/com.termux/files/...
1
vote
1answer
315 views

ssh to termux server disconnects after X seconds

I upgraded termux recently. When I do: ssh phone it disconnects after 44 seconds. It disconnects even if there is activity in the session (eg. ping google.com). If I am active in termux using the ...
0
votes
1answer
496 views

External keyboard and ESC key on Android

https://www.logitech.com/en-hk/product/k580-multi-device-wireless-keyboard This bluetooth keyboard (probably many others) has the back tick ` and Esc keys on it. Will these ` and Esc work on Android ...
1
vote
2answers
2k views

How to grant an app a permission that isn't in its manifest for audio recording?

Non rooted Moto G6 Play running Android 9. I'm using Termux and would like to use Sox's rec command to record audio from the terminal. Unfortunately, since Termux doesn't request the mic permission, ...
1
vote
0answers
71 views

Does Termux call fork/exec system calls in Android?

There are tutorials (e.g., this and this) that use Termux to compile and run cpp codes in Android. Does Termux run fork/exec system calls and start running the program's main function? More generally, ...