1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 【-01-10】树莓派配置花生壳

【-01-10】树莓派配置花生壳

时间:2022-09-26 03:20:29

相关推荐

【-01-10】树莓派配置花生壳

文章目录

基础信息系统创建与连接系统基本设置配置无线WiFi配置花生壳升级系统文件参考文献:

基础信息

硬件配置:树莓派4B 4G

SDCart烧入系统:Raspberry Pi OS Lite -10-30

系统创建与连接

首先将镜像Raspberry Pi OS Lite 5.10通过Win32 Disk Imager烧入SD卡里面。

电脑与树莓派通信的方式有很多,推荐电脑使用网线连接树莓派,通过SSH连接到树莓派系统里面(需要SD卡最顶部目录路径里面创建ssh文件没有任何后缀)。

用电脑的网线口连接树莓派进行配置

打开电脑终端通过ping raspberrypi.local获取用于SSH连接的Host地址

PS C:\Users\19095> ping raspberrypi.local正在 Ping raspberrypi.local [fe80::26a3:968d:44a3:685b%13] 具有 32 字节的数据:来自 fe80::26a3:968d:44a3:685b%13 的回复: 时间<1ms来自 fe80::26a3:968d:44a3:685b%13 的回复: 时间<1ms来自 fe80::26a3:968d:44a3:685b%13 的回复: 时间<1ms来自 fe80::26a3:968d:44a3:685b%13 的回复: 时间<1msfe80::26a3:968d:44a3:685b%13 的 Ping 统计信息:数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),往返行程的估计时间(以毫秒为单位):最短 = 0ms,最长 = 0ms,平均 = 0ms

显然我只能通过树莓派的IPv6地址进行连接,至于为什么目前不知道,有知道的大神可以评论区留言让我了解一下。

通过ssh pi@fe80::26a3:968d:44a3:685b%13进行连接fe80::26a3:968d:44a3:685b%13替换为你自己通过ping获取到的地址进行连接,初始默认密码为raspberry

系统基本设置

进入系统后,切换到超级用户这样方便后续操作,而且超级用户切换后会有一些系统提示,比如WiFi的配置问题就会显示出来,但是在配置WiFi之前进行一下其他基本设置。

切换到超级用户

sudo -i

pi@raspberrypi:~ $ sudo -isudo: unable to resolve host raspberrypi: Temporary failure in name resolutionSSH 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:~#

设置时区和地区

dpkg-reconfigure tzdata

dpkg-reconfigure locales

root@raspberrypi:~# dpkg-reconfigure tzdataCurrent default time zone: 'Asia/Shanghai'Local time is now:Mon Jan 10 20:52:24 CST .Universal Time is now: Mon Jan 10 12:52:24 UTC .

root@raspberrypi:~# dpkg-reconfigure localesGenerating locales (this might take a while)...en_GB.UTF-8... doneGeneration complete.

更改apt软件源和raspberrypi软件源

sed -i 's||mirrors./raspbian|g' /etc/apt/sources.list

sed -i 's|//|//mirrors./|g' /etc/apt/sources.list.d/raspi.list

apt-get update

配置无线WiFi

问题详情请参考参考文献3

SSID可以通过电脑连接的WiFi的属性查看得到,当然不同版本的系统查看方式不同,但基本不变的就是可以通过网络适配器查看网络信息,具体方法可以根据你的版本搜索一下。

对于古老的WEP加密方式的WiFi,通过iwconfig wlan0 essid "wifi1的ssid" key wifi1的密码这种方式对于目前WPA-PSK加密方式的WiFi是不起作用的(常见错误可能显示编码问题)。

配置花生壳

请参考文献【4】

使用dpkg -i phddns_5.1.0_rapi_aarch64.deb进行安装时,如果报错信息为

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

使用dpkg --add-architecture arm64命令后再次使用上面命令进行安装。

+--------------------------------------------------+| Oray Phtunnel Raspberry 5.1.0|+--------------------------------------------------+| SN: Default password: admin |+--------------------------------------------------+| Remote Management Address |+--------------------------------------------------+

使用phddns status出现服务未启动错误(已解决)花生壳版本安装错误,手动感谢花生壳的工作人员。

root@raspberrypi:~# phddns statusPhtunnel Service Is not working !+--------------------------------------------------+|Oray PeanutHull Linux 5.1.0 |+--------------------------------------------------+| Runstatus: OFFLINE |+--------------------------------------------------+| SN: |+--------------------------------------------------+| Remote Management Address |+--------------------------------------------------+root@raspberrypi:~#

升级系统文件

apt-get updateapt-get upgraderpi-update

出现问题请参考参考文献5

参考文献:

1. The raspi-config Tool

2. 树莓派安装Raspberry Pi OS (1月版)

3. iwconfig 无线设置问题!

4. 花生壳5.0 for 树莓派使用教程

5. 树莓派固件更新(rpi-update)的那些坑

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。