Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to start Teamviewer, to accept connections, from commandline?

Tags:

There is a question on how to start, Teamviewer from commandline, to make outward connections, however I want to start the Teamviewer from commandline (So it can accept incoming connections).

Is this possible? If so, can anyone give some information? I have not found it anywhere on Teamviewers support site, and have tried different ways so far.

NB: OS is OS X 10.6.8, and TeamViewer is TV8.

thanks

like image 545
Bernard Tyers Avatar asked Jan 04 '13 09:01

Bernard Tyers


People also ask

How do I auto accept TeamViewer?

Setting up Easy Access is… well, easy. If someone already assigned the device to your TeamViewer account: Click Extras –> Options –> Security –> under Unattended access, activate the checkbox Grant easy access –> click OK.

Can I start TeamViewer remotely?

With TeamViewer, you can start a remote support session in four steps: Download and install TeamViewer software on your computer. Send the TeamViewer QuickSupport link to people you're supporting to run on their computers. Enter their TeamViewer ID in the “Control Remote Partner ID” field.


2 Answers

As said on http://steronius.blogspot.com/2014/02/replacing-logmein-with-teamviewer-on.html:

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.

like image 140
Aldekein Avatar answered Sep 18 '22 15:09

Aldekein


The way to do this is to use SSH and write this command: open /Applications/TeamViewer.app

like image 31
Torkiliuz Avatar answered Sep 20 '22 15:09

Torkiliuz