Sometimes, reboot or shutdown -r now, don’t work anymore.
echo s > /proc/sysrq-trigger &&
echo u > /proc/sysrq-trigger &&
echo s > /proc/sysrq-trigger &&
echo b > /proc/sysrq-trigger
# become root
sudo -s
# do the job
sed 's/#GRUB_DISABLE_RECOVERY="true"/GRUB_DISABLE_RECOVERY="true"/' -i /etc/default/grub
update-grub
You should obtain a similar result, easier, enabling the hidden config option (about:config).
You will not completely disable CTRL-Q but at least you will make it harmless.
PREFIX=~/.vim && mkdir -p $PREFIX/{syntax,ftdetect} && curl https://raw.githubusercontent.com/Icinga/icinga2/ec75e7dcbbf8c5650197a82107969936220707c8/tools/syntax/vim/syntax/icinga2.vim > $PREFIX/syntax/icinga2.vim && curl https://raw.githubusercontent.com/Icinga/icinga2/ec75e7dcbbf8c5650197a82107969936220707c8/tools/syntax/vim/ftdetect/icinga2.vim > $PREFIX/ftdetect/icinga2.vim | |
echo -e "[Re-enable hibernate by default]\nIdentity=unix-user:*\nAction=org.freedesktop.upower.hibernate\nResultActive=yes\n" | sudo tee /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla > /dev/null && echo "All done, now you can hibernate from the menu"
USER_OR_GROUP="plugdev"; echo "%$USER_OR_GROUP ALL=(ALL) NOPASSWD: `which pm-hibernate`" | sudo tee /etc/sudoers.d/hibernate > /dev/null && echo "All done, now you can run 'sudo pm-hibernate' from '$USER_OR_GROUP' without password"