Connecting to a Raspberry Pi with VNC

From Double Jump Electric Wiki
Revision as of 23:31, 10 June 2020 by Poofjunior (talk | contribs) (Created page with "Install tightvncserver sudo apt install tightvncserver Run it tightvncserver It will prompt you to create a session, including a password, and then execute the sess...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.