LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   disable beep sound in linux system (https://www.linuxquestions.org/questions/linux-newbie-8/disable-beep-sound-in-linux-system-739335/)

dkj 07-11-2009 02:37 AM

disable beep sound in linux system
 
Q. This beep sound is annoying under Linux, how do I disable it forever?
A. To be frank there are many ways exists - to turn off terminal beep. Use any one of the following method as per your requirements.

If you are using Gnome terminal
a) Open Gnome terminal
b) Click on Settings > Preferences > Silence Terminal Bell
Or Click on General Tab -> General -> Un-Check Terminal bell option

If you are using xterm
Open ~/.xsession file (i.e. /home/you/.xession)
$ cd
$ vi .xession
Append following line
xset b off
Save and close the file.

If you are using bash
Open you ~/.inputrc file (i.e. /home/you/.inputrc file)
Or /etc/inputrc file
$ cd
$ vi .inputrc
Append following line:
set bell-style none
Save and close the file.

If you just want to turn off beep for VIM text editor:
Open vim config file ~/.vimrc (i.e. /home/you/.vimrc)
$ cd
$ Vi .vimrc
Append following line
set vb
Save and close the file.

If you are using Ubuntu Linux
a) Click on Applications > Accessories > Terminal
b) Now click on Edit Menu > Current Profile
c) Click on General Tab > General > Remove check box (Terminal bell)

karamarisan 07-11-2009 02:40 AM

Alternatively, if you're comfortable poking around a computer, you could simply pull the two-pin jumperish connector that is the only tie between your computer and its PC speaker.

repo 07-11-2009 02:52 AM

or just add
Quote:

blacklist pcspkr
to
/etc/modprobe.d/blacklist.conf

colucix 07-11-2009 03:13 AM

If you're using /bin/tcsh: set nobeep in ~/.cshrc


All times are GMT -5. The time now is 05:35 AM.