Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The goal of the document is to demonstrate how to connect to SP7021 boards using VNC viewer server from a remote Linux machine. VNC connection consists of two portions. One is VNC server which is installed and run on an SP7021 board. The other is VNC viewer which is installed and run on a remote Linux machine. After installing and building VNC connection, you can connect to SP7021 board and see its desktop and control it from the remote Linux machine (VNC viewer).

...

Please follow the following steps to build VNC connection.

1. Install Raspbian on SP7021 board

Refer to How to build and install SP7021 Linux image to run Raspbian on SD card for installing Raspbian on an SP7021 board.

2. Install TightVNC server on SP7021 board

Before installing VNC server, please run apt update and apt upgrade commands to upgrade Raspbian to the latest. For example,

...

TightVNC was installed successfully.

3. Run VNC server

Run vncserver command as shown below, where command-line option -geometry 1080x720 sets width and height of display frame-buffer of VNC server. When vncserver is running, it will ask you to enter your password for VNC viewer. It also asks if you need to set password especially for view-only.

...

New X desktop was created. Display number is 1. Default startup script, ~/.vnc/xstartup, and authentication for X session, ~/Xauthority, were created.

4. Install TightVNC viewer on a remote machine

At remote machine, you need to install VNC viewer. For example, in a Linux/Ubuntu machine, you can run apt install xtightvncviewer command to install TightVNC viewer. Refer to log captured when TightVNC viewer was installing below:

...

TightVNC viewer was installed successfully.

5. Run TightVNC viewer to connect to SP7021 board

Refer to log below, run vncviewer command.

...