Do not unplug your internal speaker or make boot scripts :wink:
Edit the *.inputrc* file in your home directory (create it if needed) and add the line
Code: set bell-style visible this will replace the beep by a flashing screen. You can replace '*visible*' by '*none*' to get nothing at all.
You can also add (or uncomment) this line in the general /etc/inputrc file to set the bell-style for all users (overriden in ~/.inputrc).
You have to log out to enable this setting.
PS: this also works in xterm/konsole/gnome-terminal @geofs: The method you've offered didn't work for me. I'm using LMDE x64 (which is debian-based but very similar to ubuntu) and there was no *.inputrc* file in my home. I could find */etc/inputrc* but uncommenting the line you mentioned didn't affect anything.
Turn off (mute) system beep
For anyone with a laptop who works in a library or other quiet area, system beeps every time you press the backspace key one too many times, or just using emacs, can be quite disturbing.
To shut them off: open an xterm or terminal, and enter the two lines Code: xset b off xset b 0 0 0 Hope this helps.
note: this does not work if run before X. To have it run as default, you can place it in your .xinitrc before the windowmanager. If you're using Gnome or KDE, it is probably easier to just turn off the "System Bell" or set it to "Visable Only" in your respective settings manager. But the method WolfJay_83 offered worked for me too. Thank you WolfJay_83.