How to disable system beep on Linux? I don't have superuser powers so I cannot recompile kernel/unload module.
There's various levels at which beeps can be controlled by the user. Here's some I'm aware of:
export LESS="$LESS"' -q'- adds -q to the default options for
lessso it doesn't ring the bell (eg. when trying to scroll past the end of a file)
echo 'set bell-style none' >> ~/.inputrc- disables bell for all applications using
readline(restart your terminal to see effect)
xterm -vb- enables "visual bell", which flashes the terminal window instead of making an audible noise. You can add
xterm*visualBell: trueto your X resources (
~/.Xdefaults) to change the default. Most terminal emulators include a similar option.
X SERVER LEVEL
xset b off- disables X server bell
alsamixer- mute or turn down the
In my case muting the ALSA channels didn't help - I still got a bell sometimes from the builtin speaker (even with headphones plugged in). But disabling the X server bell got rid of it.