I transformed my old Android phone into a Linux server

table of Contents

  • Blind Bibi

  • Don't say anything, first look at the effect?

  • What materials and equipment are needed?

  • root phone

  • Install Linux system on Android phone

  • At last

Blind Bibi

Since there is no student status, the price of buying cloud servers is getting more and more expensive, whether it is Alibaba Cloud or Tencent Cloud. I wondered if I could find any alternatives, which reminded me of what I had seen inadvertently before, and I could transform my Android phone into Linux.

First look at the effect

Three must-have software

Start mobile Linux

Connected to the Linux command line through juice ssh and ran the python output statementimage

The Linux computer connected to the mobile phone in the iPad can also be connected through the local area network, and no more examples will be given here.

What materials and equipment are needed?

  • Android phone with a screen

  • APP software: Linux deploy, busybox, juice ssh

What if you do n’t have a used Android phone but want to toss about it? It is recommended to buy a second-hand millet 5 on the salted fish, why recommend millet 5? First of all, Xiaomi 5 has been produced for some time, so it can be bought for two or three hundred yuan, and it has NFC function, which can be used as a subway card or an access control card.

root phone

First, there are two ways to configure the phone as a Linux server. One is that Xu needs a root phone, the function after root is more powerful, and the other is that it is impossible to root the phone. This is a castrated version, depending on your choice.

  • note

Be sure to use an abandoned mobile phone for testing, because the root mobile phone needs to clear the mobile phone data.

  • I can root the phone

I provide Huawei root method here, please search for other models by yourself.
Huawei: Huawei does not provide root service now, you can find the universal Taobao, search: root Huawei phone

  • I can't root my phone

If you cannot root your phone, here are alternative products. termux is an APP that can install Linux on a mobile phone without root, but many Linux commands are unavailable. It is still possible to run a python command line.

Install Linux system on Android phone

At this step, then I assume that you have rooted your Android phone. First, install the three apps in the screenshot above,

  • Linux deploy: To load Linux, root permission is required.

  • Juice ssh: mobile terminal APP.

  • BusyBox: Expand Android phone commands, because after installing Linux, many Linux commands are not available and require root permissions.

Juice ssh and BusyBox are very simple, and I wo n’t go into details here. The only thing I need to say is Linux deploy.
My configuration has been posted, and the buttons in your upper left and lower right corners should be configured as shown in the figure. As for the hairstyle version of Linux, you can choose according to your preferences. I chose CentOS7 here, and provide the CentOS source address:

http://chinanet.mirrors.ustc.edu.cn/centos-altarch/

basic configuration

Display debugging information

Open SSH, the outside world can connect

Modify the Linux hairstyle version, choose the configuration you like, and then install it. This will take half an hour. Wait patiently. When you see:

extra/ssh ... done

At the time, it means that the installation is complete, if it fails, try a few more times, or change the distribution. Reaping a sense of accomplishment, is there any?

At the end of the article, I recommend to you the simplest and most effective way to improve learning: brain map + video + information

In this also own a share included finishing Ali P6P7 Andrews [+] Advanced information sharing raises questions quit the necessary surface , as well as advanced technical architecture Advanced Brain Mapping, Android interview with thematic development, advanced materials advanced architecture of these These are all fine materials that I will read repeatedly in my spare time. In the brain map, each topic of knowledge points is equipped with a corresponding actual combat project, which can effectively help you master the knowledge points.

In short, it is also here to help you learn and advance, and save everyone the time to search for information on the Internet to learn, and you can also share with your friends to learn together.

Published 488 original articles · praised 85 · 230,000 views +

Guess you like

Origin blog.csdn.net/Coo123_/article/details/104479784