Disable the PC speaker beep in Linux console and X windows
Globally
To completely prevent the PC speaker from beeping you can disable the module loading at startup. To do this add the pcspkr module into the MOD_BLACKLIST array in /etc/rc.conf:MOD_BLACKLIST=(pcspkr)
Locally
To disable the annoying PC speaker beep in X:xset b offYou can put this into ~/.xinitrc or similar to disable it every time X starts.
To disable it in console:setterm -blength 0
Another way is to edit ~/.inputrc, add this:set bell-style none
沒有留言:
張貼留言