How do set my Fedora 21 to beep?

asked 2015-04-07 19:03:38 -0600

updated 2015-04-08 00:25:51 -0600

I've been trying to make my system beep but just can't find the solution, I've tried:

    modprobe pcspkr
    yum install beep
    echo -ne "\007"
    echo -ne "\a"
    echo -e "\a"
    echo -e \\a
    echo -en "\a" > /dev/tty10
    echo -e "\a" > /dev/console
    rmmod pcspkr
    modprobe snd-pcsp


nano /etc/modprobe.d/blacklist.conf

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
# blacklist snd_pcsp

What if I'm running clamscan and the program runs the bell(as I've seen), how do set it to actually ring? What if I write a shell-script and it is suppose to ring the bell? what if the bell is suppose to ring?

edit retag flag offensive close merge delete


Yum doesn't show any package named bell. What repo does it come from?

sideburns gravatar imagesideburns ( 2015-04-07 21:01:53 -0600 )edit

@sideburns Sorry about that, I meant to say beep, I've edited my question.

somethingSomething gravatar imagesomethingSomething ( 2015-04-08 00:26:42 -0600 )edit

Thank you. I've just installed and tried it:

Could not open /dev/tty0 or /dev/vc/0 for writing
open: No such file or directory


sideburns gravatar imagesideburns ( 2015-04-08 01:12:17 -0600 )edit

Read over the IOCTL WACKINESS section of man beep. As far as I can tell, it isn't useful for modern applications...

randomuser gravatar imagerandomuser ( 2015-04-08 01:20:32 -0600 )edit

Thank you; I wonder if it would work from an at job when nobody's logged in. (In suid mode, of course.)

sideburns gravatar imagesideburns ( 2015-04-08 02:46:52 -0600 )edit