In the Post i am telling to you about Termux android app and Termux Tutorials. Termux is most popular linux environment app for Android Devices.
What is Termux ?
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically – additional packages are available using the APT package manager. It combines powerful terminal emulation with an extensive Linux package collection.
• Enjoy the bash and zsh shells.
• Edit files with nano and vim.
• Access servers over ssh.
• Develop in C with clang, make and gdb.
• Use the python console as a pocket calculator.
• Check out projects with git and subversion.
• Run text-based games with frotz.
Secure. Access remote servers using the ssh client from OpenSSH. Termux combines standard packages with accurate terminal emulation in a beautiful open source solution.
Feature packed. Take your pick between Bash, fish or Zsh and nano, Emacs or Vim. Grep through your SMS inbox. Access API endpoints with curl and use rsync to store backups of your contact list on a remote server.
Customizable. Install what you want through the APT package management system known from Debian and Ubuntu GNU/Linux. Why not start with installing Git and syncing your dotfiles?
Explorable. Have you ever sat on a bus and wondered exactly which arguments tar accepts? Packages available in Termux are the same as those on Mac and Linux – install man pages on your phone and read them in one session while experimenting with them in another.
With batteries included. Can you imagine a more powerful yet elegant pocket calculator than a readline-powered Python console? Up-to-date versions of Perl, Python, Ruby and Node.js are all available.
Ready to scale up. Connect a Bluetooth keyboard and hook up your device to an external display if you need to – It supports keyboard shortcuts and has full mouse support.
Tinkerable. Develop by compiling C files with Clang and build your own projects with CMake and pkg-config. Both GDB and strace are available if you get stuck and need to debug.
Some extra features available. You can add them by installing addons:
- Termux:API – Access Android and Chrome hardware features.
- Termux:Boot – Run script(s) when your device boots.
- Termux:Float – Run in a floating window.
- Termux:Styling – Have color schemes and powerline-ready fonts customize the appearance of the terminal.
- Termux:Task – An easy way to call Termux executables from Tasker and compatible apps.
- Termux:Widget – Start small scriptlets from the home screen.
Where Get IT
How To Install Package in Termux
pkg install <package name>
How To search Package
pkg search <query>
How To Upgrade Package
pkg uninstall <pkg name>
Install Mosquitto MQTT Broker
After Installation, Run Termux app. Then at the prompt type
pkg install mosquitto
Prompt type :
apt update apt upgrade apt install coreutils nano nodejs npm i -g --unsafe-perm node-red node-redThen you can point a browser to
Install C language
pkg install clang
pkg install python
pkg install nodejs
Install Go programming language
apt install golang
Install PHP language
apt install php
How To use SSH
pkg install dropbear pkg install openssh
Find IP address
Install nano Editor
pkg install nano
Install Git GitHub tool
apt install git
Control Raspberry Pi
If you have a headless Pi, then you can Control and use Raspberry Pi via SSH using Termux. How to setup truly headless RPi – How To Use Raspberry pi in a truely headless mode
apt update apt upgrade apt install apache2
Remember Apache directory is this /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
For example I have read.txt if you want to move this read.txt to Apache directory then I use this command
mv read.txt /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
To start apache2 server in Termux type this command :
Now open browser and type localhost:8080/read.txt
Can I install all the Termux packages?
Probably no, some packages are known to conflict with each other, e.g. Dropbear and OpenSSH. But you can still install most of packages, this will take approximately 3.5 GB of space on internal storage.
apt install *in an empty directory. This will produce an error, and this is exactly the result you want for step one. Study the output to find out conflicting packages, then find a way to select only packages that don’t cause conflicts.
I hope you like this post “Termux Tutorials – Linux Environment Android app”. Do you have any questions? Leave a comment down below!
Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog.
You may like also:
- How To Create Secure MQTT Broker
- Setting up Authentication in Mosquitto MQTT Broker
- IoT Communication APIs
- IoT Enabling Technologies
- Best Arduino IDE alternatives to start programming
- Best IoT Visual Programming Tools