Questions tagged [termux]

Termux is a powerful shell environment for Android.

Filter by
Sorted by
Tagged with
44
votes
7answers
173k views

Where is the folder that Termux defaults to?

The Termux app is a terminal emulator. If I create a file or a folder there, and then use another file explorer app to browse my device, where can I find these files?
22
votes
2answers
119k views

Termux - How do I create a directory of files accessible outside of Termux?

I discovered that the files and directory that are created in (default) Termux, are not accessible to other apps on non-rooted phones. Where is the folder that Termux defaults to? How do I set it ...
12
votes
4answers
25k views

Use GCC compiler in Termux?

I don't like the default C compiler clang provided by Termux. Is there a way I can get GNU GCC in my Termux environment?
10
votes
3answers
120k views

I'd like to run Termux as root: possible?

I'd like to have an SSH, HTTP and SMB server on standard ports on my phone. There's a way to run Termux as root and have the servers run on privileged ports? Running rooted Android 7.1 on an ...
10
votes
1answer
23k views

Termux write to SD card

Android 5 Termux 0.54 Not rooted, no wish to $ pwd /storage/sdcard1 $ id uid=10096(u0_a96) gid=10096(u0_a96) groups=1015(sdcard_rw),1028(sdcard_r),3003(inet),9997(everybody),50096(all_a96) $ ls -l ...
8
votes
1answer
19k views

How to run adb and fastboot commands from Termux?

Is it possible to run adb and fastboot commands using Termux terminal emulator? I am wanting to run commands from one Huawei T3 7 to another using USB/OTG cable. Need to unlock bootloader but have no ...
6
votes
3answers
23k views

How to use tmux copy / paste in Termux?

I installed Termux and using the pkg system installed tmux. However, the tmux that installs doesn't appear to support copying and pasting. I can enter copy mode, but I can't select text and copy ...
6
votes
2answers
3k views

Treble: How do I check if it is enabled on my device?

Title says it all By way of background Project Treble was announced with release of Oreo to speed up OS updates by reducing OEM delay . Devices running Oreo out of the box are expected to have it , ...
5
votes
3answers
5k 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 ...
5
votes
1answer
4k 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/...
5
votes
1answer
5k views

Can I install packages to external SD card on Termux in Android?

I am using Termux in my Android device and it is awesome. I've installed it from Google Play. Now the packages that I install using the command pkg install ..., install those to the internal storage. ...
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 ...
4
votes
1answer
733 views

Number of available cores

To find the number of cores available to you in Termux you run: grep Cpus_allowed /proc/self/status This number of cores is limited in a similar way to running taskset on GNU/Linux. I am trying to ...
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 ...
3
votes
4answers
2k views

Immersive mode in Termux?

How can I enable immersive/fullscreen mode in Termux? I want to hide the bars at the top and bottom of the screen so that the entire screen displays the terminal. In summary, I'm looking for either ...
3
votes
2answers
23k views

Wget using Termux download directory

I just installed Wget using Termux on my Android. But, when I download a file, I cannot find it's location. Can anyone please tell me where it's located? And how can I change that location to my ...
3
votes
3answers
7k views

which termux package provides the "mount" command?

i try to install "mount" with apt, but i can't locate it, or a package that contains "mount". i've tried: just to run mount: no command 'mount' found apt update && apt upgrade apt ...
3
votes
0answers
48 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' ...
2
votes
3answers
13k views

Path for bash in Android termux

Regular paths for bash do not work in termux app. I tried: /usr/bin/bash and /bin/bash Also 'whereis' command gives the following output: $ whereis bash bash: /data/data/com.termux/files/usr/...
2
votes
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, ...
2
votes
3answers
11k views

How to Play Sound from Termux when using Linux?

I have a problem with audio streaming that I can not listen audio from Pulseaudio when using VNC with a Linux Desktop Environment. However it works if I export the audio to XSDL. But the problem is ...
2
votes
2answers
789 views

Why do I have Termux and Termux(failsafe)?

Why do I have two Termux applications, and what's the difference? This happened recently, after updating Termux I believe. I've installed Termux from F-Droid, and it mentions (failsafe) in the ...
2
votes
1answer
5k views

How to SCP files from a PC to storage in Termux

I can scp files from my Linux server to Termux directory on my Android smartphone but Termux directory is not accessible through file explorer. What exactly should be the destination path for scp so ...
2
votes
1answer
3k views

Run windows 10 ARM on QEMU

I have downloaded the Windows 10 ARM on my Android phone, but it stops when I press any keys to boot from the CD or DVD. Click the images for full-size This is my start.sh file: #!/bin/bash sleep 2 ...
2
votes
2answers
5k views

Unable to install Express (of Node.js) in Android Termux using sdcard0 as directory

I'm unable to install Express in Android Termux. I have the latest Node.js installed. It is working perfectly when I use Private storage, but I'm using cd /storage/sdcard0/NodeJS/Test/ and getting a ...
2
votes
1answer
1k views

Tasker to programmatically uninstall apps

I would like to setup a tasker profile to check every predetermined time for any apps not on my approved list (BaselineApps.txt) and uninstall them. I am a noob to shell scripting and tasker. This is ...
2
votes
0answers
44 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 ...
2
votes
3answers
163 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 ...
2
votes
0answers
114 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 ...
2
votes
0answers
102 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, ...
2
votes
0answers
202 views

Termus/Python - How to mark unread SMS messages as read?

I made a simple SMS reader script with Python and Termux/Termux API (I use termux-tts-speak to read the messagees and execute the script from Termux). The script reads messages (with termux-sms-list) ...
2
votes
0answers
6k views

Package installation in Termux

I'm reading this guide that describes how to install the statistical language R on Termux. My installation journey is briefly outlined below. I need to determine why nothing happens at Step #2 ...
1
vote
4answers
35k views

How to make Termux obtain root access?

I am using a rooted Samsung S8+. But, Termux cannot gain root access. I tried su, sudo unsuccessfully. When I tried installing termux-sudo, I had the error cat: sudo: no such a file or directory. ...
1
vote
1answer
2k views

Password to ssh connec to termux

I tried to test ssh on termux which prompt of the password At temp my screen lock number but failed. What's the password?
1
vote
2answers
7k views

How do I view root ( / ) with Termux if termux-setup-storage doesn't help?

After reviewing this, I used termux-setup-storage on my phone and Andy Android emulator. After running the above command, I am able to view root directory with ls on Andy emulator but not on phone. ...
1
vote
3answers
9k views

How to type "Control" on Termux?

There is a good App "Termux" which can provide a powerful shell environment without gain root permission. However, the touch-screen keyboard doesn't include "Control" and "Alt" button. But some ...
1
vote
1answer
73 views

Remove Termux's extra keys

I can reduce the extra keys on Termux to one row like this: extra-keys = [[ESC, TAB, CTRL, ALT, {key: '-', popup: '|'}, DOWN, UP]] but this doesn't get rid of them: extra-keys-style = none How do I ...
1
vote
1answer
1k views

Termux print to txt

So i use termux and newbie,i want to save -help command from package as txt in internal storage with specific file name Ex:youtube-dl --help,aria2c -h,etc How to do that?
1
vote
1answer
665 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 ...
1
vote
1answer
271 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
1answer
132 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
1answer
309 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
2answers
792 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 …...
1
vote
1answer
2k 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 ...
1
vote
1answer
194 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
1answer
423 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 ...
1
vote
1answer
227 views

Termux:Widget and Emacs: can't start subprocesses

I have some tasks that I like to do using Emacs on several different operating systems. I have been using Termux so that I can access these tasks on my Android phone. To reduce setting-up typing in ...
1
vote
1answer
2k views

Equivalent ADB command in Termux

Is there any command equivalent to adb cmd package compile -m everything -f in termux?
1
vote
1answer
1k views

Unable to install PyCrypto

I'm installing PyCrypto because it is a dependency of another package. The installation always ends in an error in Termux (pip install pycrypto): Command "/data/data/com.termux/files/usr/bin/python -...
1
vote
0answers
35 views

Termux find if microphone or camera is in use by other apps

I want to make a simple script in termux to find out if microphone or camera is in use by other apps. You can suggest me any method , it dont have to be soley based on termux I just somehow want to ...