In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to get started with Linux deploy. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
As a programmer, whether front-end or back-end, it is naturally inseparable from dealing with the server. For example, I've always wanted to have my own linux server. But all kinds of XX cloud servers charge exorbitant prices, and the price of raspberry pie 4 generations 400 + is not high for me, so there is no other choice. Of course, just an old Android phone. Don't talk nonsense and start the process:
Of course, prepare the mobile phone and SD card.
First of all, root permission is required to run Linux deploy, and the current self-use OPPO R15 is reluctant to be used for trouble, not to mention that it does not support root. So I can only go to the omnipotent salted fish to pick one. Here I choose the configuration of the TCL_M2M,MTK6735,2+16 that went on sale a few years ago. Although equipped with spicy chicken, the minimum special effects for a king is only 30 frames, but what kind of bike do you need for 50 free delivery? If you have more money, it is recommended that you buy Xiaomi 4jing2q16 around 130. you can also experience a variety of third-party OS by brushing the machine.
After starting, upgrade directly to Android 5.1, then uninstall useless applications after root, prohibit background self-booting, and so on. If you buy an SD card, don't buy it too big, the phone may not be able to recognize it.
Configure Linux deploy
Before installing Linux deploy, you must first install Busybox, which integrates many of the commands of Linux.
After installing Linux deploy:
First of all, click the menu on the left, click "profile", and click Edit to change your favorite name.
Then click "Settings", "Lock wifi", "CPU Wake up", "Network Update" check, "PATH variable" is the most important, click and fill in / system/xbin, so that you can associate Busybox. Then click "Update Environment" below.
Then click the settings icon in the lower right corner to start the configuration. Here I will take Centos as an example:
Release: [CentOS]
Architecture: [aarch74]
Version: [7]
Source address: http://mirrors.ustc.edu.cn/centos-altarch/
Remember to change the source address to domestic source, mine is Zhongke Dayuan, Tsinghua source is not very stable, sometimes good and sometimes bad.
Installation type: [partition]
If you don't know the difference between installation types, please read this article: LinuxDeploy details
As we all know, the built-in storage / SD cards on mobile phones are in fat32 format and cannot store files that exceed 4GB. Therefore, you cannot choose the form of "image file". The image file cannot exceed 4GB, which means that your Centos system space is only 4GB at most. Just install a few packages. But is there really nothing you can do about it? Of course, take my 32GB SD card as an example, partition the SD card, 2GB fat32 format, 25GB ext4 format, 2GB cache. For specific steps, please see this article: use MiniTool Partition Wizard to partition SD cards in EXT4 format
Although the version of the software has been updated for many generations, the steps have not changed. Don't worry. Just follow it boldly.
Installation path: / dev/block/mmcblk1p2
Mmcblk1 is equivalent to sdcard1, that is, SD card, if you want to install built-in storage, it is mmcblk0, which is equivalent to sdcard0.
P2 is the second partition of mmcblk, and p1 is the first partition. Earlier, when I partitioned, I divided etx4 into the second zone, so choose p2.
File system: [etx4]
Username / password: optional
Privileged user: root
Localization: [zh_CN.UTF8]
Initialization: optional or non-optional
When checked, linux deploy will run the script in the specified path after startup
Mount: not selected
Since it has been installed on the SD card, SD has nothing else to explore.
SSH: required
The rest depends on your own needs.
3. Install the system and start working
It takes a long time to install the system. So... Be patient
After the installation, the first thing to do is to connect with SSH. The title in the previous bureau contains your current LAN ip. Just log in with the username and password you just configured. ConnectBot can be used on Android, openssh recommended on PC, or Xshell with more comprehensive features.
Here are some common software installation methods
Latest version of Nodejs
Yarn- is a better package manager than Npm.
Python3
Intranet penetration weapon-Ngrok
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
After reading the above, do you have any further understanding of how to get started with Linux deploy? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.