Questions tagged [termux]

Termux is a powerful shell environment for Android.

Filter by
Sorted by
Tagged with
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 ...
0
votes
1answer
1k views

When I'm trying to run "xterm" in termux, it says failed to open display : :0. Why so?

I'm running xserver xsdl. Then tried running xterm in it after export DISPLAY=:0 . If I do export DISPLAY=10.94.XXX.XXX:1 , xterm runs fine. I tried to debug it using strace. This is the line, which ...
0
votes
0answers
44 views

Create WiFi AP in Termux with root access

For some purpose, I want to create a WiFi access point on my Android because I cannot turn on the hotspot when WiFi is enabled. And also I tried to use NetShare, but it cannot be enabled on boot. I ...
1
vote
1answer
2k views

lsusb returns "permission denied" in Termux

When I run lsusb in Termux, the output is permission denied. I don't have root access. Perhaps the Android system allows me to get specific access in root?
0
votes
0answers
19 views

Cannot download nodemon using npm on Termux

I'm trying to download nodemon using npm on Termux, but I got the following error log: npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'emoji-regex' npm ERR! Require stack: npm ERR! - /data/...
1
vote
1answer
1k views

Moving default folder Termux with content to downloads in Android 7

This is what I need; Termux - How do I create a directory of files accessible outside of Termux? I have my Tiddlywiki running on node.js in Termux. My problem is that Termux stores all files in the ...
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 ...
1
vote
1answer
69 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
2answers
782 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
0answers
37 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? (...
0
votes
0answers
20 views

How to resolve the "Permission Denied" to access termux files - no root [duplicate]

I have a number of terminal applications, When I change the directory to: cd /data/data/com.termux/files I get permission denied. How to make another terminal app to be able to access termux files? (...
0
votes
0answers
48 views

Why 'ping localhost' command in Termux returns a normal response even though there is no local web server?

I just tried 'ping localhost'command in Termux and response was positive. How this is possible since I don't have a local web server running.
1
vote
1answer
649 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
84 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 ...
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 ...
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
7k views

Termux - help installing a package

I am trying to install TeX Live using Termux. It's in the Package Manager, but unfortunately the package has some faulty instructions. Specifically, the package calls wget with a faulty option. If ...
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?
1
vote
1answer
965 views

Create shared folder on sdcard

Is there any way to create a directory on an external sdcard that has read/write access for multiple apps. For example I want to us synththing or rsync under termux be able to sync this directory to ...
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
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 ...
0
votes
0answers
103 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 ...
2
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 ...
1
vote
0answers
36 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
46 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
77 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
74 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
81 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
16 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
230 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
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 ...
0
votes
0answers
54 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 --...
0
votes
2answers
11k views

Termux was unable to install the bootstrap packages

After doing some research, it mention that the bootstrap in this url (http://termux.net/bootstrap/) must be download and install before one can use Termux. So, how do I install the bootstrap? or do I ...
2
votes
3answers
160 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 ...
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 ...
0
votes
0answers
1k 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: ...
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 ...
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 ...
1
vote
0answers
75 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
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
267 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
31 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
301 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 ...
2
votes
0answers
113 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
1answer
130 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
18 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
25 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 ...
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
1answer
301 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
58 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 ...