vnc

Install TeamViewer under Ubuntu

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.teamviewer.sh";
echo "wget $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Install without daemon
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz -O /tmp/teamviewer_amd64.tar.xz
./tv-setup checklibs
sudo apt install -y libdbus-1-3 libqt5gui5 libqt5widgets5 libqt5qml5 libqt5quick5 libqt5webkit5 libqt5x11extras5 qml-module-qtquick2 qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-window2 qml-module-qtquick-layouts

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