Scenario / Questions
I’ve recently started using a new desktop PC with Ubuntu Linux installed. However the terminal beeps annoyingly. i.e. If I’m at the start of the line and I press Backspace, it’ll beep to tell me that there are no characters to delete. Of if I am trying to tab complete and there are no completions for it, then it’ll beep.
How do I turn this off?
Find below all possible solutions or suggestions for the above questions..
As the pc speaker is annoying altogether (at least, I think it is), I just go
modprobe -r pcspkr
and add it to /etc/modprobe.d/blacklist.conf like this:
No more beeps. Ever.
Does not work for bells through /dev/snd/*, obviously
Easiest fix: put
set prefer-visible-bell on
This however will only work for applications using the readline library (this includes Bash). Other applications may still decide to beep at you.
If you want to disable all beeping, you will have to do it in the terminal. How to do this depends on your terminal. In
xterm it’s option
-vb (also works in many other terminals, e.g. in rxvt). Most graphical terminals have a config option for this.
Also see the Visible bell mini-Howto for all the dirty details.
- Open Gnome terminal
- Click on Settings > Preferences > Silence Terminal Bell
$ setterm -blength 0
You’ll want to add this to your Bash profile.
In addition to the
setterm and GNOME settings solutions already suggested there are the following:
If running X, open an
xterm and enter
xset b off.
To disable system bell in Bash startup edit
/etc/inputrc and add the line
set bell-style none or
set bell-style visual if you want a screen flash.
There’s a good article on this here.
Kubernetes Free Online Tutorial, Kubernetes Beginner Tutorial
DevOps Free Online Tutorial, DevOps Beginner Tutorial
Ansible Free Online Tutorial, Ansible Beginner Tutorial
Docker Free Online Tutorial, Docker Beginner Tutorial
Openstack Free Online Tutorial, Openstack Beginner Tutorial
Disclaimer: This has been sourced from a third party syndicated feed through internet. We are not responsibility or liability for its dependability, trustworthiness, reliability and data of the text. We reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever.