In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install deploy in Linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install deploy in Linux system.
Introduction to Deploy: Linux deploy is an App that can quickly install and run the Linux operating system on Android devices, following the GPLv3 protocol.
Second, the preparatory work 1. An Android device (phone over tablet)
Equipment hardware requirements: it is recommended that the RAM is 1G or above, and the free capacity of the mobile phone ROM is about 4G.
Device software requirements: Android version 4.0 or above is recommended. The system must have ROOT permissions.
2.Busy Box Android software
Software introduction: BusyBox is a software that integrates more than 300 of the most commonly used Linux commands and tools. BusyBox contains simple tools such as ls, cat, and echo, as well as larger and more complex tools such as grep, find, mount, and telnet. Some people call BusyBox the Swiss Army knife in the Linux tool. To put it simply, BusyBox is like a big toolbox, which integrates many tools and commands that compress Linux, as well as the shell that comes with the Android system. (from: Baidu encyclopedia)
In this lab, Busy Box is the most important dependent software for Linux Deploy: https://github.com/meefik/busybox/releases (the latest version is used in this article)
3.Linux Deploy Android software
Software introduction: Android platform virtual machine (chroot runs linux container)
Software address: https://github.com/meefik/linuxdeploy/releases (this article uses the latest version)
Third, installation Note: if the Android device does not have ROOT permissions, you must first ROOT the device (Baidu)
1. Install Busy Box
Install the downloaded Busy Box software on the Android device, then open the device, click the three points in the upper right corner, and then click Setting to set up.
You can set skin color, font size, number of lines scrolling on the screen, and so on.
Note: do not change the installation path, you need to use it later! (it's okay to change it, but remember, it's embarrassing if you can't find it later.)
The rest of the settings can be set like this, the log file can be opened or closed, it is recommended to close, debug mode is also turned off. After the setup is completed, return to the main interface, then click the installation button, wait for the installation to complete and output # # END in the interface, then click the three dots in the upper right corner, and then click the information button to see the output system information:
two。 Install Linux Deploy
After the installation is completed, open Linux Deploy and you can see the main interface as follows:
Then we click the three horizontal bars in the upper left corner and click Settings:
Here are some display-related settings. The lock wifi in the first three must be ticked, the CPU to wake up must also be ticked, and the screen must be turned off to avoid power consumption.
The following are recommended to turn on your own requirements settings and boot, to prevent the service from being disconnected without turning on the phone after some problems are restarted.
The most important thing here is the PATH variable, which is not changed as mentioned earlier. Just fill in it (if you change it, fill in the changed path). This is the most important part to set up the system installation:
Click on the three horizontal bars in the upper left corner of the main interface, then click on the configuration file, and then create a new file name, which can be defined at will. This article is to install the CentOS system and use it to name it.
Click the settings icon in the lower right corner of the phone to set system-related information
The container here is chroot (proot is very unstable). In this article, you can choose CentOS. You can choose another distribution to install the architecture. You must choose the right one here, otherwise the installation will go wrong, or you can't use it normally after installation. You must know the architecture of your phone's cpu. My Xiaomi 4 is a Xiaolong 801 processor. In theory, you can use x86, but I always make mistakes in installation, so I choose a downwards compatible armhfp. This architecture is supported by most mobile phones. The source address can be switched to the domestic source by default. The installation speed of the domestic source is relatively fast. The source address of Ali is http://mirrors.aliyun.com/centos/, and there are many domestic ones, such as NetEase, etc. The installation type selects the image installation, and the installation address can be changed by default. / linux refers to the address under the linux folder of the mobile phone sdcard root directory.
Set the image size 2000mb up (if it is used as a server, it is recommended to use partition installation, so that you can use all the space of the whole phone), ext4 is recommended for the file system, and you can fill in other custom information. The user name and password are needed to enter the system later. DNS is fine automatically, or change it to 114.114.114.114 or 8.8.8.8 or 1.1.1.1, etc.
The setting here is also very important. Be sure to enable SSH, otherwise you will not be able to log in to the system later, and the mount point will also be checked and set. In this document, the entire sdcard will be mounted to the / mnt/sdcard of the Linux system, as shown below:
Here are some desktop settings. This article does not install the desktop, so some items are not checked. If you need the desktop version, you can check it yourself.
Start installing the system
After setting up and returning to the main interface, click the installation options in the three points on the upper right, start the installation of the system, and then wait for the installation. The following is a screenshot of the installation of the system:
See the following output
Start the linux system
Click the stop button once before starting the system:
When you see the stop message above, click the OK system button:
See the startup message above, which means that the system started successfully.
4. installation configuration verification after the installation startup work is completed above, let's verify whether the installation is successful, open the system terminal with the computer and start the connection test:
We use root users to log in normally, which is the same as the normal Linux system, but because we are running under chroot, some commands are not supported. Please know more about Baidu chroot.
Note: this article uses the Linux system, you can directly use the SSH command on the terminal to test the connection. If you window, you can use software such as xshell or putty to test the connection. If you do not have a computer, you can use the software to install programmer tools on your mobile phone or ConnectBox connection verification.
At this point, I believe you have a deeper understanding of "how to install deploy in the Linux system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.