Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-10-2004, 06:37 PM
|
#1
|
LQ Newbie
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22
Rep:
|
How to disable beep in command line
You know the annoying PC speaker beeps you get in linux when you hit backspace too many times or hit tab to autocomplete something and there's either multiple or no matches or when you type shutdown -h now (or whatever)? I was wondering if there was a way to disable this "beep on error" cuz i'm fixing to go crazy and rip that darn PC speaker right outta my case!
I'm not talking about in the GUI using xterm or konsole. I know how to do that.
Use this command to turn off beeping in general in X:
xset b 0
Does anyone out there know this? I'd be much obliged. 
|
|
|
09-10-2004, 06:50 PM
|
#2
|
Member
Registered: Aug 2004
Posts: 695
Rep:
|
|
|
|
09-10-2004, 07:59 PM
|
#3
|
LQ Newbie
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22
Original Poster
Rep:
|
Awesome!!! Here's how I disabled it:
I added the line "set bell-style none" to the file ~/.inputrc then logged out and back in and it worked right away. But you'll have to add this to every account you want to disable it for.
Adding it to /etc/inputrc didn't work for me. I think because I'm using Red Hat Linux 5.2 (kernel 2.0.34) on here.
Thanks sether for pointing me in the right direction thou 
Last edited by Backstander; 09-12-2004 at 01:09 PM.
|
|
|
09-10-2004, 08:09 PM
|
#4
|
LQ Newbie
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22
Original Poster
Rep:
|
Sorry to post twice but you can also use "set bell-style visible"
|
|
|
09-10-2004, 08:18 PM
|
#5
|
Member
Registered: Aug 2004
Posts: 695
Rep:
|
if there's a /etc/profile file in linux (i don't know because i'm on FreeBSD at the moment), that usually would work for something like that on a system-wide scale.
|
|
|
09-12-2004, 01:29 PM
|
#6
|
LQ Newbie
Registered: May 2004
Location: USA
Distribution: Red Hat, Fedora, KNOPPIX, DSL, Slackware
Posts: 22
Original Poster
Rep:
|
Yeah there is a /etc/profile but didn't seem to work for me. May work for newer linux version. I think /etc/inputrc is system-wide implementation as such but didn't work for me either. I even tryed them with a full system reboot without luck.
|
|
|
09-12-2004, 02:11 PM
|
#7
|
Member
Registered: Jun 2004
Location: UK
Distribution: BLFS 5.1
Posts: 34
Rep:
|
I have the PC speaker compiled as a kernel module rather than having it compiled in. I've never had a reaon to load it.
|
|
|
All times are GMT -5. The time now is 01:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|