How do I know if Teamviewer has successfully started and get the session ID and password?

I am trying to run TeamViewer on the ubuntu headless operating system. The OS works like amazon ec2 AMI, so I do not have physical access to it. Currently, I am just typing the command "teamviewer" in ssh, and the only result I get is something like:

TeamViewer: 6.0.9258

Profile: / home / ubuntu (ubuntu)

Desktop:

No LSB modules available.

Distributor ID: Ubuntu

Description: Ubuntu 10.04.3 LTS

Release: 10.04

Codename: lucid

Checking settings ...

Running c: \ Program Files \ TeamViewer \ Version6 \ TeamViewer.exe ...

Did it succeed? If so, how do I find out the session ID and password so that I can connect to it from another computer?

+7
source share
3 answers

Given that you have an X server (or Xvfb) running and DISPLAY and XAUTHORITY, you need to start TeamViewer.

cat ~/.teamviewer/7/logfiles/TeamViewer7_Logfile.log | grep '^ID:' cat ~/.teamviewer/7/logfiles/TeamViewer7_Logfile.log | grep '^ID:' will provide you with an identifier, but does not work on first start. (The logfile symbolic link is created in the second run). Of course, you can also use the log file to check if it is running correctly. Virus problems are logged at ~/.teamviewer/7/logfiles/winelog )

To get the ID and password, making a screenshot is actually the easiest solution. As above, DISPLAY and Xauthority must be properly configured. Then,

 xwd -name TeamViewer | xwdtopnm | pnmtopng > tvscreen.png 

will do the trick.

[change]

In TeamViewer 8 and above, a screenshot is not needed. You can set a password on the command line, and you can print the identifier. See:

 teamviewer --help teamviewer --info teamviewer --passwd [PASSWD] 
+4
source

Just an idea of โ€‹โ€‹a general strategy:

You can try the grep list of processes for ProcessID from Wine TeamViewer.exe, take a screenshot of the window belonging to this process, save it in the image with the file name of your choice, and then load this image.

People tried to do such things (but in this case not with teamviewer, but on windows). How to get the HWND window from this process descriptor?

0
source

Teamviewer does not work if xorg is not running.

-one
source

All Articles