Setting up to start on boot from command line?

Got a problem with Viscosity or need help? Ask here!


Posts: 1
Joined: Thu Sep 27, 2018 1:27 pm

Post by amosshapira » Sat Sep 29, 2018 11:22 am

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?



User avatar
Posts: 2076
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Mon Oct 01, 2018 9:08 pm
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.

James Bekkema
Viscosity Developer

2 posts Page 1 of 1