Page 1 of 1

Setting up to start on boot from command line?

Posted: Sat Sep 29, 2018 11:22 am
by amosshapira
Hi,

My Mac Mini now is "headless" so I'd like to set it up to start the VPN as soon as it boots and keep it open all the time.
Also because it doesn't have display (at least it'll take me extra effort to connect to its display on a regular basis), I'd like to set this up through command line (I can access it via ssh).

The VPN is already configured for now from the time it used to have a display, all I need is a way to make it reconnect every time it boots or the connection drops.

Is this possible?

Thanks.

Re: Setting up to start on boot from command line?

Posted: Mon Oct 01, 2018 9:08 pm
by James
Hi amosshapira,

I'm afraid Viscosity can't run without a logged in user. What you'd need to do is to set macOS to auto-login a user under System Preferences->Users & Groups->Login Options (I'd also recommend having the screen lock on a short idle time as an added security precaution for remote VNC/screen-sharing access), and then have Viscosity's "Start Viscosity at Login" option enabled.

You can then enable the "Connect when Viscosity opens" option for your connection/s, and ensure the "Automatically reconnect if disconnected" checkbox is enabled.

Cheers,
James