How to install Linux system on Android phone

In our daily use of Android mobile phones, the installation of a complete Linux system will make mobile phones become extremely powerful. We can install the whole Linux / Apache / MySQL / PHP into it to run a PHP website; we can also install nodejs into it to help us do some temporary JavaScript tasks. We can use SSH tool to log in to the Linux system of this mobile phone, and even start the graphical desktop environment to manage them. In a word, installing Linux on the mobile phone can facilitate programmers to do a lot of things.

There are many technologies that can be used to install Linux on Android mobile phones. The recommended application is Linux deploy. You can download Linux deploy in Google play. If you can’t access Google play, I have a copy of the latest version of Linux deploy, version 2.0.1 (updated in February 2007), which can be downloaded by friends who like it.

Linux deploy is an open source app. With it, we can easily install and run Linux in Android phones. The Linux system installed here runs in a chroot environment, that is to say, it will use a special directory as the temporary root directory. Because the root directory is the top-level directory of the system, the app running in the chroot environment cannot access a higher directory than root. That is to say, chroot creates an independent running environment, which will not affect other things in Android phone. Your Android phone can be used normally as before.

The premise of installing Linux system in Android phone is: your phone needs root.

Another technical premise is that you should know how to remotely manage Linux system through SSH / VNC.

Let’s start with how to install Linux. First, look at the interface after Linux deploy starts

Before Android, we should first select the Linux distribution version. Linux deploy supports many popular distributions. Click the “download arrow” button in the bottom right corner of the above interface to open the select download / configure Linux Installation properties interface

Click the “distribution” in it, I can see that several popular Linux distributions are here, including Debian, Ubuntu, Kali Linux, arch Linux, Fedora, CentOS, openSUSE, Gentoo, Slackware, rootfs.

In addition to selecting the distribution version, there are several properties in the installation properties interface that you need to pay attention to

Change the “source address” to the domestic image address, otherwise the installation speed will be very slow.”Enable custom script execution” so that you can rc.local Add cron and other self starting services in”Allow ssh server to start”, this is very important, otherwise you can’t connect to your Linux server after installationIf you want to use GUI, you need to turn on the “allow GUI to start” option.

After setting these, return to the first interface, click the menu icon in the upper left corner of the first interface to pop up the menu, and click the “setting” menu to open the setting interface

In the “Settings” interface, you should pay attention to the following items:

Check “lock Wi Fi” to keep Linux connected while the phone is sleepingSelect “wake lock”, the function is the same as aboveSelect “network trigger”. When the network changes, the system will adjust accordingly.Click “update environment”. Every time you modify the “installation properties” setting, click this option to update the configuration.

After setting the above parameters, go back to the application interface, click the three buttons in the upper right corner, click “Install” inside, and wait for the installation to succeed. The whole installation process takes about 30 minutes.

After the installation is completed, the “<<

If the installation is correct, you can click “start” at the bottom of the screen, then open the SSH client from your computer, connect the Linux system you installed on your Android phone, manage, install new software, and start the services you need.

Related Article
WordPress 3D rotating tag cloud

This 3D tag cloud is not the flash version of WP cumulus n years ago. This 3D rotating tag cloud Read more

Using wampserver tool to build local PHP + MySQL environment

No matter whether we use domestic space or foreign hosts, we prefer to go online after local debugging before setting Read more

How to backup your website data with Android phone

No matter what you do, backup is very necessary and important. Backup is just in case. Most of the time, Read more

What technology is PHP composer?

If you are a programmer, you are likely to find that the wheel of technology update is too fast for Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image