通过win写入wifi配置文件连接wifi
读卡器写好系统以后,打开读卡器,新建文件,文件名为wpa_supplicant.conf,写入以下
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=""
psk=""
key_mgmt=WPA-PSK
priority=1
}
SSID:是wifi名称,PSK是wifi密码。
保存后弹出即可
树莓派4B Ubuntu20.04.01Server(64bit)命令行连接蓝牙
https://blog.csdn.net/qq_25231683/article/details/120016910
树莓派4B Ubuntu20.04安装桌面环境
包括系统面板、窗口管理器、文件浏览器、终端等各类桌面应用程序
apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal ubuntu-desktop
报错Could not get lock /var/lib/apt/lists/
是因为系统正在更新,占用文件夹
安装python3-pip
sudo apt-get install python3-pip
从预编译文件安装opencv-python
sudo apt update
sudo apt upgrade
pip3 install opencv-python
安装frp实现内网穿透
FRP内网穿透简单教程_不理之山的博客-CSDN博客_frp github
报错:./frpc: 1: Syntax error: end of file unexpected (expecting ")")
原因:树莓派4B是arm64架构,教程中使用的是amd架构的frp包,运行时编译不成功
解决方法:将wget命令下网址中的amd64改为arm64再次安装运行即可解决。
![](https://img-blog.csdnimg.cn/fa1e902a5cb04b54862acd72af4867c8.png)
![](https://img-blog.csdnimg.cn/74d7c7ef6dfb41e3b6f6aa9f39e54c68.png)
更改配置...(省略)
![](https://img-blog.csdnimg.cn/2607bde26fc444a5802d3cab66c10664.png)
使用树莓派3B配置frp运行时报错:./frpc: 1: Syntax error: "(" unexpected
同样的原因:树莓派3B是arm架构32位,下载的frp包是arm64位
解决方法:将wget命令下网址中的arm64或amd64改为arm(注意不是arm32)重新下载配置即可
![](https://img-blog.csdnimg.cn/28cb695f225c41fab635860986f72a96.png)
树莓派4B Ubuntu20.04 WIFI配置静态ip
树莓派4B Ubuntu1804 设置WiFi/有线 静态IP_nameLessor的博客-CSDN博客
修改yaml文件,报错tabs are not allowed for indent
缩进不允许使用制表符,直接空格即可
netplan apply报错Error: Conflicting default route declarations for IPv4 (table: main, metric: default)
netplan apply会根据gateway4生成默认路由,保留一个gateway4即可
PS:设置静态ip为x.x.x.255时,ssh连接失败,改为x.x.x.250即可
最终成功文件
network:
wifis:
wlan0:
access-points:
"WIFI名称":
password: "WIFI密码"
dhcp4: false
dhcp6: no
addresses: [192.168.137.250/24]
gateway4: 192.168.137.1
nameservers:
addresses: [114.114.114.114, 8.8.8.8]
version: 2