macos – Automate logging into a number of macs without delay


I run a 4 show a number of monitor setup, the place 3 displays are the primary mac, and the 4th is a secondary mac. I do that as a result of the secondary mac is a separate machine and so I run issues on there I do not need interfering with the primary workflow. Issues like OBS for webcam, facet jobs like managing scanners/printers, multimedia (its loopy how so many music apps now are useful resource hogs), so on, so forth.

I wish to preserve these two machines behaving like one machine as seamlessly as attainable. To this finish I’ve received scripts that can ssh to the secondary mac and wake or sleep it when the primary mac does so.

I would like the secondary mac to login after I login to the primary mac. I do not wish to allow the autologin characteristic as I’ve a minimal safety posture since I’ve shoppers and consumer knowledge. Ideally I do not wish to preserve a password in plaintext anyplace.

Theres plenty of hits throughout the web for utilizing an applescript to automate login. Issues like:

osascript -e "inform software "System Occasions" to keystroke "USERNAME""
osascript -e 'inform software "System Occasions" to delay 0.5';
osascript -e "inform software "System Occasions" to keystroke tab"
osascript -e "inform software "System Occasions" to keystroke "PASSWORD""
osascript -e 'inform software "System Occasions" to delay 0.5';
osascript -e "inform software "System Occasions" to keystroke return"

However I’ve not had any luck with that, I believe maybe I want to provide some binary the best system entry? Different issues I’ve thought of:

  • It looks as if it may need been attainable with the outdated instruments in MacOS Server however thats gone now.
  • I’ve appeared into presumably automating it with ARD however I do not wish to spend the cash on that only for this.
  • I am uncertain should you can script vnc sort interactions.
  • Utilizing one thing like MicroMDM or related MDM answer (free ideally)
  • Some sort of third social gathering macro working device (hacky, uncertain if it’s going to fireplace pre login)
  • The login sync characteristic of software program like Sharemouse (simply would not work for me for some motive, and the app is a black field, no method to debug) (additionally, being a black field, not the fuzziest feeling safety posture clever)
  • I did discover this script which toggles the autologin characteristic. its hacky however toggling this may work?

I am questioning if theres a way to do that by way of both Common Management or the Apple Watch auto login options.

That is certainly an issue that individuals who run pc labs of macs run into so there have to be some answer?

Leave a Reply

Your email address will not be published. Required fields are marked *