Install CentOS 7 on Raspberry Pi 2

Source: Internet
Author: User

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.

# Vi/etc/sysconfig/network-scripts/ifcfg-enp0s3

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.