How to Install TeamViewer on Raspberry Pi

Ben
Ben
@benjislab

TeamViewer is a popular remote desktop application that allows you to access and control your Raspberry Pi from another computer or mobile device. This is particularly useful for remote support, administration, and collaboration. This guide will walk you through the steps to install and configure TeamViewer on your Raspberry Pi.

Prerequisites

Before starting, ensure you have the following:

  • Raspberry Pi 3 or later (preferably Raspberry Pi 4 for better performance)
  • MicroSD card with Raspberry Pi OS installed
  • Stable internet connection
  • Access to the command line (via monitor and keyboard or SSH)

Step 1: Update and Upgrade Your Raspberry Pi

First, make sure your Raspberry Pi is up to date.

  1. Open a terminal on your Raspberry Pi or SSH into it.
  2. Run the following commands to update and upgrade your system:
sudo apt update
sudo apt upgrade -y

Step 2: Download TeamViewer for Raspberry Pi

  1. Visit the TeamViewer Download Page:

Go to the TeamViewer download page and scroll down to the "Raspberry Pi" section.

  1. Download the TeamViewer Host for Raspberry Pi:

Alternatively, you can download it directly via the terminal:

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

Step 3: Install TeamViewer on Raspberry Pi

  1. Install the Downloaded Package:

Use the dpkg command to install the TeamViewer package:

sudo dpkg -i teamviewer-host_armhf.deb
  1. Fix Any Dependency Issues:

If you encounter dependency issues, run the following command to fix them:

sudo apt --fix-broken install

Step 4: Configure TeamViewer

  1. Start the TeamViewer Daemon:
sudo teamviewer daemon start
  1. Get Your TeamViewer ID:

    Run the following command to get your TeamViewer ID:

teamviewer info

Note down the TeamViewer ID displayed in the terminal.

  1. Set a Password for Unattended Access:

To set a password for unattended access, use the following command:

sudo teamviewer passwd [YOUR_PASSWORD]

Replace [YOUR_PASSWORD] with a secure password of your choice.

Step 5: Access Your Raspberry Pi Remotely

  1. Install TeamViewer on Your Computer:

Download and install TeamViewer on your computer from the TeamViewer website.

  1. Connect to Your Raspberry Pi:

Open TeamViewer on your computer, enter the TeamViewer ID of your Raspberry Pi, and connect. You will be prompted to enter the password you set for unattended access.

Step 6: Enable TeamViewer to Start on Boot (Optional)

To ensure that TeamViewer starts automatically whenever your Raspberry Pi boots, enable the TeamViewer service:

sudo systemctl enable teamviewerd

Conclusion

By installing TeamViewer on your Raspberry Pi, you can easily access and control it from any computer or mobile device. This setup is ideal for remote support, administrative tasks, and collaboration. Follow these steps to get TeamViewer up and running on your Raspberry Pi and enjoy the convenience of remote desktop access.