DisablingBells/Ubuntu

There are a number of approaches for a system-wide fix, disable PC speaker beeping.

Approach 1: Disable the kernel module; edit the file  (comes into effect after reboot);

blacklist pcspkr
 * 1) turn off the PC speaker

Approach 2: set the bell duration to 0 milliseconds, for all ttys. Edit  (comes into effect after reboot);

for i in 1 2 3 4 5 6 do setterm -blength 0 > /dev/tty$i done

Note the approaches here should work with most Linux distributions

Note tips for this page come from http://ubuntuforums.org/showthread.php?t=422061