Beep security update
Can't one just<p><pre><code>    sudo echo -e "\7” 
</code></pre>
anyway? Or if you're trying to do something fancier there is snd-pcsp which lets use use the piezo as a normal ALSA device (quality may vary). Not that many modern machines even include such a useful device.