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]
Daniel S
source share