Beep on Start up

If your PC has an on board speaker or piezoelectric buzzer (and most do) they can be configured to beep on start-up using the beep utility. I find that this is particularly useful on servers such as my file server or firewall as these do not have displays. The beep lets me know when they have finished booting and are ready to use.

First you need to install the beep utility if not already installed. Open a terminal window or login on the console and enter the following commands.

$ sudo apt-get update
Get:1 lenny/updates Release [92.4kB]


Fetched 7,505 kB in 47s (159 kB/s)
Reading package lists... Done

$ sudo apt-get install beep
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.6kB of archives.


Setting up beep (1.2.2-22) ...

To actually get the machine to emit a rising tone when it has finished booting you need to add the following lines to /etc/rc.local.

$ vi /etc/rc.local

#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the
# execution bits.
# By default this script does nothing.

modprobe pcspkr

beep -l 75 -f 500 -n -l 75 -f 1000 -n -l 75 -f 2000 -n -l 75 -f 3000

exit 0
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.