Step-by-step instructions for setting up TeamViewer on a Raspberry Pi.
These procedures apply to Raspberry Pi 5, 4 or 3 with Raspberry Pi OS (64-Bit), (32-Bit) or (Legacy, 32-Bit).
General Notes
1. General:
The procedures below are optimized for setting up TeamViewer on a Raspberry Pi 5, 4 or 3 with Raspberry Pi OS (64-Bit), (32-Bit) or (Legacy, 32-Bit).
2. Internet access during setup:
Many of the steps below assume and require the Raspberry Pi is connected to a network with access to the Internet.
Notice about updates, upgrades and installations failing due to repository or network congestion or outages
Occasionally updates, upgrades and installations fail due to repository or network congestion or outages.
Sometimes there is an appropriate message saying as such, sometimes a missing file is reported, and sometimes there is just a failure message without an explanation.
When this occurs, simply run the command again.
If that does not solve the issues immediately, try again later.
Obtain and record the TeamViewer ID (Note: This only provides the TeamViewer ID if it is connected to the Internet)
sudo teamviewer info
The TeamViewer ID is displayed twice near the top of the TeamViewer information. Record the TeamViewer ID for you records.
Reboot the Raspberry Pi to get TeamViewer working. Note: "sudo teamviewer --daemon restart" or "sudo systemctl restart teamviewerd" do not get TeamViewer working
sudo reboot
Since TeamViewer should now be working, a connection to the Raspberry Pi GUI should be possible via the TeamViewer client by using the TeamViewer ID of the Raspberry Pi, obtained above.
Set TeamViewer to accept incoming LAN connections, i.e., add the additional methods of connecting to TeamViewer via IP address or URL (Optional):
Using TeamViewer from another machine, connect to the Raspberry Pi using the TeamViewer ID of the Raspberry Pi, obtained in the section above.
- or -
Connect directly to the Raspberry Pi via a Display, Keyboard and Mouse.
- or -
Connect to the Raspberry Pi using Raspberry Pi Connect.
From the Raspberry Pi GUI open TeamViewer by clicking on the TeamViewer icon in the right side of the Task Bar at the top of the Raspberry Pi desktop.
Close or cancel any windows that appear asking for Username and/or password.
Click on "Extras" in the left side of the TeamViewer Menu Bar at the top of the TeamViewer window.
Click on "Options". It opens to the "General" window.
In the "General" window, click on the "Incoming LAN connections" drop down list and select "accept".
Click on the "OK" button.
Close the TeamViewer window by clicking on the X in the upper right hand corner of the TeamViewer window.
Connect to the Raspberry Pi via TeamViewer (Optional)