Ubuntu – How to make the ‘beep’ command work


I am trying to use the beep command, but it doesn't beep any sound.

I installed it with sudo apt-get install beep, then I ran beep and nothing happen (no error displayed or sound played). I've also ran sudo modprobe pcspkr, and sudo alsamixer, unmuted "beep" and put the db gain to 100. And sudo alsactl store after that.

Is there a way to fix it or an alternative to beep?

I am using Ubuntu 10.04.

Best Answer

Does it have to be the system beep or can it be any sound?

You have a command on your system to play command line sounds. For instance open a terminal with Alt-F2 and

cd /usr/share/sounds/alsa/
aplay Front_Center.wav

will play this Front_Center.wav.

So all you need is to find a beep.wav on the web and use aplay with it.