Saving the world by solving one syntax error a day
A terminal is a command line interface used to interact with computers. With MacOS, Linux and even sometimes windows, interacting with the terminal is a pretty common practice for developers. But, not so much with Android.
Android (the OS), is primarily Linux based, so with few modifications, you can also use the terminal on your android device similar to the way you do on your Linux system.
1) Install termux from google playstore
Termux is one of the most popular android terminals and has a good active community to help you if do run into some problems.
install termux on your android device
(if you have any questions regarding termux, refer to their wiki before anything else)
2) Enable Storage access
open the termux app, and run the following command :
3) Make sure termux is running
try the following command :
echo 'hello world'
on pressing the enter key on your phone, hello world should be printed on the line below
4) Installing ubuntu-in-termux
apt-get update && apt-get upgrade -y
(termux, similar to a lot of linux distributions, also comes with the apt package manager for installation and management of softwares and libraries)
pt-get install wget -y
( it is a software package that is used to get stuff from the internet, we will need this later)
apt-get install proot -y
( we need this to use our current directory as the root system for ubuntu)
apt-get install git -y
(this should return a list of files in the current directory)
chmod +x ubuntu.sh
So there you have it, a terminal for your android phone along with a bash shell with ubuntu environment. Use your new found power wisely !
Create your free account to unlock your custom reading experience.