Install Remote Desktop For Mac Via Homebrew

Advanced Mac users may appreciate using the Homebrew package manager, which greatly simplifies the process of installing command line software and tools on a Mac. For example, if you want to easily install favorite command line tools on a Mac like cask, htop, wget, nmap, tree, irssi, links, colordiff, or virtually any other familiar unix. Launch Remote Desktop.app from the Applications folder. OS X typically allows for two types of apps to be installed: Drag and drop-based, which includes all the necessary files wrapped in the. I’ve recently posted some more tips on using Cassandra on Mac OSX: Cassandra on Mac. If you don’t already have homebrew then install it from here. Then it as simple as: brew install cassandra. This doesn’t install the python driver for the cqlsh command line tool. To do this install it first install python if you haven’t got it already.
Requirement: Homebrew on the Remote Mac (if not, just install it via SSH) |
# ssh to the remote Mac machine -> |
# brew install caskroom/cask/brew-cask |
# brew cask install teamviewer |
# sudo /Applications/TeamViewer.app/Contents/MacOS/TeamViewer |
if the error is: _RegisterApplication(), FAILED TO establish the default connection to the WindowServer. |
OK, stop here. You can't. |
if the error is: com.teamviewer.desktop: Invalid argument com.teamviewer.teamviewer: Invalid argument |
OK, run again but without sudo |
# /Applications/TeamViewer.app/Contents/MacOS/TeamViewer |
If you just want to get ClientID: |
# export DISPLAY=:0 |
# defaults read /Library/Preferences/com.teamviewer.team...(or something) ClientID |
for me is: defaults read /Library/Preferences/com.teamviewer.teamviewer.preferences.plist ClientID |
You can get only ClientID. |
Or want to get all ClientID and password: |
# osascript -e 'tell application 'TeamViewer' to activate' |
# screencapture teamviewer.jpg |
Download this image to your computer (Eg: via SCP) |
Enjoy! |