macos - 是否可以从命令行启动 Teamviewer 以接受连接?

标签 macos command-line remote-access

有一个问题是如何start, Teamviewer from commandline, to make outward connections ,但是我想从命令行启动 Teamviewer(因此它可以接受传入的连接)。

这可能吗?如果是这样,任何人都可以提供一些信息吗?我在 Teamviewers 支持网站上的任何地方都没有找到它,到目前为止已经尝试了不同的方法。

注意:操作系统为 OS X 10.6.8,TeamViewer 为 TV8。

谢谢

最佳答案

正如 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



然后,要获取您的 TeamViewer ID,请执行以下操作:

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



刚刚在 OS X Lion 上进行了测试。

关于macos - 是否可以从命令行启动 Teamviewer 以接受连接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14154598/

相关文章:

mysql - 无法 rake :db migrate - Keep getting a 'rake aborted! load error'

python - 如何将 Python 变量发送到 Google Colaboratory 终端的 curl 命令(引号和 '$' 不适用于 curl)

sockets - delphi中netcat之类的监听程序不回传命令

macos - 像 Preview.app 一样将 NSScrollView 的文档 View 居中?

java - 如何在 Mac 上安装插件?

ruby-on-rails - Ruby 命令行 MVC 框架?

batch-file - PSEXEC 错误 : No process is on the other end of the pipe

php - 以远程用户身份连接到数据库

macos - firebird,错误的文件描述符/您的用户名和密码未定义

javascript - 使用 JavaScript | Applescript 在 Safari 中单击按钮