The below have worked for me in the past on Debian based systems.
Code:
echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist.conf
(snd_hda_intel has a default beep mode)
Code:
echo "options snd_hda_intel beep_mode=0" >> /etc/modproobe.d/alsa-base.conf