Install Linux terminal emulation and environment app for Android

Install Linux terminal emulation and environment app for Android

Today I recommend a Linux terminal emulation and environment APP for Android, it is called Termux.

With Termux, it will simulate a minimal Linux operating environment on your Android phone, similar to many Linux distributions. It can run Linux commands, establish Python, C, Java development environments for corresponding development, and install transplanted Linux programs.

There are several special features of Termux: 1. It does not include directories such as /bin, /usr/, /var, and /etc; 2. The home folder is in the Android installation directory of Termux. If you uninstall Termux, home will be deleted. If you want to uninstall, be sure to check if there are any files that need to be kept. Android cannot directly access files under Termux home. They must be shared through the Termux-open command before they can be used; 3. Termux can run in an Android non-root environment. In this state, ports below 1024 cannot be used, so many program ports installed through pkg packages start with 80, such as FTP will use port 8021.

The following is a brief introduction to the use of Termux.

1. Software installation. There are two commands for installing software in Termux, one is pkg install application package name, and the other is apt install application package name. The corresponding commands are pkg up and apt update to upgrade the software source.

2. Text editing. When using VI and other editing software in Termux, you must learn the shortcut keys, otherwise you will go crazy. It is recommended to use nano.

Volume up + q brings up the shortcut command, you can choose esc, ctrl, alt, tab, -, /,

Volume up + w/a/s/d correspondingly moves the cursor up, down, left, and right

Volume up +t is tab

Volume down + c is ctrl + c

Volume up + e for esc

3. Modify the software source to speed up the download and enter the following command

export EDITOR=vi

apt edit-sources

Modified to Tsinghua source:

# The termux repository mirror from TUNA:

deb [arch=all,arm] http://mirrors.tuna.tsinghua.edu.cn/termux stable main

4. Install the Python2 development environment (for Python3, just remove the 2 from the command below, and the same applies to Pip), pkg install python2 python2-dev . After installation, you can use pip2 to install Python modules.

In addition to basic applications, Termux can also perform some simple penetration tests. Interested friends can visit the Termux Wiki for more instructions on how to use it.

[[209811]]

(Author: Kaikai Yunwei, currently working in a state-owned enterprise, engaged in operation and maintenance work. I am very happy to share with you IT technology, operation and maintenance technology, scientific exploration and various fun DIY projects. Welcome to follow.)

<<:  【GitHub】Super practical skills, just read this one article!

>>:  China's iOS app download list in October: TikTok ranked tenth with a 50% growth rate, while Honor of Kings remained in first place

Recommend

Try the Xiaozhi Butler Robot. Is it time to hire an intelligent assistant?

In addition to fear, AlphaGo's victory should...

Feng Xueying's baby massage class

Feng Xueying's baby massage course resources ...

How do companies operate Douyin? Use these 5 tips!

Nowadays, “two Weibo and one Douyin” have become ...

Ultraviolet light kills the new coronavirus in 0.3 seconds? Is this reliable?

On the afternoon of November 29, the State Counci...

Flink Principles and Implementation: Architecture and Topology Overview

To understand a system, we usually start with the...

Tencent advertising strategy for the wedding photography industry

1. The market size of the wedding photography ind...

When the sun turns on "violent mode", the earth simply can't "bear it"...

Before going out Checking the weather forecast is...

Can eating less meat reduce carbon emissions?

This year, the temperature has been unusually cha...

3 Principles of To B Case Marketing

Case marketing is a very practical topic that To ...

Win10 vs Win8: A must-upgrade for DX12 games

It's difficult to figure out Windows 10 perfo...

WeChat update: Sell WeChat Beans at a high price to reward anchors

WeChat for iOS has been updated to version 7.0.20...

Don’t worry! Big companies won’t “steal” your entrepreneurial idea

[[161042]] A common question startups ask is, “Wh...