MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

Silent install for Mac and Linux binary

Open cfsnate opened this issue 2 years ago • 5 comments

Does not appear you can do a silent install when using the Mac or Linux binary

mpkg silent install on mac works but has code signing issues

cfsnate avatar Sep 24 '22 15:09 cfsnate

Is the request for something like a -silent option on the binary installer so that it does not output anything to stdout, and just returns a status code on failure?

krayon007 avatar Sep 24 '22 15:09 krayon007

Yes, when installing using the binary, users get a popup window asking to Install or Cancel,

See ss

image

cfsnate avatar Sep 24 '22 15:09 cfsnate

You should be able to run that binary from the command line like this:

./meshagent -install

It will still output status to stdout, but it doesn't require any user input

krayon007 avatar Sep 24 '22 16:09 krayon007

On the Mac it shows up user prompts, not tested on linux gui but I know @cfsnate did, he can maybe provide screenshots?

dinger1986 avatar Sep 24 '22 17:09 dinger1986

I'll take a look. It could be possible I didn't enable text mode on Mac like I did Linux, because Linux it was added later for headless system.. it should be easy to enable.

krayon007 avatar Sep 24 '22 17:09 krayon007

Yes, a fully silent installer for macOS would be excellent, cheers!

bionemesis avatar Sep 25 '22 05:09 bionemesis

I have the same issue where I can't silently install the meshagent (on Mac) with the "-install" switch.

I am using the "Linux / BSD / macOS Binary Installer." No matter what I try there is a still a popup and the user needs to click the "Install" button for me.

Attached are some screenshots. I saw the Windows meshagent command line has a "-fullinstall" switch, tried that but it didn't change anything. "-connect" works to connect to the server without any popup... but "-install" does not install, just brings up the GUI popup.

image

image

$ sudo ./meshagent -help You can run the text version from the command line with the following command(s): ./meshagent -connect ./meshagent -install ./meshagent -install --installPath="/alternate/path"

$ sudo ./meshagent -info Compiled on: 20:06:08, Aug 22 2022 Commit Hash: de512f8ae10a4086f54dc32d827777366836a94f Commit Date: 2022-Aug-22 19:57:39-0700 Using OpenSSL 1.1.1q 5 Jul 2022 Agent ARCHID: 29 Detected OS: macOS 12.6 - arm64`

spiffyguy avatar Oct 04 '22 14:10 spiffyguy

I found the issue and fixed it. Silent install was added later, so the platform check for it never included macOS... In order for this to work, you'll either have to put the updated meshinstall-linux.js file into your agents folder, or wait for Ylian to update the server when he gets back.

krayon007 avatar Oct 04 '22 16:10 krayon007

This should be fixed in MeshCentral v1.0.86. Can you verify that this works for you?

krayon007 avatar Oct 24 '22 18:10 krayon007

Sorry, a little premature. The fix should be in v1.0.88.

krayon007 avatar Oct 24 '22 18:10 krayon007

Confirmed fixed in 1.0.90

cfsnate avatar Oct 26 '22 15:10 cfsnate

Same here, tested the -install switch with meshagent downloaded from 1.0.90 and it worked properly! Thanks!

spiffyguy avatar Oct 26 '22 15:10 spiffyguy

@si458 this is fixed

dinger1986 avatar Nov 26 '23 12:11 dinger1986