Computer Management - Disable Sleep and Hibernation on Raven

We’ve been having an issue with our computer Raven where it would become inaccessible after some time after a reboot. Attempts to remote in would just indicate no route to host or something like that. We realized it seemed like this was caused by a power saving setting, but changing the sleep setting in the Ubuntu GUI menu didn’t fix the issue. It also seemd like the sleep/hibernate issue was only a problem after the computer had been rebooted and no one had logged in yet…

After some internet sleuthing, I came across the following command which prevents sleep/hibernate, even when no one is logged in:

sudo systemctl mask

Voila! No more sleep/hibernate issues preventing remote logins!