Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get the terminal bell to play an alert sound out of the regular speakers (not the PC speaker)? I have irssi set up to beep for various IRC events, but nothing happens because the beep uses the terminal bell.

Also, see my related question about visual alerts.

share|improve this question
up vote 2 down vote accepted

Edit ~/.xprofile and add the line pactl upload-sample /usr/share/sounds/gnome/default/alerts/glass.ogg bell.ogg. Then when you log out and log back in, typing echo -e '\a' in the terminal will play an alert sound (glass.ogg). Then I copied bell.ogg (found with locate -i bell.ogg) to the same folder as glass.ogg and modified the above command to use bell.ogg instead. Then, you can adjust the alert volume in Sound -> Sound Effects tab.

This solution worked on Ubuntu 12.10 Quantal Quetzal 64 bit with 3.5.0-22-generic. It's from

share|improve this answer
So freakin' weird. I mean the complexity of doing this simple thing. – Attila Fulop Oct 2 '14 at 8:44
This doesn't seem to work on Ubuntu 14.04 – Flimm Dec 2 '14 at 23:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.