Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install ArchLinux for raspberry pie

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Raspberry pie how to install ArchLinux, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

ArchLinux is a distribution of Linux, with simplicity and lightweight as its design philosophy. Archlinux is optimized for specific processors and can make better use of CPU cycles to improve performance. Compared to Debian/Ubuntu, SUSE, RedHat/Fedora, and other distributions, Archlinux is a lightweight player, and its simple design makes it easy to extend and configure to any desired system type.

Because of its small and beautiful features, ArchLinux is ideal for running in environments such as raspberry pie. The official raspberry pie website once provided a mirror download of ArchLinux, but I don't know why it was later unlinked. If you have a raspberry pie ArchLinux image, you can directly use the dd command (under Linux) or win32diskimager (under windows) to copy the image to the SD card. May cause a waste of disk space, to make rational use of the disk, you need to manually install the ArchLinux system for the raspberry pie. The installation steps are as follows:

Download the latest version of ArchLinux for Arm's system:

Raspberry pie 2: http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz

Raspberry pie BBQ: http://archlinuxarm.org/os/ArchLinuxARM-rpi-latest.tar.gz

Step 1: partition the SD card with fdisk:

Fdisk / dev/sdX

Step 2: after entering the interface of fdisk, delete the original partition and create a new partition

A, enter o and enter to clear the original partition.

B, type p to list the current partition, and you should not see any partitions at this time.

C, enter n, enter p and select to establish the primary partition, then enter 1, then enter directly to select the default start sector, and then enter + 100m as the end sector (specify the 100MB space for the first partition).

D, type tQuery c, and set the partition type of the first partition to W95 FAT32 (LBA).

E, enter nmenp to establish the first primary partition, then enter 2 as its partition number, and then enter twice to accept the default start and stop sector settings.

F, enter w to write partition data and exit fdisk.

Step 3: create and mount the FAT file system

Mkfs.vfat / dev/sdX1

Mkdir boot

Mount / dev/sdX1 boot

Step 4: create and mount the ext4 file system

Mkfs.ext4 / dev/sdX2

Mkdir root

Mount / dev/sdX2 root

Step 5: extract the file to the root directory

Tar xzvf ArchLinuxARM-rpi-latest.tar.gz-C root

Sync

Step 6: move the files in boot to the first partition

Mv root/boot/* boot

Step 7: uninstall the partition

Umount boot root

Step 8: insert the SD card into the raspberry pie and plug it into the power supply to light up.

Note that in your system, you need to replace the above sdX with the corresponding number

The default password for root users is root

Root users can not log in remotely by default, they can log in using alarm users, and their default password is alarm.

After reading the above, have you mastered how to install ArchLinux in raspberry pie? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report