Automatic reboot after kernel panic

Yep, Linux can do that ! By default in most distribution this feature is disable. To enable it simply edit the /etc/sysctl.conf file and add the following lines:

kernel.panic = 1
kernel.panic_on_oops = 1

Now kernel panic and oops, will automatically trigger an hardware reboot. Don’t forget sysctl -p to take the new values into account immediately.

Disable PC speaker

If you recycle an old desktop machine into a ‘home’ server, maybe you have a machine with a PC speaker. To disable this annoying little thing:

  • unload the pcspkr module: rmmod pcspkr
  • blacklist the module to prevent udev from loading it:
# echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf