Skip to main content

Questions tagged [termux]

Termux is a powerful shell environment for Android.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

Termux: am command - start intent without activity class

I'm trying to launch an intent to a shortcut of a flow on Automate (by Llamalabs) using the am command supplied by Termux, but the am command needs the Activity Class parameter to run the shortcut and ...
LilData777's user avatar
0 votes
0 answers
35 views

Unable to remount root partition: "Operation not permitted"

I have a device, rooted through the KernelSU. I granted root access to the Termux app using the KernelSU app. Now I have access to the su command, and theoretically should be able to use the mount ...
Nikitf777's user avatar
0 votes
0 answers
36 views

how to query termux wakelock

I'm currently developing a small application for temporarily monitoring sensors in c, that should initiate a wakelock and release it after it ran but not release it, if a wakelock was aquired before ...
GottZ's user avatar
  • 101
0 votes
0 answers
80 views

Working vpn server on termux native with root?

Does anyone has a working way or a step by step guide to set-up a vpn server on termux with root? Like someone who actually tried and succeed or already has one running to give me tips and point me in ...
xMidNight-.'s user avatar
2 votes
1 answer
307 views

How to beep in Termux?

Making a script that will run in termux and should make the phone beep when conditions are met. How do I make the phone beep from termux? Things I have tried that didn't work: $ tput bel $ echo -ne '\...
hanshenrik's user avatar
0 votes
1 answer
91 views

Termux copy paste problem

I started today coding with termux on mobile, I want to git clone but I can't copy paste the link to my github, I tried to do CTRL + ALT + V but it doesn't work It would be very nice if someone could ...
Gustavo's user avatar
  • 11
0 votes
0 answers
62 views

Building Android GKI kernel using "make"

I have kernel source for Qualcomm Snapdragon Kalama SOC. I wan't to build it, but i cannot use bazel as i'm building from Termux environment. The kernel is based on GKI. How to build the GKI kernel ...
Wolverine's user avatar
1 vote
1 answer
532 views

Route pulseaudio to phone speakers in Termux without proot or rooting+chroot?

Question: How do I get the pulseaudio command play from the Termux app to emit sound over the phone speakers (without rooting the phone or using a proot installation in Termux)? Specifics: I have a ...
MRule's user avatar
  • 131
1 vote
0 answers
96 views

Creating permanent swapfile acting as virtual RAM

I have made a swap file on my Android device that acts as virtual RAM. But I have an issue where the swap file is reset every time the Android device is reset. Even though I have made a permanent swap ...
Wan Ammar's user avatar
0 votes
0 answers
245 views

gpg: signing failed: Inappropriate ioctl for device

I am trying to sign a git commit in Termux, but I receive an error: $ git commit -S -m "my commit message" error: gpg failed to sign the data: [GNUPG:] KEY_CONSIDERED ...
tsilvs's user avatar
  • 355
0 votes
0 answers
281 views

Rooted but unable to setup WireGuard VPN on Termux

I have read WireGuard quickstart and successfully set up a connection between the server (Android 14, Google Pixel 7) and the client. But as for IP forwarding, after following How to enable IP ...
hsiaoeric's user avatar
2 votes
0 answers
135 views

Is there is a way to exempt apps (e.g. termux) from Doze in Android 14?

Since Android 14, I'm no longer able to log into my phone remotely via a reverse tunnel to a server with a static IP. It appears that Doze is the underlying issue; it stops termux, which stops the ...
Steve Newcomb's user avatar
0 votes
0 answers
57 views

Detect S Pen clicks in Termux?

Is it possible to detect Samsung Galaxy Ultra's S Pen button clicks in Termux? I'm rooted if that helps
hanshenrik's user avatar
4 votes
1 answer
749 views

How to run Python 2 and Python 3 CLI programs on Android 14 phones?

It looks like all the methods which used to work for running Python 2 and Python 3 CLI programs on Android phones is now outdated: SL4A QPython Termux + python packages I can't believe we can't run ...
Fetchinson0234's user avatar
0 votes
1 answer
351 views

Termux getting killed by my Android 12

I am running Kali NetHunter on my Android 12 with rootless installation. Every time I connect the KeX client, my Android 12 kills the background Termux. How can I stop it?
Alamin Umar's user avatar
1 vote
1 answer
78 views

Emulating port redirection (port 53) without root

How to emulate binary program that reading port 53 will be redirected to another port such as port 10053. So the binary program still sees it as 53 but the actual port at top layer will be redirected ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
306 views

Termux and Termux11 change root/home directory

as default termux use /data/data/.../home as home directory and we access file in home, but we can't use or see (permission) for other subdirectory, that which make sense application like intelij or ...
FarHooD's user avatar
0 votes
0 answers
129 views

How to make termux-clipboard-set/get in chroot?

termux-clipboard-set and termux-clipboard-get are accessible on termux and proot. But they are not available on chroot. Probably because some library is missing. Any way to make it work? Or what ...
Yokowasis's user avatar
  • 101
0 votes
0 answers
104 views

NGINX file server not able to serve files beyond 2GB

I have setup nginx file server on my old Android phone (Samsung A6). I did this using termux and running nginx on termux. This file server is used to serve media files to Kodi on my android TV. When I ...
user avatar
1 vote
0 answers
350 views

termux-sms-send hangs

I installed Termux using F-Droid, and the termux-api package. When I run $termux-sms-send -n (number) text, the command never returns, nor does it produce errors. I press Ctrl+C to exit. Per the ...
leoh Jones's user avatar
0 votes
0 answers
116 views

Have different apps with same signature and sharedUserId?

I'd like to use the official port of Emacs for Android along with the packages provided by Termux. This is what the Emacs manual says: H.9 Installing Extra Software on Android An exceptionally ...
cidra's user avatar
  • 113
0 votes
0 answers
143 views

Termux PostgreSQL initdb: wrong directory ownership

Recently, I installed PostgreSQL pkg on Termux. But when I wanted to use the initdb postgre command to initialize postgre directory, I had the wrong ownership: $ initdb postgres The files belonging to ...
C9_HP's user avatar
  • 31
2 votes
0 answers
398 views

Convenient way of checking is Shizuku server is running?

How can you check if Shizuku is running before executing the start command? I am running Shizuku on non rooted device and I noticed it randomly stops sometimes when wireless debugging becomes disabled ...
xavier_fakerat's user avatar
0 votes
0 answers
45 views

In Termux: how to update manual page database: "mandb" went =>?=> "mandoc" gone =>?=>

The cause: manpage of aptitude is installed (android 12, termux 118, 6.2.1 PRoot-Distro, ubuntu 23.10) but "man aptitude" does not find it; yet "man -l pathfilename" does display ...
Anton Wessel's user avatar
1 vote
0 answers
37 views

When restoring Termux from a backup, how can I specify which shell Termux to use (sh or bash) and how to specify which init files this shell to use?

Because the shell(s) below of Termux are throwing error continously which cannot be canceled with ctrl-c or other means - due to a vim which cannot find/read .vimrc - and since shell actions in ...
Anton Wessel's user avatar
0 votes
0 answers
81 views

Where does termux sqlite db files be stored?

There was other questions like this but no answer for this. Where is the path to find my sqlite files? I have Xiaomi Redmi 10 android. And with termux installed SQLite and i was going to start ...
C9_HP's user avatar
  • 31
1 vote
1 answer
227 views

Is it possible to run comand as Termux after boot process?

I have set up a Node.js app. In order to automatically do all the things after the phone boot, I want to make a Magisk module to run a service. The command is npm start and exposes HTTP service on ...
Anas's user avatar
  • 111
1 vote
1 answer
2k views

Q1: When one instance of Termux is running, how to launch a second instace? - Q2: If two instancies running, is there a way to merge the two shells?

My installed Termux is currently blocked, not working due to problems of a process the shell is executing and additionally because the shell itself is in the SIGSTOP state. On the one hand I would ...
Anton Wessel's user avatar
0 votes
0 answers
504 views

How in Termux to kill a process by PID when this process is running non-stoppable, e.g. vim after a typo cannot be closed?

In my case it often happens that vim becomes non-operatable, does not accept key-strokes nor mouse actions and cannot be closed. When vim runs in bash in one of the many windows below Konsole in KDE/...
Anton Wessel's user avatar
1 vote
0 answers
963 views

Termux processes killed on Android 13 even with phantom procs off

On Android 11, I am able to run text-generation-ui under Termux, with 3b models. I've got a Samsung A53 phone, with 6GB RAM & 2GB swap (by default). However, on Android 13, I'm currently running ...
JohnFlamel's user avatar
2 votes
0 answers
156 views

How to make device on Wi-Fi hotspot discoverable to USB tethering connected PC?

My goal is to make the device (Quest 2) on 192.168.254.x (Wi-Fi hotspot) discoverable to my PC on 192.168.96.x (USB Tethering), because I want to set up ALVR and make my Quest 2 and my PC on different ...
speedyes's user avatar
3 votes
1 answer
1k views

How to hide Termux notifications without breaking functionality?

My Pixel 7 (Android 14) has a persistent ssh server set up, but Termux shows a "wake lock held" notification, which is very annoying. Is it possible to hide notifications so that they exist ...
diskree's user avatar
  • 31
2 votes
1 answer
913 views

How to acquire wakelock with Termux on Android 13?

In previous versions of Android, one "Aquire Wakelock" by going to notifications-list, and tapping on the Termux in the list, then Aquire Wakelock is an option. But on Android 13, there are ...
hanshenrik's user avatar
0 votes
1 answer
801 views

SSH to localhost on android

I am trying to get ssh working on my android phone. I am currently able to ssh out, from my phone to another device. But I am struggling to be able to ssh in. To test things, I am just working on my ...
IsAdisplayName's user avatar
1 vote
0 answers
156 views

Find `MainActivity` for `com.google.android.dialer`

I have a Xiaomi POCO X5 5G, running MIUI Global 14.0.4. There is a problem where (in the Global ROM) the Google Phone app (as a system app) seems to be killed, even with MIUI Battery Optimization ...
Jacob Birkett's user avatar
0 votes
3 answers
14k views

Trying to delete a folder with Termux

I'm trying to delete a file Android will not let me delete it. Trying to use Termux, I can't seem to find the file. I used termux-setup-storage, and per the instructions entered: cd /storage/sdcard0/...
Jimmy B's user avatar
  • 11
1 vote
1 answer
2k views

A/B devices: Switch slots without using PC

I've seen this question asked two years ago How to switch slots without a computer or using TWRP? which asks for the same on Android 9,but with so many tools being developed (and abandoned) and ...
beeshyams's user avatar
  • 41.3k
1 vote
0 answers
404 views

Is there some way to prevent myself from shutting down my [rooted] phone in some specific cases?

This is question is basically an acknowledgement that I'm very f-ing lazy. First, I'm on a Pixel 6 Pro running stock A13, rooted and filled with Magisk modules. I needed to find a way to guarantee I'...
Fabio Freitas's user avatar
0 votes
0 answers
295 views

What tool in Termux can I use to move one partition on my USB drive to the start of the drive?

I had a problem where the TV that I needed to use to watch movies, kept recognizing the EFI partition as the only partition on the USB drive, And I couldn't get to the second partition. I decided to ...
RadoslavL's user avatar
0 votes
1 answer
131 views

Does Termux have media folder?

I am running a Java application using Termux. I need a media folder to store a folder named DSKEYS with pfx key file because the Java application needs that pfx file from media/DSKEYS/. I could not ...
Joe Rakhimov's user avatar
1 vote
0 answers
363 views

copy to android clipboard in nvim from termux

I use neovim on termux on android 11 i commonly use :y to yank/copy text to nvim clipboard then paste it to another files recently I've tried using helix-editor(hx) looks and feels so similar to ...
ANDuser's user avatar
  • 83
1 vote
0 answers
2k views

Can't install pandas on termux

I want to install pandas on Termux. I have tried so many methods but I am getting this error: Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to ...
MAMO EMIRU's user avatar
0 votes
0 answers
295 views

Termux closes after loading llama LLM

The same happens with alpaca.cpp. The model loads and then termux closes.Sometimes it doesn't close, but instead gives final message : " : killed", where it shows some number. I'm not sure ...
JohnFlamel's user avatar
5 votes
1 answer
5k views

How to install netcat on Termux?

I want to use WireGuard on my phone to connect to WireGuard on my Desktop's WireGuard server. On another website, I have been advised to execute in Terminal (I use the Termux app) on my phone, the ...
Manager Rose's user avatar
2 votes
0 answers
142 views

Hardening android to use it as a Linux Server

I want to convert a set of relatively old Android devices into Linux servers, while avoiding too many device specific actions, to make this an easily repeatable and shareable action. This means ...
Udinanon's user avatar
0 votes
1 answer
210 views

Trouble killing logcat process

On my rooted Android, I have a screenshot from Termux after running sudo htop. There is a logcat process running with PID 925. I want to stop this process. So far, I've tried running su -c kill 925 ...
user1091091's user avatar
2 votes
0 answers
1k views

How to approach .local addresses in LAN from Android?

Using .local domains supported by mDNS or Avahi from devices in the same network as my device works flawlessly on macOS, Ubuntu and iOS. I use it to make http(s) or SSH connection to a device inside ...
user513667's user avatar
1 vote
1 answer
4k views

How to install and run Tor with Snowflake client on Termux

Since the internet restrictions in Iran have become more severe as of October 2022, nowadays many Iranians are trying different methods to bypass censorship and connect to Telegram. For example, using ...
Javad Bayat's user avatar
2 votes
0 answers
1k views

DNS within termux

I am using termux to synchronize files across a couple of android devices (probably use rsync later... still experimenting). Presently I use ifconfig to figure out the IP address of the devices, ...
Agnel Kurian's user avatar
0 votes
1 answer
11k views

Error installing Aircrack in Termux (E: Unable to locate package aircrack-ng)

An error is occurring when I try to install aircrack-ng in Termux. E: Unable to locate package aircrack-ng When I try to use apt or pkg to search for aircrack, it doesn't find anything either. Here ...
Frostinho's user avatar

1
2 3 4 5