Disable screensaver and lock screen in Ubuntu Mate

I have a few virtual machine deployed on in my home lab, and my general OS of choice is Ubuntu Mate.

Not as barebones basic as XFCE4, and not as resource-intensive as Gnome3 or KDE.

One of the first things I do after rolling out a virtual machine is to disable the screensaver and lock screen on any OS.

On Ubuntu Mate, this can be accomplished with these commands:

  • Disable screensaver

    gsettings set org.gnome.desktop.session idle-delay 0
  • Lock screen

    gsettings set org.gnome.desktop.screensaver lock-enabled false

You do not need to be root, or use sudo, for these commands.