Raspberry Pi – VNC – Teamviewer

raspberry pi logo

Source: https://pimylifeup.com/raspberry-pi-teamviewer/


Step 1

As we are already using the command line, we can do that by running the following command. This command will use wget to download the .deb file from TeamViewer’s server.

.deb file is a package file designed for the Debian systems package management system. The .deb file is an archive containing all the files that we need for TeamViewer.

Use wget and:

https://download.teamviewer.com/download/linux/teamviewer-host_armhf.deb


Step 2

Now that we have the TeamViewer deb file available on our Raspberry Pi lets go ahead and install it by running the following command.

To install the TeamViewer deb package, we will be making use of the dpkg utility which is the base of the Debian package management software.

sudo dpkg -i teamviewer-host_armhf.deb


Step 3

Upon running the above command, you will notice a bunch of errors about specific packages not being installed.

To fix this, we will have to make use of our package manager to repair the “broken install”.

The apt package manager will automatically detect the missing packages and attempt to download the best versions available for the software.

Now let’s utilize the apt tool by running the command below.

sudo apt --fix-broken install

TeamViewer should now be up and running on your Raspberry Pi. The software is automatically set up so that it will start up on boot, so you do not have to worry about that.


Note

Upon installing TeamViewer to your Raspberry Pi, you will be greeted with the screen below asking you to accept TeamViewer’s license agreement.

To continue with this guide, you will need to click the Accept License Agreement button:

Once you have agreed to the license agreement, you will be returned to the desktop.

To open up the Teamviewer host software click the TeamViewer icon in the taskbar as shown in the screenshot below.


Step 4

Before you can access the Raspberry Pi from a TeamViewer client, we will first have to designate a password for the server.

We can do that by running the following command, where “<password>” is the password that you want to utilize.

Make sure you keep this password secure as it will allow someone access to your Raspberry Pi if they manage to get your TeamViewer ID and its password.

sudo teamviewer passwd raspberry

response will be: ok


Step 5

Now that we have set a password for TeamViewer on our Raspberry Pi let’s now go ahead and retrieve the TeamViewer ID.

The TeamViewer ID is the ID that you will utilize to make a connection to the TeamViewer server sitting on the Raspberry Pi.

To retrieve the TeamViewer ID type in the following command into the terminal.

Note: you have to use sudo for access to the info

sudo teamviewer info

You will get a result from this command you can see your TeamViewer ID, write this number down as you will need this to connect to your Raspberry Pi.


Note

Now you have got the ID and set the password you can access it with teamviewer!


Download DEB:

teamviewer-host_armhf