Ref: Arch Linux ARM, theramiyer
Connect your SD card into your computer.
You have to login as root to do the following step, not via sudo.
Start cfdisk
to partition the SD card.
We suggest the following size for each partition.
Mount point | Partition | Partition type | Suggested size |
---|---|---|---|
/boot | /dev/efi_system_partition | EFI system partition | 200MiB |
/root | /dev/root_partition | Linux ARM root (/) | Remainder of the device |
Create and mount the EFI/FAT filesystem.
Create and mount the ext4 filesystem.
Download and extract the root filesystem (Again, as root, not via sudo)
The sync
writes any data buffered in memory out to disk. This can include (but is not limited to) modified superblocks, modified inodes, and delayed reads and writes.
Move boot files to the first partition.
Unmount the two partitions.
Insert the SD card into the Raspberry Pi, connect ethernet if your Raspberry has RJ45, and apply 5V power.
Default user:
username: alarm
password: alarm
Default root password: root
Notice that we haven't complete the installation yet, you can NOT login as root directly right now.
The user alarm has root privilege.
Now we don't have sudo
yet. Type su
to use root.
Once the command completes, you should get your prompt back. Ping any domain on the web to see if you're connected.
Arch Linux allows SSH by default. If you would like to connect to the Pi using SSH from your personal computer instead of attaching a keyboard and a mouse and HDMI and everything, by all means, please do.
Uncomment the following command to activate it.
Type visudo
, uncomment %wheel ALL=(ALL) ALL
.
Add user to group wheel.
Uncommit en_US.UTF-8 UTF-8
and others language you need in /etc/locale.gen
. Generate the locales by executing:
Create the locale.conf file, and set the LANG variable accordingly:
Note that tmux
needs en_US.UTF-8
locale.
Create the hostname file:
Add matching entries to hosts:
If the system has a permanent IP address, it should be used instead of 127.0.1.1.
The default app in Raspberry Pi is wpa_supplicant
. We strongly suggest you to use NetworkManager.
Then, just type
to configure network.
Yet Another Yogurt - An AUR Helper Written in Go
FRP is a fast reverse proxy that allows you to expose a local server located behind a NAT or firewall to the Internet. It currently supports TCP and UDP, as well as HTTP and HTTPS protocols, enabling requests to be forwarded to internal services via domain name.
Modify /etc/frp/frpc.ini
on Raspberry Pi and set the server_addr
field to the public IP address of your frps server. We assume that your FRP server uses fp-multiuser
plugin.
Enable the service
Now, you can type the following command to connect to Raspberry Pi via SSH.
You can use Raspberry Pi to do WOL.
To check the target machine receives the package correctly, type the following command:
You can set to execute WOL while logging. If you are using zsh, the logging script should be written in ~/.zprofile
.
Install the following program
and use s-tui
to stress the CPU.