Home  >  Article  >  Operation and Maintenance  >  What is the function of linux deploy

What is the function of linux deploy

WBOY
WBOYforward
2023-05-24 16:04:124231browse

linux deploy is used to deploy a Linux environment on Android devices. The principle is probably to run a chroot or proot container on the Linux layer of Android, and then run what we prepared in the container. Another Linux system. You must obtain root permissions on your phone before you can use Linux Deploy.

Linux Deploy is an application that can deploy a Linux environment on Android devices. Its principle is to run a chroot or proot container on the Linux layer of Android, and then run it in the container when we are ready. Another Linux system. It is worth noting that this is different from the virtual machine technology we are familiar with. The new Linux system will run in parallel with the Android system (don’t delve into the explanation for non-professionals).

Before using Linux Deploy, we need to obtain the Root permission of the mobile phone (required) . After obtaining the Root permission, because the Linux command set that comes with the original machine is incomplete, we need Install Busybox to expand the Linux command set (you can not install it) .

Linux Deploy needs to be installed in the Google Store, which is not available in other Android app stores. The software mentioned below can only be installed in the Google Store
linux deploy的作用是什么

After the installation is completed, we will use Linux Deploy to deploy the Ubuntu system on the Android device:

Click the "Download" icon at the bottom right of the interface to enter the configuration file setting interface and make the following settings (I I don’t know why the developer would use such a "download" icon as the icon of the configuration file setting interface):

 Containerization method:"chroot"

 Distribution version:"Ubuntu"

Architecture: Keep the default value

Distribution version: "yakkety" (i.e. Ubuntu 16.10)

Source address: http://mirror.tuna.tsinghua.edu.cn/ubuntu -ports/(Here we use the default method of deployment, that is, download Linux components and necessary software packages from the software source. Because the default source speed is not good, in order not to download all day and night, we use the open source of Tsinghua University here. Mirror source, if you use Repository to deploy (will be discussed in a later article), the "source address" here should fill in the local or remote path of the Repository file (suffix is ​​tgz/tar.gz) file)

Installation type: There are two suggestions for this option, "directory" and "file". If you are not familiar with Linux and the remaining space of the /data partition is ≥ 2g, it is recommended to use the "directory" installation method. If you are familiar with Linux Or if the remaining space of the /data partition is

Installation path: When "Installation Path" selects "Directory", this option will define the path in which the system is installed. The default path is ${ENV_DIR}/rootfs/linux, that is, installation In the /data/user/0/ru.meefik.linuxdeploy/env/rootfs/linux directory. When "Installation Type" selects "File", this option will define which image file the Linux system is installed in. The default value is External Storage/linux.img.

Image size (MB) (available when the installation type "selects "File"): This option will define the size of the image file where the system is located. Before system installation, a file with the set image size will be created in the installation directory. Empty files are used to store system files and data (equivalent to the total disk space of the new Linux system). It is recommended not to use the default value, filling in 2048m is enough.

File system (available when the installation type "Select "File" ): Select "Auto".

Username: This option is the username when logging into the system. The default is "android" and can be changed at will.

User password: This option is the password of the user in the Ubuntu system, which can be filled in according to your own habits.

Privileged Users: Keep the default value

DNS server: You can keep the default value, or you can customize the DNS server address (such as 114.114.114.114, etc.)

Localization: It is recommended to keep the default value POSIX. If there are other requirements, such as making the ssh return result in Chinese or making the display language of the graphical interface Chinese, select "zh_CN.UTF8"

INIT/MOUNTS item: If necessary It can be set when required and can be ignored if not required.

Allow SSH server to start: turn on this option

SSH settings: Keep the default

Allow the graphical interface to start: You can set it if necessary, but this option will not be turned on here for the time being (the following article will introduce how to deploy the graphical interface).

linux deploy的作用是什么

After the setting is completed, press the return key to return to the main application interface, press the menu key, and select "Install" to start the Linux system. Installation, you need to maintain a network connection during the installation process (it is recommended to install under WIFI, which requires about a few hundred megabytes of traffic).

When you see the terminal output ">>>deploy", it means the installation has started:

linux deploy的作用是什么
## When you see the terminal output "c5113fa0005f26590bf8bba5cb2fce51= 2.0.4)' is not installed." Need to modify the /etc/apt/source.list file
## /etc/apt/source.list
deb http://ports.ubuntu.com/ focal multiverse main universe
deb-src http://ports.ubuntu.com/ focal multiverse main universe
deb http://ports.ubuntu.com/ focal-updates main universe multiverse
deb-src http://ports.ubuntu.com/ focal-updates main universe multiverse
deb http://ports.ubuntu.com/ focal-security main universe multiverse
deb-src http://ports.ubuntu.com/ focal-security main universe multiverse

The above is the detailed content of What is the function of linux deploy. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete