Deployment and Maintenance / Official Raspberry Pi System Deployment
This document primarily describes how to run this system on a Raspberry Pi with the official Raspberry Pi OS installed.
Always use the latest version of DataFlux Func for operations
It is recommended to use a wired network connection during the operation process to connect to the Raspberry Pi
This article is based on operations performed on the Raspberry Pi 4B 8GB version. The Raspberry Pi 3B is too weak to run.
1. Preparation
Before installing DataFlux Func on the Raspberry Pi, some preparations are needed.
1.1 Burning the Raspberry Pi SD Card
It is recommended to burn the SD card using a clean official image before installing DataFlux Func.
When burning the SD card, you can choose:
-
Use the official
Raspberry Pi Imager
tool to burn -
Directly download the official
Raspberry Pi OS
image and use third-party tools to burn
After burning is complete, simply insert the SD card into the Raspberry Pi and power it on to boot.
1.2 Enabling ARM 64-bit Mode
The official Raspberry Pi OS
does not enable 64-bit mode for backward compatibility considerations. However, for products after the Raspberry Pi 3B, enabling 64-bit mode is supported.
You can open the Raspberry Pi configuration using the following command:
Bash | |
---|---|
1 |
|
And add the following content to indicate enabling ARM 64-bit mode:
Text Only | |
---|---|
1 |
|
Save and restart the Raspberry Pi.
After restarting, you can confirm using the following command:
Bash | |
---|---|
1 |
|
The output should be as follows:
Text Only | |
---|---|
1 |
|
2. Installing DataFlux Func
The installation process of DataFlux Func on the Raspberry Pi is basically the same as on an ordinary server.
2.1 Downloading
The download process is the same as on other platforms; use the following command, which will detect the current environment architecture and download the ARM version resources.
Bash | |
---|---|
1 |
|
Bash | |
---|---|
1 |
|
GSE Edition and Old Editions
- Refer to Deployment and Maintenance / DataFlux Func GSE Edition for details about the GSE edition.
- Refer to Change Log / Download Old Versions if you need to download older versions of DataFlux Func 1.x, 2.x, 3.x, 5.x.
If you need to download the DataFlux Func installation package suitable for Raspberry Pi on a PC, specify --aarch64
in the download command.
Bash | |
---|---|
1 |
|
Bash | |
---|---|
1 |
|
2.2 Installation
After downloading, simply enter the downloaded directory and execute the following command to install:
Bash | |
---|---|
1 |
|
2.3 Initializing the System
After installation, open the DataFlux Func initialization page in your browser to proceed with the operation.
- On the local Raspberry Pi, visit
http://127.0.0.1:8088
- From another device, visit
http://{Raspberry Pi IP}:8088
2.4 Confirming Installation
After installation, log in to the system, go to "Manage / About", and you will see the "Architecture" as aarch64
:
Subsequent operations are no different from DataFlux Func installed on a regular server.
3. Configuring WI-FI Connection
If you wish to have the Raspberry Pi connect via WI-FI after installing DataFlux Func, please read this section
After installing DataFlux Func, the taskbar's WI-FI control panel may prompt No wireless interfaces found
,
and you won't be able to connect to WI-FI via the UI. Meanwhile, the wired connection can still access the network normally.
This issue has been discovered during testing, but the cause is unclear, though it does not affect the wired connection.
3.1 Fixing the Raspberry Pi WI-FI Issue
To fix this problem, open the network configuration:
Bash | |
---|---|
1 |
|
Add the following configuration:
Bash | |
---|---|
1 2 3 4 5 |
|
Save and restart the Raspberry Pi.
3.2 Confirming the Problem Fix
Use the following command to confirm the WI-FI module:
Bash | |
---|---|
1 |
|
The output content should be:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 |
|
Use the following command to confirm the WI-FI network connection:
Bash | |
---|---|
1 |
|
The output content should be:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 |
|
Finally, open the browser and if you can access the internet normally, it means the WI-FI problem has been fixed.
You can also directly use cURL to verify whether the connection is successful:
Bash | |
---|---|
1 |
|
Even if the WI-FI problem has been fixed, the WI-FI control panel in the taskbar may still display No wireless interfaces found
X. Appendix
This section records some content related to the Raspberry Pi for reference.
X.1 Maximizing Raspberry Pi Performance
Open the /boot/config.txt
file
Bash | |
---|---|
1 |
|
Add the following content according to your needs:
Text Only | |
---|---|
1 2 3 4 5 |
|
Even without the above settings, normal use is possible, and passive cooling with just a metal case is sufficient
This setting involves overclocking, and full load operation cannot rely solely on a metal case for passive cooling; at least one fan is required
More aggressive configurations can further enhance Raspberry Pi performance, but will void the warranty
If your Raspberry Pi is damaged due to overclocking, the author of this article assumes no responsibility. Please think carefully before proceeding
X.2 Raspberry Pi Stress Testing Program
You can use the Raspberry Pi stress test tool to test the stability of the Raspberry Pi's operation (especially after overclocking).
Pull the project repository
Bash | |
---|---|
1 |
|
The original author's Github repository address is: github.com/xukejing/rpi-cpu-stress
Add executable permissions
Bash | |
---|---|
1 2 |
|
Start the stress test
Text Only | |
---|---|
1 |
|
In the terminal, you can see the following output:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 |
|
a72 freq: 2100000
: Indicates the current CPU frequency is 2.1Ghztemp: 50634
: Indicates the temperature is 50.634 degrees Celsius
Do not let the Raspberry Pi stay at high temperatures (above 80 degrees Celsius) for long periods
X.3 Installing Chinese Input Method on Raspberry Pi
Execute the following command in the terminal to install the "Zhongzhou Yun" input method:
Bash | |
---|---|
1 |
|
After completion, add the "Zhongzhou Yun" input method under "Preferences -> Fcitx Configuration -> Add Input Method".
X.4 Installing Chinese Fonts on Raspberry Pi
Execute the following command in the terminal to install the "WenQuanYi" font:
Bash | |
---|---|
1 2 |
|