关闭ubuntu 错误提示音

临时关闭:
rmmod pcspkr 但此命令必须使用最高权限管理员才行。

临时打开:
modprobe pcspkr

永远关闭
切换到root用户下 vim ~/.bashrc
在最后加上
setterm -blength 0
xset -b

在 console 下: setterm -blength 0
在 X-win 的 terminal 下: xset -b