ubuntu 通过VNC 显示Raspberry PI界面

1、将raspBerry连接上路由器,通过以下命令查找路由器网段连接的设备

wiwa@tech:~$ sudo nmap -sP 192.168.31.0-254

Starting Nmap 7.01 ( https://nmap.org ) at 2016-11-22 20:48 CST
Nmap scan report for XiaoQiang (192.168.31.1)
Host is up (0.0046s latency).
MAC Address: 28:6C:07:32:01:60 (UnkNown)
Nmap scan report for 192.168.31.16
Host is up (0.063s latency).
MAC Address: B8:27:EB:E4:A2:BC (RaspBerry Pi Foundation)
Nmap scan report for 192.168.31.125
Host is up (-0.089s latency).
MAC Address: B8:27:EB:B1:F7:E9 (RaspBerry Pi Foundation)
Nmap scan report for 192.168.31.240
Host is up.
Nmap done: 255 IP addresses (4 hosts up) scanned in 2.30 seconds


2、通过SSH登录RaspBerry Pi (密码:raspBerry):

wiwa@tech:~$ ssh pi@192.168.31.16
pi@192.168.31.16's password: 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY,to the extent
permitted by applicable law.
Last login: Tue Nov 22 12:01:37 2016 from 192.168.31.240
pi@raspBerrypi:~ $ 

3、在RaspBerry Pi端安装VNC server:

pi@raspBerrypi:~ $ sudo apt-get install tightvncserver 


4、开启RaspBerry Pi VNC server端界面(首次开启需要设定密码):

pi@raspBerrypi:~ $  sudo vncserver :2 -geometry 800x600 -depth 24

5、在ubuntu端安装VNC viewer 客户端:

wiwa@tech:~$ sudo apt-get install xtightvncviewer 

6、在ubuntu段登录查看RaspBerry Pi的界面(输入RaspBerry Pi的VNC服务器已设定的密码):

wiwa@tech:~$ xtightvncviewer 192.168.31.125:2
Connected to RFB server,using protocol version 3.8
Enabling TightVNC protocol extensions
Performing standard VNC authentication
Password: 
Authentication successful
Desktop name "pi's X desktop (raspBerrypi:2)"
VNC server default format:
 32 bits per pixel.
 Least significant byte first in each pixel.
 True colour: max red 255 green 255 blue 255,shift red 16 green 8 blue 0
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor. Pixel format:
 32 bits per pixel.
 Least significant byte first in each pixel.
 True colour: max red 255 green 255 blue 255,shift red 16 green 8 blue 0



7、登录的界面截图

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...