1.ubuntu
1.1插好电脑笔记本的网线连接树莓派
2.2打开ubuntu的ssh
sudo apt-get install openssh-client
3.找到有线连接 选择已与其他计算机共享
还在弄一会更新
2. windows
首先下载 putty 和 VNC Viewer
网站1:Download PuTTY - a free SSH and telnet client for Windowshttps://www.putty.org/
网站2:
Download VNC Viewer | VNC® Connecthttps://www.realvnc.com/en/connect/download/viewer/使用命令:ifconfig
找到需要连接的ip
扫描二维码关注公众号,回复:
13467937 查看本文章
![](/qrcode.jpg)
输入ip地址
连接 输入账号密码 树莓派默认账号密码是
账号:pi
密码:raspberry
接下来打开VNC,发现如下问题
显示:“cannot currently show the desktop”
方法1:
通过有线的方式先连接到显示器
打开桌面
接下来打开终端,切换到root用户,输入:
sudo -s
更改下显示设置:
echo 'hdmi_force_hotplug=1'>> /boot/config.txt
echo 'hdmi_group=2'>> /boot/config.txt
echo 'hdmi_mode=51'>> /boot/config.txt
重启 输入:reboot
拔线 能正常访问
方法2:
输入:
sudo raspi-config
出现如下界面:
选择Advanced Options 按Enter进入
具体可以参考这个