Use Linux commands on Android devices

Introduction

I was playing with my smartphone, and suddenly I wish I could use Linux commands on my smartphone. There was ... a convenient app that can use Linux commands ... It is distributed for free on the Play Store with an app called "Termux".

You can also manage packages with the familiar apt command.

Try using

This time, I will try to insert apache2, create an html file, and display "Hello World" on the browser. Screenshot_20200313-212241.jpg

For the time being, the usual

apt update
apt upgrade

Then, insert apache2. By the way, vim

apt install apache2
apt install vim

So, the directory to create the html file is /data/data/com.termux/files/usr/shere/apache2/default-site/htdocs/ Put the file name in index.html and write it like this.

Screenshot_20200313-220505.jpg

And if you search for http: //localhost:8080/index.html in your browser Screenshot_20200313-221044.jpg

I was able to display it.

Summary

Termux is amazing (small average feeling) Since SSH connection is also possible, can you do anything relatively? I want a Bluetooth keyboard ...

Recommended Posts

Use Linux commands on Android devices
Use Github Desktop on Linux
Use sshpass on Amazon linux2
Use Linux on Windows 10 (WSL2)
Use host.docker.internal on linux (docker-compose required)
Linux commands
Linux commands
Linux commands
Linux commands
Use Numpy, Scipy, scikit-learn on Amazon Linux
I want to use Linux on mac
Network Linux commands
Verbalize Linux commands
Why use linux
Linux user commands
New Linux commands! !!
Various Linux commands
Typical Linux commands (7)
How to use Python Kivy ④ ~ Execution on Android ~
Daemonizing processes on Linux
jblas on Arch Linux
Beginners! Basic Linux commands and how to use them!
How to use C216 Audio Controller on Arch Linux
Linux (WSL) on Windows
Frequently used Linux commands
NAT router on Linux
Frequently used Linux commands
Frequently used linux commands
[Linux] Group related commands
Linux commands to remember
Use pyvenv on Windows
New Linux commands! !! Part 2
Develop .NET on Linux
Wake on lan on Linux
Preparing to use Ansible on an existing Linux server
I want to use OpenJDK 11 on Ubuntu Linux 18.04 LTS / 18.10
Monitor traffic on Linux
Update vscode on linux
Use Ansible on Windows
Use exa rather than ls! Introducing modern Linux commands
Try NeosVR on Linux
Use QuTiP on Windows
Use pip on Windows
Check capacity on Linux
[Tips] How to use iPhone as webcam on Linux
Linux operation on Win10
How to use linux commands in Visual Studio Code terminal
[For beginners] How to use for statements on Linux (variables, etc.)
What to do if you can't use WiFi on Linux
Install Minecraft on Arch Linux
Studying Linux commands and frustration
Use matplotlib on Ubuntu 12 & Python
Install Linux on your Chromebox
Downgrade Mcomix on Arch Linux
Use music21 on Google Colaboratory
Monitor disk usage on Linux
Install the JDK on Linux
Elixir = Comfortable on Linux Mint
Recording and playback on Linux
Check TTL on Linux router
Read core voltage on Linux