linux 关闭 beep bell 报警声音

1. 禁止加载内核模块pcspkr

# echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf

2. 修改/etc/inputrc

set bell-style none  

3. gtk2和gtk3配置

gtk-error-bell = 0  

4. alsamixer

$ alsamixer    #按方向键移至"Beep"再按"M"