Termux : Linux on Android(Without Root)
Hey guys hope you all doing great, this post is little different than what i usually do but i thought it would be worth sharing it with you. I hope you find it useful and if you do tell me in the comments.
Android is Based on Linux, But we cannot use it as a typical Linux distribution as Linux only forms the core part of android and Google did not added all the software and libraries as included in Linux distribution like Ubuntu or Debian.
Android is Based on Linux, But we cannot use it as a typical Linux distribution as Linux only forms the core part of android and Google did not added all the software and libraries as included in Linux distribution like Ubuntu or Debian.
But can we have Linux like experience on the android???... well Yes and No!!. There are multiple ways to do that. Though, you may not get as good experience on a Linux distribution but very close to that. One of the and the easiest way is to use an Linux emulator for that.
Termux is one such emulator that I wanted to share with you.It is a terminal emulator and Linux environment app that
works directly with no rooting or setup required. It gives you a lot options for customization.
Termux allows you to install Linux applications and includes many pre-loaded. Though Termux does not have a lot of app available for now but still its cool to see things on your phone's screen that are usually only can be seen on laptops or PC screens.
You can use vi or vim editor. You can develop c/c++ programs using clang, python programs even you can install CLI based web browsers and music players on Termux. Also if you are interested in cyber security you can install metasploit on it.
Which Keyboard to use?
I recommend using hacker's keyboard . Here the download link. Hackers's Keyboard.
Where to insall Termux?
You can download termux from most of the app stores though the official provides links to play store and F-droid.
Official site: https://termux.com
How to install new programs on Termux?
Its pretty easy to install new programs in termux and commands are given on the initial screen.
[I don't why but images appear blurry for some reason,CLICK on them for bigger size.]
How to develope C/C++ programs on Termux?
1.) You need install a compiler first.install clang,it is 114 mb in size.
2.) Now install an editor.I recommend using vim its enough for most cases.It should be preinstalled on it if Not then enter command.
pkg install vim
3.)Write your program using you favorite text editor If your using then, you can compile it after saving it by
Esc-> :wq to save and exit
To compile it and run it use the following commands.
To compile C programs
clang filename.c
To compile C++ programs
clang++ filename.cpp
How to develop on python in Termux?
1). Install python
pkg install python
2).Write your program using your favourite editor.I recommend vim-py an extension of vim editor for python.To install it type command,
pkg installl vim-python
3).Run it using following command.
Python filename.py
There are thousands of turorials on youtube and on many blogs for many specific things in termux. Also Termux have a good documentation.
I hope you liked this post.
Have a nice day.
Termux allows you to install Linux applications and includes many pre-loaded. Though Termux does not have a lot of app available for now but still its cool to see things on your phone's screen that are usually only can be seen on laptops or PC screens.
You can use vi or vim editor. You can develop c/c++ programs using clang, python programs even you can install CLI based web browsers and music players on Termux. Also if you are interested in cyber security you can install metasploit on it.
Setting up Termux
You basically two thing to use termux first termux(obiuosly) and secomd a keyboard with keys like escape ,shift crtrl arrows keys cause you won't find them on your usual keyboard which you use to sent stickers and smilies.Which Keyboard to use?
I recommend using hacker's keyboard . Here the download link. Hackers's Keyboard.
Where to insall Termux?
You can download termux from most of the app stores though the official provides links to play store and F-droid.
Official site: https://termux.com
How to install new programs on Termux?
Its pretty easy to install new programs in termux and commands are given on the initial screen.
[I don't why but images appear blurry for some reason,CLICK on them for bigger size.]
How to develope C/C++ programs on Termux?
1.) You need install a compiler first.install clang,it is 114 mb in size.
2.) Now install an editor.I recommend using vim its enough for most cases.It should be preinstalled on it if Not then enter command.
pkg install vim
3.)Write your program using you favorite text editor If your using then, you can compile it after saving it by
Esc-> :wq to save and exit
To compile it and run it use the following commands.
To compile C programs
clang filename.c
To compile C++ programs
clang++ filename.cpp
How to develop on python in Termux?
1). Install python
pkg install python
2).Write your program using your favourite editor.I recommend vim-py an extension of vim editor for python.To install it type command,
pkg installl vim-python
3).Run it using following command.
Python filename.py
There are thousands of turorials on youtube and on many blogs for many specific things in termux. Also Termux have a good documentation.
I hope you liked this post.
Have a nice day.
good work. but needed to customize termux... like- font+size+color
ReplyDeleteThanks
Delete