Disable the pcspkr module of centos to prevent alarms.

Source: Internet
Author: User

The newly installed centos may encounter unexpected problems, which also brings a lot of inconvenience to beginners. This is a very common problem, because beginners may see more things on the surface of Linux, as well as what they see in comparison with windows. This is especially evident for users from windows to Linux. The following is an analysis of a "beep" alarm triggered when a centos instance is started and shell is run incorrectly or for various reasons. We need to make sure that this problem is not issued by the sound card, it is the buzzer of the motherboard, so it cannot be solved by shutting down the speaker. The sound is harsh. You can disable it in this way:

Get administrator permissions, edit/etc/inputrc, find the # Set bell-style none item, and comment it out. The value range of bell-style is none, visible, and audible. If you want to remove the alarm sound, change the value of set bell-style in/etc/inputrc to visible, and remove the annotation, restart the system.

--------------------------------------------------------------------------

To take effect immediately:

Run rmmod pcspkr

To disable it permanently: # echo "rmmod pcspkr">/etc/rc. d/rc. Local.

For more information, see click to open the link.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.