Questions tagged [termux]

Termux is a powerful shell environment for Android.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

How can I get a ubuntu desktop on my Galaxy S8 Ultra?

I have installed UserLand and selected Ubuntu but all I see is this (note that I am in DEX mode on a Galaxy S8 Ultra): All the tutorials say I have to set a VNC username and password but it never ...
0 votes
0 answers
34 views

How to use file picker from command line

I would like to launch a file picker from a script to graphically select file. While I am able to launch a file picker by sending intent am start -a android.intent.action.OPEN_DOCUMENT -d /storage/...
0 votes
1 answer
56 views

How to flash boot partition from the phone itself?

I already have Magisk installed by patching boot_b — the current boot partition. Therefore I have root privilege and can access it through the su command in Termux. The issue is that when I update ...
0 votes
0 answers
21 views

Access Mega Cloud Storage from File Manager on a non rooted device

Is there a way to mount Mega cloud storage from file manager. Mega has some option to do that as Webdav Server for Desktops but is there a way Android Phone with TLS encryption. I am even comfortable ...
1 vote
1 answer
39 views

Avoid re-downloading files with Termux in its own downloads folder

I have some files for which I don't have any app to open them with, but whenever I try to open them, instead of the "try looking in the Play Store for an app to open your file" dialog, I get ...
0 votes
0 answers
39 views

How to save data/settings of OS in termux?

Short story. Installed termux, installed Ubuntu 20.04 using Andronix, curl https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/repo-fix.sh > repo.sh && chmod +x repo.sh &...
  • 101
0 votes
0 answers
24 views

Why does "man find" go to the find manpage of section 1p rather then section 1 (termux)

I'm using the termux terminal app. When I try to use the man pages I very often get the results from section 1p rather then from section 1. I have tried different solutions that I have found mentioned ...
  • 928
2 votes
0 answers
141 views

How to enable/disable VPN via adb/termux/terminal?

I have a VPN configured on my android device running Lineage OS 18.1 (Android 11). I'm not using any third party apps, I'm simply using the standard Android settings to specify my VPN login data etc. ...
  • 247
1 vote
1 answer
109 views

Termux API does not ask for permissions and hangs

I try to use termux-api to perform some actions, specifically I want to use termux-usb to run some libuvc code. However none of termux api programs even ask for permissions to run. For example if I ...
  • 121
0 votes
0 answers
24 views

How to secure Android X and upgrade

So I have been doing lots of digging and research and basically forced into learning all the codes and packages that come with Linux and Termux and I have to say I am hooked on all this now. Maybe my ...
0 votes
0 answers
78 views

Using Termux on an emulator isn't possible?

Can someone explain why isn't it possible to use Termux on an android emulator such as VMOS though it's able to fake root access? Is it just the limitation of the fake root that's provided by the ...
1 vote
1 answer
552 views

How do I format my SD card via terminal/Termux?

I'm running a MIUI 12.5.5 xiaomi.eu ROM on a rooted Redmi Note 9 Pro. I'm trying to format my 128GB micro SD Card via Settings > Storage > Format SD Card, but this causes the device to reboot. I ...
1 vote
1 answer
519 views

How to Flash Patched_Boot.img via termux?

Is there a way to get termux to process Fastboot cmds or flash a patched_boot.img with out a PC?
2 votes
1 answer
2k views

ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects in Android Termux

I'm trying to install numpy in Termux in Android and I'm getting this error : ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects I tried apt update &...
0 votes
1 answer
70 views

How to access sync'd Nextcloud files in termux

I am syncing files to my phone (Fairphone 4) with Nextcloud, and wish to access these files using termux. Currently access is denied, is there a way to set this up to work other than rooting the ...
1 vote
0 answers
81 views

Can I use my TV as a display for a tty while using my Android screen as a virtual keyboard?

I use Termux on a rooted device to run Alpine Linux in a chroot, but since the screen is small it is hard to type with a virtual keyboard + get a good view. I want to use my Android's screen for the ...
0 votes
1 answer
188 views

Connecting ACODE to Termux

Hi guys I have successfully connected ACODE to termux using sftp from ACODE to termux SSH using openssh sshd and dropbear dropbear via generated password passwd and username whoami and it works. I've ...
0 votes
1 answer
2k views

Termux access /sdcard/data

Most of the apps are now not permitted to access /sdcard/data the only app i know which can access this folder is Files(not files by google)[com.google.android.documentsui] a few days ago i see this ...
  • 53
0 votes
1 answer
2k views

How to install Termux on old Android 5 devices ? (using the official archive)

Context : Hello, I have a GPD XD console under Android 5 with a complex launcher. I would like to install the very good Pegasus frontend (install and play, no tweaks), and for that they require to run ...
0 votes
0 answers
25 views

Can I use my volume key as ctrl key on Android? If so how?

In termux, volume up button is used as ctrl key. I want the same functionality also outside termux. Is it possible?
2 votes
0 answers
273 views

How to switch slots without a computer or using TWRP?

I'm working with Android 9 Pie and I have one slot rooted (slot A) and the other is not (slot B). My reasoning to have my phone this way is because I need the non-rooted side to log in to the app I ...
1 vote
0 answers
20 views

Android 11: change ownership of media_rw files [duplicate]

Could somebody please help with the following problem on ArrowOS, Android 11? Background I use TitaniumBackup to create regular app backups. The TiBu folder is on internal storage. Then, after that, I ...
0 votes
0 answers
74 views

Prevent Termux from opening STL files

I have Termux installed and when I try to open STL (3D model) it opens a Termux instead my STL viewer. How to prevent this behavior? There is no setting for Termux "open by default".
  • 171
1 vote
0 answers
544 views

Running a python script on an Android device

I need to control an android app using a python script. Currently, I connect my phone to my laptop and use adb (android debug bridge). Process: Laptop sends an adb shell command to android to take a ...
  • 111
0 votes
0 answers
82 views

SSH can't login as normal user

So I managed to get SSH working properly, starting it with root so I can use the default SSH port 22. Only problem is that it doesn't allow me to login as anyone other than root. Trying to log in as ...
0 votes
0 answers
116 views

How to use libusb1.0 in termux

I am trying to install mtkclient on my android device, but one of the required deps is libusb1.0. I've been reading that I may need termux-usb instead... But then the mtkclient source code would have ...
3 votes
2 answers
1k views

How to install Another Term, an alternative to Termux for Android 6.0 and below?

I am running a lower Android version and need to install a Linux proot container in Android. Another Term is the closest alternative, but how do I install it? It seems pretty hard.
  • 111
0 votes
0 answers
196 views

In Termux on non-rooted phone, how to change ownership of a file to root permanently?

When I do not use fakeroot, changing ownership to root is not allowed. On the other hand, after fakeroot /bin/bash, the ownership is in any case displayed as being root, and here I can set chown root:...
1 vote
0 answers
435 views

Where to locate a dir without W^X? (/data/local/tmp)

I have an Android 10 LGK22 No-Rooted without option to do it (so rooting is out of the question/solution). Which is not ridiculously forcing W^X (the option to stop a binary from being executed from a ...
  • 11
0 votes
0 answers
547 views

permission denied only AFTER becoming root (in Termux)

I'm running SuperSu 2.82 (latest) and Termux (latest) on Andriod 7. What is causing the permission denied error below? I get the same error with mount namespace separation turned off (or on) in ...
  • 607
1 vote
0 answers
353 views

How can I downgrade/compile Python in Termux?

I started using termux 1-2 weeks ago and I'm in love with it. Funnily, the first days in, everything worked fine and then a Python update hit, and I can no longer use my Python plugins in Neovim. It ...
's user avatar
1 vote
0 answers
418 views

Termux: bad interpreter: Permission denied

I'm attempting to execute this command in a Termux:Boot script. exec su --mount-master -c "LD_LIBRARY_PATH=$LD_LIBRARY_PATH HOME=$HOME PATH=$PATH:$HOME/bin $0" I get this error: : /data/...
  • 607
1 vote
0 answers
473 views

How to use rclone-mount with Termux:Boot?

I would like to do what is described in this post: How to mount rclone on Android? and then have Termux:Boot automatically mount my rclone remotes at boot time. As per that post, I am using the static ...
  • 607
0 votes
0 answers
142 views

Create WiFi AP in Termux with root access [duplicate]

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
0 answers
64 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 ...
  • 21
1 vote
1 answer
452 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 ...
  • 51
0 votes
0 answers
169 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.
0 votes
1 answer
278 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 ...
3 votes
0 answers
76 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' ...
1 vote
0 answers
73 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
1 answer
207 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
0 answers
355 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
0 answers
217 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 ...
  • 11
0 votes
0 answers
380 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 ...
  • 111
1 vote
1 answer
486 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
0 answers
84 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
3 answers
584 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 ...
  • 21
1 vote
1 answer
2k 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
0 answers
111 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?
  • 11
1 vote
1 answer
426 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": ...