1.Ubuntu kali get download: wget-c URL
2.sudo dpkg-i filename installation of downloaded files
3.sudo apt-get-f Install
4. Stop service. Execute command sudo teamviewer--daemon stop
5. Modify the configuration file. Add the following at the end of the file/opt/teamviewer/config/global.conf (because of the read-only limit, you may need to use Administrator privileges)
[Int32] eulaaccepted = 1
[Int32] Eulaacceptedrevision = 6
6. Restart Service sudo teamviewer--daemon start
7. Get ID and set password teamviewer--info print ID
8. In addition, set the login password by using the following command sudo teamviewer--passwd [NewPassword]
9. After setting the password, you need to restart the service before you can see the ID, or you will not see the ID.
Note: There is a hole in the steps to accept the license, when installing TeamViewer, think you are installed as an interface, so, a dialog will pop up to remind you to accept license, but, because you are logged in with SSH, so, this dialog box can not see.
10. Install TeamViewer on the entity machine, enter the ID number in 9, and then perform the password verification in 8, successfully connected.