Random things I've stumbled across as sysadmin/dba.
#!/bin/sh # Disable all hibernation and resume operations. echo "hibernate/suspend disabled" exit 1and make it executable:
chmod 755 /etc/pm/sleep.d/0000hard-disableIt probably makes sense to remove the options from Gnome - see remove "Suspend" and "Hibernate" from the "Shut Down" applet (basically edit /usr/share/polkit-1/actions/org.freedesktop.upower.policy and change all occurrences of <allow_active>yes</allow_active> to <allow_active>no</allow_active> and then:
# /etc/init.d/gdm3 restart
(condition-case nil (progn (require 'package) (add-to-list 'package-archives '("somerepo" . "http://...") t)) (error nil))