Install TeamViewer software under Ubuntu via SSH

Introduction
TeamViewer software is an excellent remote control software. In some special cases, such as when the Linux server used can only log in through SSH, if you want to install and configure TeamViewer on it, you can refer to this article.
Steps to
download . Find the appropriate TeamViewer resource link on the TeamViewer official website, and download it through the wget tool, such as executing

wget https://download.teamviewer.com/download/teamviewer_i386.deb

Install. Run the following command to install

sudo dpkg -i teamviewer*.deb; sudo apt-get -f install

Accept the license.
Out of service. Excuting an order

sudo teamviewer --daemon stop

Modify the configuration file. Add the following to the end of the file /opt/teamviewer/config/global.conf (administrator privileges may be required due to read-only restrictions)

[int32] EulaAccepted = 1
[int32] EulaAcceptedRevision = 6

restart the service

sudo teamviewer --daemon start

Get the id and set the password
You can get the login id of teamviewer in the following ways

teamviewer --info print id

Also, set the login password by the following command

sudo teamviewer --passwd [NEWPASSWORD]

Note: There is a pit in the step of accepting the license. When installing TeamViewer, it thinks that you installed it in the form of an interface. Therefore, a dialog box will pop up to remind you to accept the license. However, since you log in with ssh, so, You can't see this dialog box, and naturally you won't accept the protocol, which will cause the connection to fail when you use it.
Login
Using the obtained account id and set password, download the TeamViewer client on other computers to perform remote control.
References
how to accept teamviewer license agreement from/under console at first launch
Launching Teamviewer remotely through SSH

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325350081&siteId=291194637