Install teamviewer host on headless raspberry pi via ssh for 24/7 unattended access
I am unsuccessful in installing teamviewer host (only) on a Pi 2 (Linux PI2 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux). The instructions I've found by searching this give an example such as "apt" to install the .deb, however after it gave bad results I googled and I'm supposed to use "dpkg -i <debfile>". I tried another method, which seemed to work, and when doing a apt-get update && apt-get upgrade to resolve dependencies, it says it's uninstalling teamviewer. I don't get it. Now I don't know what state my Pi's teamviewer-host package is in.
This Pi is headless (it hosts a weather station at a remote unmanned building) and only accessed via ssh. If someone would please clarify the exact steps.
Thank you very much.