Connecting to a Raspberry Pi with VNC

From Double Jump Electric Wiki
Jump to navigation Jump to search

Install tightvncserver

   sudo apt install tightvncserver

Run it

   tightvncserver

It will prompt you to create a session, including a password, and then execute the session.

On the computer to connect to the Pi remotely, install VNC Viewer.

Setup the connection. The URL will be formatted like:

   <pi_ip_address>:<5900 + session number>

Connect!

Killing the Session

Kill the session on the Pi with:

   tightvncserver -kill :<x>

where <x> is the session number.