草莓派安装ubuntu server 20.10笔记本草莓派简介官网准备条件软件环境相关截图代码查找RaspberryPi的IP地址
前言
没有外接键盘、显示器、网线,只有笔记本电脑和草莓派
官网1 .草莓派各种支持的系统下载,ubuntu server推荐Ubuntu server 20.10https://Ubuntu.com/download/raspberry-pi
2 .在2.ubuntu官网上安装草莓馅饼教程: https://Ubuntu.com/tutorials/how-to-install-Ubuntu-on-your-raspberry -。
node:我第一次选择Ubuntu server 20.04.1 lts (raspberry pi4/64 bit ),结果是安装后无法连接ssh,权限定义、wifi也无法连接后选: Ubuntuserver20
准备条件笔记草莓派路由器只要笔记本和草莓派在同一个网络上,得到草莓派的IP,稍后用电脑向草莓派系统ssh即可
软件环境Windows 10Respberry Pi ImagerFing选项(手机端用于扫描IP;高级IP扫描仪选项;电脑端用于扫描IP ) )按照上述步骤安装后,请重新安装
arp -a检查局域网设备信息,并找到动态Respberry类型的IP
通过ssh连接并连接cmd命令,例如ssh ubuntu@192.168.1.13
首次登录时,所有默认帐户密码都是ubuntu,在首次连接时更改密码,更改成功后再次使用新密码登录
将相关屏幕截图的代码TF卡插入笔记本,并修改系统引导根目录下的文件: network-config
将wifi名称设置为:wifi-name
密码: 12345678版本:2以太网s : eth 0: DHCP 43360 true optional : truewifis : WLAN 0: DHCP 4: true optional 33: 60找到password : ' 12345678 ' raspberry pi的IP地址如果电脑和raspberry在同一网络上,则从网卡地址中查找IP
windows上的cmd命令: arp -a | findstr dc-a6-32
返回的结果是找到的RaspberryPi的IP地址和NIC地址
参考:
connectremotelytoyourraspberrypitoconnecttoyourraspberrypiremotely,youneedtwothings (we’llhelpyoufindthem ) :
Its IP address on the local network
ansshclient (sshisacommunication protocolbetweenmachines ) )。
determiningthepi’sipaddresstodeterminetheipaddressofyourboard,openaterminalandrunthearpcommand 3360 onubuntuandmacos 3360 ara
ifthisdoesn’tworkandyouareusingthelatestraspberrypi 4,instead run : ARP-na|grep-I“DC : a 6:32”
信息
Depending on your version of Ubuntu,youmayneedtoinstallthenet-tools package.installitwithsudoaptinstallnet-tooolsandtrythearp
on windows : ARP-a|findstrb8- 27-EB
ifthisdoesn’tworkandyouareusingthelatestraspberrypi 4,instead run : ARP-a|findstr DC-a6-32