Home Android Termux – Run Linux On Android Devices, No Rooting Required!

Termux – Run Linux On Android Devices, No Rooting Required!

By sk
Published: Last Updated on 9.2K views

The other day I was looking for a simple and easy way to run Linux on Android devices. My only requirement was just use Linux with some CLI applications like SSH, Git, awk etc. And also, I don't want to root the Android device. I have a Tablet PC that I mostly use for reading EBooks, news, and a few Linux blogs. I don't use it much for other activities. So, now I decided to use it for some Linux activities. After spending few minutes on Google Play Store, one app called Termux caught my attention and I wanted to give it a try. In this guide, we will see how to run Linux on Android using Termux.

Run Linux on Android and Chrome OS using Termux

Termux is an Android terminal emulator and Linux environment app. Unlike many other apps, you don't need to root your device or no setup required. It just works out of the box! A minimal base Linux system will be installed automatically, and of course you can install other packages with APT package manager. In short, you can use your Android device like a pocket Linux computer. It's not just for Android, you can install it on your Chrome OS too.

Run Linux on Android using Termux

Run Linux on Android using Termux

Termux offers many significant features out of the box, including the following:

  • It allows you to SSH to your remote server via openSSH.
  • You can also SSH into your Android devices from any remote system.
  • Sync your smart phone contacts to a remote system using rsync and curl.
  • You could choose any shells such as BASH, ZSH, and FISH etc.
  • You can choose different text editors such as Emacs, Nano, and Vim to edit/view files.
  • Install any packages of your choice in your Android devices using APT package manager. Up-to-date versions of Git, Perl, Python, Ruby and Node.js are available.
  • Connect your Android device with a bluetooth Keyboard, mouse and external display and use it like a convergence device. Termux supports keyboard shortcuts .
  • Termux allows you to run almost all GNU/Linux commands.

It also has some extra features. You can enable them by installing the addons. For instance, Termux:API addon will allow you to Access Android and Chrome hardware features. And probably the best part is the Termux-API lets you use node-red and mqtt to interface Android and Linux based IOT devices. For more details, check this link.

The other useful addons are:

  • Termux:Boot - Run script(s) when your device boots.
  • Termux:Float - Run Termux in a floating window.
  • Termux:Styling - Provides color schemes and powerline-ready fonts to customize the appearance of the Termux terminal.
  • Termux:Task - Provides an easy way to call Termux executables from Tasker and compatible apps.
  • Termux:Widget - Provides an easy way to start small scriptlets from the home screen.

To know more about termux, open the built-in help section by long-pressing anywhere on the terminal and selecting the Help menu option. The only drawback is it requires Android 5.0 and higher versions. It could be more useful for many users if it supports Android 4.x and older versions. Termux is available in Google Play Store and F-Droid.

To install Termux from Google Play Store, click the following button.

Get Termux app from Google play

Get Termux app from Google play

To install it from F-Droid, click the following button.

Get Termux app from F-droid

Get Termux app from F-droid

And, that's all for now. You know now how to try Linux on your android devices using Termux. Do you use any other better apps worth trying? Please mention them in the comment section below. I'd love to try them too!

Resource:

You May Also Like

2 comments

Lexiie June 3, 2019 - 11:31 pm

Termux have gui interface ?

Reply
Anonmouse June 24, 2019 - 8:45 am

No but for what it is intended for there is no need for a gui.
There are some apps that will give you linux dstros to run on it through a vnc viewer that give you a gui though.

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More