raspberry--VNC远程桌面控制,拒绝连接connect:connect refused

本文详细介绍了如何在Raspberry Pi上安装并配置realvnc-vnc-server,实现通过VNC viewer从Windows系统远程访问Raspberry Pi桌面。包括了安装步骤、启动服务、查看版本信息及登录地址等关键信息。

window系统使用VNC viewer(注意区别viewer和server版本)

官网下载地址:

https://www.realvnc.com/en/connect/download/viewer/

raspberry系统需要安装realvnc-vnc-server:

sudo apt install realvnc-vnc-server
pi@pi:~ $ apt list --installed | grep vnc

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

realvnc-vnc-server/stable,now 6.4.1.40826 armhf [installed]
realvnc-vnc-viewer/stable,now 6.19.325.40889 armhf [installed]

出现,拒绝连接connect:connect refused的错误,是因为每次重启需要启动vncserver服务

pi@pi:~ $ vncserver
pi@pi:~ $ vncserver
VNC(R) Server 6.4.1 (r40826) ARMv6 (Mar 13 2019 16:35:06)
Copyright (C) 2002-2019 RealVNC Ltd.
RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark
registrations and/or pending trademark applications in the European Union,
United States of America and other jurisdictions.
Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.
See https://www.realvnc.com for information on VNC.
For third party acknowledgements see:
https://www.realvnc.com/docs/6/foss.html
OS: Raspbian GNU/Linux 10, Linux 4.19.66, armv7l

On some distributions (in particular Red Hat), you may get a better experience
by running vncserver-virtual in conjunction with the system Xorg server, rather
than the old version built-in to Xvnc. More desktop environments and
applications will likely be compatible. For more information on this alternative
implementation, please see: https://www.realvnc.com/doclink/kb-546

Running applications in /etc/vnc/xstartup

VNC Server catchphrase: "Guitar exile motif. Oasis bicycle total."
             signature: 32-56-16-4c-2b-ba-54-72

Log file is /home/pi/.vnc/pi:2.log
New desktop is pi:2 (192.168.1.XXX:2)

注意最后一行,登录192.168.1.XXX:2即可登录成功 (提示XXX是因为不想暴露IP地址)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值