Questions tagged [termux]

Termux is a powerful shell environment for Android.

Filter by
Sorted by
Tagged with
39
votes
5answers
151k 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?
20
votes
2answers
109k 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 ...
10
votes
3answers
113k 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
4answers
22k 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
1answer
21k 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
15k 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
2answers
2k 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
20k 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 ...
5
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 ...
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/...
5
votes
1answer
4k 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
953 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
623 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
2answers
22k 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
6k 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 ...
2
votes
3answers
12k 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
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 ...
2
votes
2answers
738 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
2answers
9k 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
1answer
4k 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
2k 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
4k 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 latest nodejs installed. It is working perfectly when I use Private storage but I'm using cd /storage/sdcard0/NodeJS/Test/ and getting ...
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
27 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
91 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
58 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
181 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
2answers
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 ...
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
6k 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
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
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
186 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
65 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
180 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
1answer
164 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
327 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
215 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
23 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 ...
1
vote
0answers
37 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 ...
1
vote
1answer
52 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 ...
1
vote
0answers
108 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
0answers
51 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
0answers
27 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 ...
1
vote
0answers
129 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
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, ...