Fun with /dev/speaker
-
I've always appreciated pfSense's happy little melody announcing that it finally got to a login prompt or was shutting down.
So I went looking for a few old tunes from the bad old BASIC days that might be pressed into service as notifications.
This is my favourite so far:
echo "E8 E8 F8 G8 G8 F8 E8 D8 C8 C8 E8 E8 E8 D12 D4 E8 E8 F8 C8 G8 F8 E8 D8 C8 C8 D8 E8 D8 C12 C4 D8 D8 E8 C8 D8 E12 F12 E8 C8 D8 E12 F12 E8 D8 C8 D8 P8 E8 E8 F8 G8 G8 F8 E8 D8 C8 C8 D8 E8 D8 C12 C4" >/dev/speaker
Anyone else got any favorites? I'm thinking of the above if an IDS flags an attack or something.
-
@daplumber
Haha, fun. I bookmarked your original post and finally tried it on my FreeBSD NAS (no speaker in the FW). Is the alpha the note and the numeric the duration?EDIT - https://forums.freebsd.org/threads/beep-on-sucessful-bootup.64145/
-
-
@provels BTW a lot of boards don’t have piezo speakers on the board, but do have a pair of header pins and a piezo speaker runs a couple of bucks on Amazon etc.
-
@daplumber
Reminds of my old days with DOS 3.1 on my IBM clone. Thanks for the wiki link. Now to compose the "Office" theme... -
@provels ooh, cool. Maybe the theme from “The Equalizer” too? ;-)
-
@daplumber
Trying to find an online convertor for MIDI to MML, but the output does not resemble your original post. Obvs, too many < > < < ... -
-
Yeah, you need quotes around it.
spkrtest(8) is also included for further fun.Steve
-
@stephenw10
Haha, stupid server tricks! Gotta love it.
-