База знаний
База знаний:
TeamViewer: запуск из консоли Mac OS X
Автор [ADMINGROUP] Oleksandr Usov на 02 October 2014 12:40 AM

Главный вопрос - как узнать TeamViewer ID, если никуда не записали предварительно.

Еще бы узнать пароль таким же образом...

 

This can be done with OSX, but there seems to be a bug that requires a particular work-around that I was lucky to notice. TeamViewer will need to be run twice -- once as sudo, and another as the user:

SSH into the OSX machine and run TeamViewer like so:

sudo /Applications/TeamViewer.app/Contents/MacOS/TeamViewer

It should fail and report: com.teamviewer.desktop: Invalid argument com.teamviewer.teamviewer: Invalid argument

Now run it again without sudo:

/Applications/TeamViewer.app/Contents/MacOS/TeamViewer

This should launch TeamViewer and make it ready for a client connection.

If for some reason it fails to launch, try setting the display first with:

export DISPLAY=:0

Then, to get your TeamViewer ID do:

defaults read /Library/Preferences/com.teamviewer.teamviewer9 ClientID

Just tested this on OS X Lion.


Комментарии (0)
Добавить новый комментарий
 
 
Полное имя:
Email:
Комментарии: