TeamViewer provides a script called teamviewerd.sysv available in /opt/teamviewer9/tv_bin/script. ( depend on your temviewer version )
All you need to do is make sure this script runs on startup. Making sure of this is relatively simple, just copy it to /etc/init.d like so:
cd /opt/teamviewer9/tv_bin/script sudo cp teamviewerd.sysv /etc/init.d/
Don’t forget to make the script non-writable to anyone but the owner!
sudo chmod 755 /etc/init.d/teamviewerd.sysv
Then run :
sudo update-rc.d teamviewerd.sysv defaults
The service will now start automatically with each boot. If you don’t feel like rebooting, you can start the service manually with:
sudo service teamviewerd.sysv start

