How to start TeamViewer on remote Linux server through SSH? A quick try shows that the TeamViewer aborted:
如何通过SSH在远程Linux服务器上启动 TeamViewer? 快速尝试显示TeamViewer中止了:
$ teamviewer
Init...
xprop: unable to open display ''
CheckCPU: SSE2 support: yes
Checking setup...
Launching TeamViewer ...
Launching TeamViewer GUI ...
Aborted
It seems require a GUI. I am sure the X server on the remote Linux server is running.
似乎需要GUI。 我确定远程Linux服务器上的X服务器正在运行。
Any way to solve this?
有什么办法解决这个问题?
If you are sure the remote side’s X server is running (assume it’s the first one), then you may specify the DISPLAY environment variable so that TeamViewer can use it.
如果确定远程服务器的X服务器正在运行(假定它是第一个),则可以指定DISPLAY环境变量,以便TeamViewer可以使用它。
$ DISPLAY=:0 teamviewer
Init...
CheckCPU: SSE2 support: yes
Checking setup...
Launching TeamViewer ...
Launching TeamViewer GUI ...
Then TeamViewer will start. You can then connect to it if you knows the Partner ID and pass or the remote Linux’ TeamViewer is already registered to your account.
然后,TeamViewer将启动。 如果您知道合作伙伴ID并通过,或者远程Linux的TeamViewer已注册到您的帐户,则可以连接到它。
Please note that the TeamViewer window will jump out on your remote Linux’ screen.
请注意,TeamViewer窗口将在远程Linux的屏幕上跳出。
翻译自: https://www.systutorials.com/how-to-start-teamviewer-on-remote-linux-server-through-ssh/