Monday 7 December 2009

Mute your PC speaker (bell) under FreeBSD / VMware

If your daily job is taking place in an open-space shared office then most likely you will want your laptop/PC to be as quiet as possible in order not to disturb your co-workers. Unfortunately the FreeBSD console does employ quite a loud bell signal (beep) and lots of operations in the terminal are prone to trigger it (especially if you are accustomed to TAB completion).

To disable generating the bell sound in FreeBSD at the console you can set the following sysctl in /etc/sysctl.conf:
hw.syscons.bell=0
Unfortunately it does not work to set it in the bootloader (/etc/boot/loader.conf). However, if you're running under VMware there is another trick — add the following line to the .vmx configuration file of the VM in question:
mks.noBeep="TRUE"
Alternatively you can add it to on of the following configuration files to make the change global for all your VM's:
  • Linux: ~/.vmware/config
  • Windows: C:\Documents and Settings\All Users\Application Data\VMware\VMware Workstation\config.ini
PS: to disable the bell in the X interface you need to run "xset b off".

No comments:

Post a Comment