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.
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.