Raspberry Pi / Setup / Remote desktop connection

Raspberry Remote Desktop View Connection

By Marcelo Fernandes Jul 30, 2017

Remote Desktop View

Log in to your raspberry pi and then download the dependencies:

# install tight vnc server
sudo apt-get update
sudo apt-get install tightvncserver

# start the vnc server
vncserver :1

Set up Tight VNC on system startup

# Create a .service
sudo nano /etc/systemd/system/tightvncserver.service

Description=TightVNC remote desktop server

ExecStart=/usr/bin/tightvncserver :1
You might want to change the user on line 8.

# Change the file so it is owned by root
sudo chown root:root /etc/systemd/system/tightvncserver.service

# Make the file executable by running
sudo chmod 755 /etc/systemd/system/tightvncserver.service

# Test the script (errors might occur)
sudo systemctl start tightvncserver.service

# Enable startup at boot
sudo systemctl enable tightvncserver.service

# Reboot the @pi
sudo reboot

Install the Viewer on your LAPTOP/DESKTOP PC.

# Installing VNC Viewer Client
sudo apt-get install xtightvncviewer

# Viewing the @pi desktop (suppose .106 is the @pi)
# port 5901 because we are running in the server 1, and the standard port for
# vnc is 5900.