[January 10, 2022] raspberry pie with peanut shell

Posted by mogster on Mon, 10 Jan 2022 15:01:39 +0100

Basic information

Hardware configuration: Raspberry pie 4B 4G
SDCart burn in system: Raspberry Pi OS Lite 2021-10-30

System creation and connection

Mirror first Raspberry Pi OS Lite 5.10 adopt Win32 Disk Imager Burn it into the SD card.
There are many ways for the computer to communicate with raspberry pie. It is recommended that the computer use an Internet cable to connect raspberry pie and connect to the raspberry pie system through SSH (you need to create an SSH file in the directory path at the top of the SD card without any suffix).
Connect the raspberry pie with the Internet port of the computer for configuration
Open the computer terminal and Ping raspberrypi Local gets the Host address used for SSH connections

PS C:\Users\19095> ping raspberrypi.local

Is Ping raspberrypi.local [fe80::26a3:968d:44a3:685b%13] Data with 32 bytes:
come from fe80::26a3:968d:44a3:685b%13 Reply from: time<1ms
 come from fe80::26a3:968d:44a3:685b%13 Reply from: time<1ms
 come from fe80::26a3:968d:44a3:685b%13 Reply from: time<1ms
 come from fe80::26a3:968d:44a3:685b%13 Reply from: time<1ms

fe80::26a3:968d:44a3:685b%13 of Ping statistical information :
    data packet: has been sent = 4,Received = 4,lose = 0 (0% lose),
Estimated round trip time(In Milliseconds ):
    minimum = 0ms,Longest = 0ms,average = 0ms

Obviously, I can only connect through the IPv6 address of raspberry pie. As for why I don't know at present, some great gods who know can leave a message in the comment area to let me know.
Via SSH pi@fe80 : 26a3:968d: 44a3:685b% 13 connect fe80::26a3:968d:44a3:685b%13 replace it with the address you obtained through ping. The initial default password is raspberry.

Basic system settings

After entering the system, switch to super user to facilitate subsequent operations, and there will be some system prompts after super user switching, such as WiFi configuration problems will be displayed, but make other basic settings before configuring WiFi.
Switch to super user
sudo -i

pi@raspberrypi:~ $ sudo -i
sudo: unable to resolve host raspberrypi: Temporary failure in name resolution

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.


Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

root@raspberrypi:~#

Set time zone and region
dpkg-reconfigure tzdata
dpkg-reconfigure locales

root@raspberrypi:~# dpkg-reconfigure tzdata

Current default time zone: 'Asia/Shanghai'
Local time is now:      Mon Jan 10 20:52:24 CST 2022.
Universal Time is now:  Mon Jan 10 12:52:24 UTC 2022.
root@raspberrypi:~# dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_GB.UTF-8... done
Generation complete.

Change apt software source and raspberrypi software source
sed -i 's|raspbian.raspberrypi.org|mirrors.ustc.edu.cn/raspbian|g' /etc/apt/sources.list
sed -i 's|//archive.raspberrypi.org|//mirrors.ustc.edu.cn/archive.raspberrypi.org|g' /etc/apt/sources.list.d/raspi.list
apt-get update

Configure wireless WiFi

Please refer to reference 3 for details
SSID can be viewed through the properties of WiFi connected to the computer. Of course, different versions of the system have different viewing methods, but basically the same thing is that you can view network information through the network adapter. The specific method can be searched according to your version.
For the old WEP encryption WiFi, the password of iwconfig wlan0 ESSID "SSID of WiFi 1" key WiFi 1 will not work for the current WPA-PSK encryption WiFi (common errors may show coding problems).

Configure peanut shell

Please refer to reference [4]
Use dpkg - I phddns_ 5.1.0_ rapi_ aarch64. During DEB installation, if the error message is

dpkg: error processing archive phddns_5.1.0_rapi_aarch64.deb (--install):
 package architecture (arm64) does not match system (armhf)
Errors were encountered while processing:
 phddns_5.1.0_rapi_aarch64.deb

After using the dpkg -- add architecture arm64 command, use the above command again for installation.

+--------------------------------------------------+
 |           Oray Phtunnel Raspberry 5.1.0          |
 +--------------------------------------------------+
 |  SN:    Default password: admin  |
 +--------------------------------------------------+
 |    Remote Management Address http://b.oray.com   |
 +--------------------------------------------------+

Service not started error using phddns status

root@raspberrypi:~# phddns status
Phtunnel Service Is not working !
 +--------------------------------------------------+
 |          Oray PeanutHull Linux 5.1.0             |
 +--------------------------------------------------+
 |              Runstatus: OFFLINE                  |
 +--------------------------------------------------+
 |              SN:                 |
 +--------------------------------------------------+
 |    Remote Management Address http://b.oray.com   |
 +--------------------------------------------------+
root@raspberrypi:~#

reference:

The raspi-config Tool
Raspberry pie installation raspberry PI OS (January 2022 version)
iwconfig wireless setting problem!
Peanut shell 5.0 for raspberry pie tutorial

Topics: Linux Operation & Maintenance server