Install TeamViewer under Ubuntu

wget https://raw.githubusercontent.com/panticz/installit/master/install.teamviewer.sh -O - | bash -

#!/bin/bash

# add teamviewer repository key
wget -qO - https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | sudo apt-key add -

# add teamviewer repository
cat << EOF | sudo tee -a /etc/apt/sources.list.d/teamviewer.list
deb http://linux.teamviewer.com/deb stable main
deb http://linux.teamviewer.com/deb preview main
EOF

# update package list
sudo apt-get update -qq

# install teamviewer
sudo apt-get install -y teamviewer

Ansible role
https://github.com/panticz/ansible/tree/master/roles/teamviewer/

Installation documentation
https://community.teamviewer.com/t5/Knowledge-Base/How-to-update-TeamViewer-on-Linux-via-repository/ta-p/30666

Restart daemon
sudo systemctl start teamviewerd.service

Documentation
$ teamviewer help
teamviewer Start TeamViewer user interface (if not running).
teamviewer help Print this help screen.
teamviewer version Print version information.
teamviewer info Print version, status, id.
teamviewer ziplog Create a zip containing all teamviewer logs (useful when contacting support).
teamviewer license [show|accept] Interactively agree or show/agree to End User License Agreement.
teamviewer setup Configure headless modes (non-gui/console)
teamviewer passwd [PASSWD] Set a password (useful when installing remote (ssh).
teamviewer daemon status Show current status of the TeamViewer daemon.
teamviewer daemon start Start TeamViewer daemon.
teamviewer daemon stop Stop TeamViewer daemon.
teamviewer daemon restart Stop/Start TeamViewer daemon.
teamviewer daemon disable Disable TeamViewer daemon - don't start daemon on system startup.
teamviewer daemon enable Enable TeamViewer daemon - start daemon on system startup (default).

Uninstall
sudo apt-get purge *teamviewer*
rm -r ~/.config/teamviewer*
rm -r ~/.local/share/teamviewer*

Links
http://askubuntu.com/questions/267010/how-to-configure-teamviewer-so-it-does-not-load-unless-needed

Comments

SSH Teamviewer config

Hi there,

Thanks a lot for the web page, it's just wonderful.
I've installed teamviewer on a remote machine through an SSH connection (impossible to get there; it's in a different country). Anybody knows how to connect now to that machine with teamviewer? Don't know how to obtain the parameters...

Thanks again!