UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have tried modifying /etc/inputrc to set my bell-style to none. It doesn't sound like it works. I have also made the change in /usr/share/base-files/inputrc just in case for some strange reason it picks up the config there. Eitherway, my system bell still beeps at me and it's driving me insane.
Any ideas how to fix this?
Currently
Ubuntu 5.04
Kernel 2.6.10-5-386
Running in VMWare 5 for now
Try "setterm -blength 0" (in console) or "xset -b" (in X)
You can also put this in your ~/.bashrc or ~/.profile or whatever.
To totally silence the bell at boot time it may be appropriate to put "setterm -blength 0 >/dev/ttyX" in the startup scripts (a line for each terminal you wish to silence, with X the appropriate number).
The best file to put it in is a bit distro-specific I'm afraid...
As for silencing it through my virtual consoles, no sweat.
Is there a place to make this universal throughout the system for X users? I want to ensure that by default the bell is off and have my users only turn it on if they so desire.
p.s. I like your sig
Quote:
"UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."
- Doug Gwyn
Originally posted by JordanH
Is there a place to make this universal throughout the system for X users? I want to ensure that by default the bell is off and have my users only turn it on if they so desire.
If you use a display manager (xdm, gdm, kdm, wdm, ...), somewhere in their setup directories (something like /etc/X11/xdm), there should be a script called "Xsession". This runs after a user logs into X (and ultimately runs his window manager). So this is a good place to put "xset -b" in. Users can then "xset +b" to turn the bell back on.
If your users go into X from console using "startx", then there is no system-wide place to do it; they'll have to put it in their ~/.xinitrc or ~/.xsession
have a look for profile on gnome-terminal or for properties when
the terminal is open.
If you find a entry named terminal bell, remove the active flag.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.