Is there any tutorial regarding how to use termux on an Android phone ?

5 months ago by MastKalandar to c/android

Auster 1 point 5 months ago

Tutorial, I can't remember, but I do remember some pointers:

  • Termux first needs the phone to be rooted to properly interact with anything outside of its $HOME, including Android's user's internal storage and SD card
  • Iirc Termux lists useful packages in its default text, including the one for being able to interact with root
  • Termux is a Linux distro heavily adapted to work as an Android program, but that makes commands familiar; if you used Debian, Ubuntu, Mint, etc., commands follow the same structure as apt's, but using pkg instead
path: 0 23674196, hotness: undefined, score: 1, children: 3
hexagonwin 1 point 5 months ago

Termux first needs the phone to be rooted to properly interact with anything outside of its $HOME, including Android's user's internal storage and SD card

this is false, termux does not need root for most things including accessing internal storage (/sdcard)

Termux is a Linux distro heavily adapted to work as an Android program, but that makes commands familiar; if you used Debian, Ubuntu, Mint, etc., commands follow the same structure as apt's, but using pkg instead

this is also not true, it's not a linux distro, it's just *nixy tools natively compiled for android. thus for example it uses android native libc. apt command also still works on termux, as pkg is a wrapper around apt.

path: 0 23674196 23675916, hotness: undefined, score: 1, children: 2
Auster 1 point 5 months ago

Went to double-check both things.

About root, I think I got it confused with two different things at the same time, termux-setup-storage, and the external storage specifically requiring root to work (first paragraph after the data table).

About (not) being a Linux distro, reading deeper into it, it sounds a lot like DOSBox, which is also a terminal emulator which can run programs for the system it pretends to be while using the host system's file system.

path: 0 23674196 23675916 23676368, hotness: undefined, score: 1, children: 1
hexagonwin 1 point 5 months ago

kinda a small nitpick but it's not really like dosbox, dosbox is a full x86 emulator.

termux is basically a terminal emulator (like xterm, konsole, alacritty) that comes with unixy tools compiled in the native android toolchain.

path: 0 23674196 23675916 23676368 23730384, hotness: undefined, score: 1, children: 0
android
android

@programming.dev

login for more options
1242
210
51

Android news for android developers. Everything that happens in android world.

For Android development specific topics please see /c/android_dev

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License

go to feed...