Mac Fdesetup Manual

Active5 months ago

If you don't want to use iCloud FileVault recovery, you can create a local recovery key. Keep the letters and numbers of the key somewhere safe—other than on your encrypted startup disk. If you lose both your account password and your FileVault recovery key, you won't be able to log in to your Mac or access the data on your startup disk.

How can a Mac running El Capitan always be ready for a VNC connection even after a reboot?

Mac Fdesetup Manual

I can vnc into the Mac with no problem but when I reboot the Mac remotely I can't vnc back in. Someone has to hook up a keyboard to the Mac and physically log in and log back out. Once the machine has been logged in locally I can once again log in remotely via Mac.

I'm using the Mac's built-in VNC as well as an installed RealVNC server. Neither will respond after a reboot.

I edited the RealVNC launch daemon to run at load but that didn't work.

UPDATE

The mac has filevault turned on. 'sudo fdesetup authrestart' will work with a manual reboot. It will not work however with a forced system reboot or a power outage. Someone would still need to manually login with a keyboard in those cases.

The options at this point seem to be to disable Filevault or accept the fact that a person will need to login occasionally.

coder
codercoder

4 Answers

Apple supports this out of the box. Under the Sharing preference pane you need to enable either the Screen Sharing or the Remote Management and then use the Computer Settings dialog to enable VNC.

The service starts up automatically when incoming network traffic on the VNC ports is detected by the OS. Now, you do need to get past any FileVault pre-login screen where the full actual OS isn't running yet. To restart and skip FileVault one time, use:

You might need to watch for DHCP traffic and see if the Mac is rejoining the network and asking for an address from the router if you can't find the machine on reboot. For troubleshooting, you could assign a static IP address so that you're sure it's not a DHCP issue.

The problem also could be your choice of VNC client and it's not expecting to connect to OS X Lion or newer. Some older clients break when Apple allows a choice to connect to the logged in user or a new login window. The client needs to reconnect once the session drops to log you in.

One client I like on iOS and Mac OS X is http://edovia.com/screens/ Of course Apple's free Screen Sharing app (look for it in /System/Library/CoreServices/Applications ) and Apple Remote Desktop work well, too.

bmikebmike
168k46 gold badges302 silver badges661 bronze badges

VNC is tricky to use on a headless system. The way it works is that it queries the display server to get the settings so VNC can send those settings to the viewer. If nothing is connected, no parameters are sent and thus the viewer has no idea what to display. This is why I am not a fan of VNC or ARD and will only use it if I absolutely have to (95% of everything I do on headless systems is in Terminal, so this doesn't come up very often for me)

This is why you have to hook up a monitor to get screen sharing to work again. If you leave the monitor attached, VNC will work with no problems across reboots

Trick OS X into Thinking a Display is Still Attached

The easiest thing I have seen that solves this problem is getting a Dummy Display Emulator. It's clean, it's easy and it works out the box. What it does it makes OS X think a monitor is still plugged into the display so whatever settings you have configured for that 'monitor' will be sent to the VNC viewer.

You can make your own but to me, this is not safe and very sloppy for a permanent installation. I included this option both for reference to see what is being done here (how easy it is) and to provide another option if you are in a pinch. Again, I am not a fan of this DIY hack because it's not clean and if you don't have the mDP to VGA adapter or the resistor you will have to purchase them anyway and you might only save a couple of bucks over the commercial product.

Mac Fdesetup Manual Downloads

You could read the linked blog on how to do this, but the picture below alone should tell you what to do and, what Apple display adapter you need, and what resistor to buy based on its color codes.

AllanAllanMac fdesetup manual online
47.5k16 gold badges78 silver badges185 bronze badges

The solution to the problem ended up being three-fold.

The mac has filevault turned on. 'sudo fdesetup authrestart' will work with a manual reboot. It will not work however with a forced system reboot or a power outage.

  1. .bash_profile a command alias to 'sudo fdesetup authrestart'. I used 'reboot'. Now from the terminal I can type 'reboot' to property restart the system.
  2. Use a UPS for power outages

Mac Fdesetup Manual Pdf

  1. If VNC becomes unresponsive ssh into the box and reboot via 'sudo fdesetup authrestart'
codercoder

Disable file vault on your startup disk, move sensitive data to another volume, and encrypt it with FileVault or some other means. I think in that case MacOS does not require a password before the OS loads.

samhsamh

Mac Fdesetup Manual Downloads

You must log in to answer this question.

Mac Fdesetup Manual 2017

Not the answer you're looking for? Browse other questions tagged macosremote-desktop .