Termux

Configure Termux on Android (Linux in our pocket)

Install Termux on Android

Today we will see how to install and configure Termux on Android, as well as a brief introduction to its use.

Termux is an application that will allow us to have a terminal on our device, but apart from that it gives us the possibility of installing very interesting packages; and if we configure them well and install well, we can have a complete and stable server on our mobile.

This application does not require root access, you only need that our Android phone has a recent version (I think it works from Android 6).

Download Termux

Go to Google Play in this link. If you can install it you can follow the tutorial, and if not then it’s time to upgrade to a newer version.

Configure help keys

At the beginning, our app will look like a clean terminal, but we do not have keys that help us in a real terminal to which we are accustomed.

For example, there is neither the CTRL key nor the TAB key, or the navigation arrows to see previous commands.

To enable these keys we keep pressing the key that increases the volume and press the Q key of our keyboard. Now these keys will appear:

Help keys on Termux. Vol Up + Q

With that we give an extra functionality to our app. They are shortcuts that we do not have in our mobile keyboard.

More sessions

If you want you can open more sessions or terminals, simply slide your finger from the left edge to the right (like when you open the navigation drawer) and you can create the ones you want in the new session button.

Termux navigation drawer

To rename a session, keep its number pressed and you will be able to change the name:

Change session name Termux

Exit and enter

To enter simply open the app, but even if you press the return button, it will still be there. To close Termux expand the notification and select EXIT. You can also simply type exit or logout in the terminal, as seen in the image:

Close termux session

Utilities

To have some basic commands (really basic Linux like ls and those things) we install the package with:

pkg install coreutils

Storage permission

Since Termux is an application like the others, we need to give you permissions so that you can modify the storage of the device.

For this we execute:

termux-setup-storage

This will make us ask for permits, and we will obviously give them. Now we can access our documents from ~/storage.

That is, it will be as if our documents were mounted and accessed from ~/storage. For example, to go to the downloads we execute:

cd ~/storage/downloads

References and conclusions

It seems simple but we have a powerful application that will make us feel like we have a Linux server in our pocket.

I invite you to read the Termux wiki, and if you want to learn more about Termux on my blog click here.


I am available for hiring if you need help! I can help you with your project or homework feel free to contact me.
If you liked the post, show your appreciation by sharing it, or making a donation

parzibyte

Freelancer programmer ready to work with you. Web, mobile and desktop applications. PHP, Java, Go, Python, JavaScript, Kotlin and more :) https://parzibyte.me/

Ver comentarios

Compartir
Publicado por
parzibyte

Entradas recientes

Receipt designer for thermal printers – Free and open source

In the last months I have been working on a ticket designer to print on…

11 months hace

JavaScript: store and read files with the Origin Private File System

In this post you will learn how to use the Origin Private File System with…

1 year hace

JavaScript: download file with fetch

In this post you will learn how to download a file in the background using…

1 year hace

SQLite3 with vanilla JavaScript and OPFS – Hello world

In this post I will show you how to use SQLite3 directly in the web…

1 year hace

Python Thermal Printing: A Comprehensive Guide for Printing on Thermal Printers

In this tutorial, we'll explore how to effortlessly print receipts, invoices, and tickets on a…

1 year hace

Image printing on Thermal printer

When printing receipts on thermal printers (ESC POS) sometimes it is needed to print images…

1 year hace

Esta web usa cookies.