Ubuntu远程桌面链接树莓派

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shanpenghui/article/details/88874358

前言

网上的教程太杂乱,就为这个事情找了不少资料,最后终于自己摸清楚了。事情其实很简单,就两部分,一树莓派安装real-vnc-server,二ubuntu安装vnc-viewer。So easy。

树莓派安装real-vnc-server

刚开始其实看了很多野鸡自创教程,但后来找到官方指导,什么东西都是官方指导最准确!最靠谱!(参考链接: https://www.raspberrypi.org/documentation/remote-access/vnc/.)
不想点开也没关系,在这里列出来官方步骤:

sudo apt-get update
sudo apt-get install realvnc-vnc-server

然后有两种选择,一是图形化配置:

Enabling VNC Server graphically
On your Raspberry Pi, boot into the graphical desktop.
Select Menu > Preferences > Raspberry Pi Configuration > Interfaces.
Ensure VNC is Enabled.

二是指令形式配置

Enabling VNC Server at the command line
You can enable VNC Server at the command line using raspi-config:
sudo raspi-config
Now, enable VNC Server by doing the following:
Navigate to Interfacing Options.
Scroll down and select VNC > Yes.

上述是官方指导的,其实我是自己去vnc官网下载VNC-Server-6.4.1-Linux-ARM.deb(https://www.realvnc.com/en/connect/download/vnc/raspberrypi/),然后用U盘在树莓派上安装好,期间遇到问题:

conflict with package vnc4server and  conflict with package tightvncserver 

原因是因为之前看了太多的教程,一个个乱七八糟地瞎装,其实只要你卸载完就可以安装了,卸载用下面的指令

sudo apt remove --purge vnc4server
sudo apt remove --purge tightvncserver

然后点开deb包,图形化安装好就可以啦。
当然,还有一个就是网上好多教程说要设置远程允许授权,比较有用的是安装dconf editor,安装配置教程很多了,这里我就不再赘述了,其他我觉得没太大用处。

ubuntu安装vnc-viewer

直接去官网下载vnc-viewer,链接是https://www.realvnc.com/en/connect/download/viewer/

然后图形化安装好就可以用啦。

猜你喜欢

转载自blog.csdn.net/shanpenghui/article/details/88874358