Disable Linux alarms

Source: Internet
Author: User

Problem:

Every time a RedHat input is wrong or something, the computer is screaming.

This sound is not from the external audio output device of the system, but from the inside of the machine (it should be a voice Generator controlled by the BIOS ).

 

Execute the following code without executing all the statements.

Setterm-bleng 0
Setterm-blength 0
Xset B off

Set the preceding statement ~ /. Bashrc.

==============

The following is another method:

Temporary solution

Sudo rmmod pcspkr

For Debian/Ubuntu users, you only need to open your terminal and run the above command. For Linux users in centos/RedHat/RHEL/fedora, Log On As root and run rmmod pcspkr.

Permanent solution

For Debian/Ubuntu systems, run the following command as root:
Sudo echo "blacklist pcspkr">/etc/modprobe. d/blacklist

For centos/RedHat/RHEL/Fedora systems, run the following command as root:
Echo "alias pcspkr off">/etc/modprobe. conf

 

The beep sound under the virtual terminal of X can be closed through xset B off. This command can be placed in the startx configuration file $ home/. xinitrc.

 

 

Http://hi.baidu.com/luoshupeng/blog/item/b29e9725f149ab6934a80f86.html

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.