Skip to main content
August 22, 2011
Question

Remote installation of Adobe AIR on Apple OS X 10.6.8

  • August 22, 2011
  • 1 reply
  • 1946 views

Hello all,

I'm attempting to remotely install Adobe AIR via SSH on an Apple OS X machine running 10.6.8 (64-bit) when no users are logged in locally. Let's say I remotely mount the latest dmg released for Adobe AIR using the hdiutil command on the desired host.

hostname:~ ladmin$ hdiutil attach -quiet "AdobeAIR.dmg"

hostname:~ ladmin$ ls -l /Volumes

total 8

drwxr-xr-x@ 3 ladmin  staff  102 Aug  5 13:11 Adobe AIR

lrwxr-xr-x  1 root    admin    1 Aug 18 12:09 Macintosh HD -> /

(Excellent.)

Using this post (http://forums.adobe.com/message/3795207#3795207), I attempted to install Adobe AIR on the OS X system, but I get the following response back. I am not able to Cntrl+C out of the command once the error message appears. I need to Cntrl+Z and kill (-9) the process.

hostname:~ ladmin$ sudo /Volumes/Adobe\ AIR/Adobe\ AIR\ Installer.app/Contents/MacOS/Adobe\ AIR\ Installer -silent -eulaAccepted

password:

Mon Aug 22 10:26:25 facula Adobe AIR Installer[34743] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.

The above command works via SSH when a user is logged in locally (admin or standard user), and it does not interrupt their processes with any prompts. It only seems to fail for machines without users logged in locally at the console.
Is there a work-around for this?
Thanks!
Jonathan

This topic has been closed for replies.

1 reply

chris.campbell
Community Manager
Community Manager
August 24, 2011

Hi Jonathan,

You've run into a known bug in AIR (internal bug #2827334) however there is a workaround for 10.6.  It's broken again with 10.7 and we've filed an issue with Apple against it.  This command should work for you:

sudo launchctl bsexec `ps auwwx |grep oginwindow | awk '{ print $2 }'` Adobe\ AIR\ Installer.app/Contents/MacOS/Adobe\ AIR\ Installer -silent

Thanks,

Chris

Participant
July 16, 2015

Hi Chis,

Is this issue fixed ? If it is fixed, can you tell me what is the command ?

Thanks,

Kumar