将覆盆子pi 3连接到我的笔记本电脑

时间:2018-05-02 12:54:34

标签: raspberry-pi3 remote-desktop

我试图将我的笔记本电脑用作我的Rasbperry pi 3的显示器,键盘和鼠标。我已通过远程桌面连接多次连接。但现在它显示错误。我使用Advanced IP Scanner查找Rpi的IP地址。但是对raspberrypi.mshome.net显示的地址不起作用,这个名称有两到三个ip地址。以下是ipconfig命令的输出:

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::ac0c:bc0f:9eb1:d1b%4
   IPv4 Address. . . . . . . . . . . : 192.168.1.127
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::a5d0:981a:2f49:ca41%3
   Autoconfiguration IPv4 Address. . : 169.254.202.65
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :

我已经读过某个地方,为我的笔记本电脑和Rpi制作子网掩码和IP相同,但我不知道该怎么做。请帮忙。

2 个答案:

答案 0 :(得分:0)

如果要从计算机管理VNC,则应使用VNC。您必须使用集成的RealVNC连接到Raspberry Pi,但在连接之前,您必须打开设置。

如果您使用RaspBerry连接电缆,则应分配静态IP:
例如:
的Cmdline.txt
IP =<客户IP>:其中服务器-IP>:其中GW-IP>:其中掩码>:其中主机名>:其中元件>:其中的autoconf>

... rootwait ip=192.168.1.200::192.168.1.1:255.255.255.0:rpi:eth0:off ...

下一步;您将通过ssh连接Putty并启用VNC。

键入ssh raspi-config
树莓派开放设置窗口,然后输入接口设置启用VNC

然后在您的电脑上安装realvnc或其他软件并写下您的连接。

此页面告诉您如何:连接Raspbbery pi VNC VNC Connect

答案 1 :(得分:0)

示例cmdline.txt:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>

使用这些变量,以太网端口的值必须相同

ip=192.168.5.200::192.168.5.1:255.255.255.0:rpi:eth0:off

例如:

Ethernet Adapter:
    Ip Address:         192.168.5.1
    Network Address:    255.255.255.0

cmdline.txt更新版本:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait ip=192.168.5.200::192.168.5.1:255.255.255.0:rpi:eth0:off

然后创建一个文件并ssh该名称,然后将此文件插入您的boot /文件夹 然后将存储卡插入树莓中并启动它。打开覆盆子后4到5秒钟,用腻子连接覆盆子。 您要连接的地址是cmdline.txt您写入192.168.5.200的IP地址

connection diagram