SSH
刚刷的树莓派系统第一次可能ssh连不上,可以试试下面的方法。
1、在boot目录新建ssh文件
2、如果用别的卡用同一台树莓派在同样的电脑上用ssh登录过,可能会出现指纹的问题,可以在cmdline.txt最后加上ip=192.168.0.xx 指定一个同网段的没有用到的IP地址。也可以通过下面的命令重新生成主机密钥:
ssh-keygen -f "[your_home]/.ssh/known_hosts" -R "192.168.0.xx"
3、插上SD卡开机试试吧!
参考链接:https://www.raspberrypi.org/documentation/configuration/wireless/headless.md
VNC
1、登录树莓派

2、运行配置

3、配置使能VNC服务




之后选择finish退出。
4、开启vnc服务

5、下载vnc viewer

6、安装启动连接
安装比较简单,不在赘述。
启动后输入IP地址、输入用户名密码确定即可登录。


real VNC可以远程登录,需要注册一个帐号,然后所有的设备都登录这个帐号就可以实现远程控制了。具体可看下面连接的详细介绍。
https://www.raspberrypi.org/documentation/remote-access/vnc/README.md
Serial
串口也是默认关闭的,需要手动开启。

选择Interfaces选项卡,将Serial Port选为Enable。Serial Console会同时使能。Port打开后能通过串口输出log,Console打开后可以通过串口交互。

重启后生效。
网友评论