OSX Unix Using Brew to install software remotely
-
You could also enable the root user, but not recommended.
-
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
Do you have sudo set up?
As in a separately installed package or just with a user who has sudo access?
A user that has sudo set up and working.
Yes this works.
It's also how I'm able to do things like update (stuff that was installed with Brew remotely).
-
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
Do you have sudo set up?
As in a separately installed package or just with a user who has sudo access?
A user that has sudo set up and working.
Yes this works.
It's also how I'm able to do things like update (stuff that was installed with Brew remotely).
But it doesn't work for a brew install of something else?
-
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
Do you have sudo set up?
As in a separately installed package or just with a user who has sudo access?
A user that has sudo set up and working.
Yes this works.
It's also how I'm able to do things like update (stuff that was installed with Brew remotely).
But it doesn't work for a brew install of something else?
Brew install only appears to work, when run from the console.
I'm trying to get it to work so I can install software remotely. Updating things works fine, but not the installation of software.
-
Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?
-
Try that as root, that might work.
-
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?
OSX doesn't honor sudo, as
root
is disabled. Yes I could enable it. But I'd really rather not.I can run pretty much anything, as copying an App to a users application folder as our admin user account without issue.
But If I wanted to install an App via the CLI is where I'm having issue.
-
So I can just unpack the dmg file, and have an Copy job, copy the application to the Applications folder for any user. As my admin user account. All via Apple Remote Desktop.
This works without issue.
What I am trying to do is avoid having to locally download the app at all, unpack it and then have a Copy job to run. I'd like to streamline the process.
-
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?
OSX doesn't honor sudo, as
root
is disabled. Yes I could enable it. But I'd really rather not.I can run pretty much anything, as copying an App to a users application folder as our admin user account without issue.
But If I wanted to install an App via the CLI is where I'm having issue.
I have a guess that the Brew installer does something that breaks sudo for the script as a whole and is the source of the issue.
-
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
Oh, so in this situation, brew itself is not installed, and is not honoring the sudo?
OSX doesn't honor sudo, as
root
is disabled. Yes I could enable it. But I'd really rather not.I can run pretty much anything, as copying an App to a users application folder as our admin user account without issue.
But If I wanted to install an App via the CLI is where I'm having issue.
I have a guess that the Brew installer does something that breaks sudo for the script as a whole and is the source of the issue.
Well maybe?
In order to install locally with brew though I have to:
Terminal -> su <admin-user> -> <password> then I can run
/usr/local/bin/brew <cask maybe if needed> application-name
I'm trying to find a way to pass the credentials remotely for the first 3 steps.
-
Use ansible to install packages with brew. I'm curious, which formula requires user password? It's uncommon for cask packages, and really unheard of for plain brew packages. Perhaps report a bug to brew team.
-
@marcinozga said in OSX Unix Using Brew to install software remotely:
Use ansible to install packages with brew. I'm curious, which recipe requires user password? It's uncommon for cask packages, and really unheard of for plain brew packages. Perhaps report a bug to brew team.
It's required when being run remotely over unix from apple remote desktop.
-
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
So I can just unpack the dmg file, and have an Copy job, copy the application to the Applications folder for any user. As my admin user account. All via Apple Remote Desktop.
This works without issue.
What I am trying to do is avoid having to locally download the app at all, unpack it and then have a Copy job to run. I'd like to streamline the process.
That's what the script is doing already. Making your own "sudo friendly" script for your install might make sense.
-
@scottalanmiller said in OSX Unix Using Brew to install software remotely:
@DustinB3403 said in OSX Unix Using Brew to install software remotely:
So I can just unpack the dmg file, and have an Copy job, copy the application to the Applications folder for any user. As my admin user account. All via Apple Remote Desktop.
This works without issue.
What I am trying to do is avoid having to locally download the app at all, unpack it and then have a Copy job to run. I'd like to streamline the process.
That's what the script is doing already. Making your own "sudo friendly" script for your install might make sense.
The issue is there is no way AFAIK without adding my local admin account to this group.
Which is more work than it may be worth since the existing solution works but is annoying.