Install CentOS 7 on Raspberry Pi 2
Karanbir Singh from the CentOS team is pleased to announce that CentOS7 Linux for ARM hardware architecture has been officially released. In addition to the brief announcement on Twitter, the official website does not comment on the new features and optimizations of the transplanted version. However, according to the image name, we know that it supports many ARMv7 devices, but the current pre-compiled image only supports popular Raspberry Pi 2, banana Pi, and CubitTruck Single Chip Microcomputer versions. Earlier in the year, CentOS7 build1511 introduced a variety of new features, as well as software updates and enhancements, for example, Kerberos HTTP proxy for identity authentication management, ECC Support For TLS connections in OpenJDK7, network stack improvement, and Atomic package update.
: FTP http://mirror.centos.org/altarch/7/isos/armhfp/.
I use Ubuntu16.04 to write directly...
The first time the system is inserted, the system will not start normally. Mine is, then the power supply is disconnected, and then the Raspberry Pi is restarted to connect to the ssh Raspberry Pi ....
We switched to the windows platform and used Xshell to connect...
Step 1 update the system
Obtain the latest software list yum update, and then let you choose whether to download the update, y will do ....
Step 2: set static IP addresses (recommended)
Configure static IP addresses, routes, and DNS. We will use the ip command instead of the ifconfig command. Of course, the ifconfig command is still available for most Linux distributions and can be installed from the default library.
# Yum install net-tools [It provides ifconfig tool. If you are not familiar with ip commands, you can also use it]
You must know the IP address of the xshell connection, or you can
# View ip addr show ..
Now open and edit the file/etc/sysconfig/network-scripts/ifcfg-enp0s3 in your editor. Here, I use the vi editor, and make sure that you are the root user to save the changes.
We will edit four parts in the file. Pay attention to the following four places and never touch anything else. Double quotation marks are also retained to input your data among them. IPADDR = "[enter your static IP address here]"
GATEWAY = "[enter your default GATEWAY]"
DNS1 = "[your DNS 1]"
DNS2 = "[your DNS 2]"
Restart the network service and check whether the IP address is the same as that allocated. If everything goes smoothly, use Ping to view the network status.
# Service network restart
If you need other functions, CentOS 7 will be able to complete... it's over now. Thank you!
This article permanently updates the link address: