beep on xterm depends on if you are accessing a local
machine probably.
Look at
xset
you can set the duration of the beep etc. here.
Changing the default beep on console:
I can't test this as I'm on solaris at work.
But there are 2 escape sequences for this.
These change the default beep.
They are something like this (the numbers 10 + 11 are def. correct):
ESC[10;n where n is the frequency
ESC[11;n where n is the duration in milliseconds
so try (in bash need echo -e, ksh just echo or print):
Code:
echo -e "\033[10;1000]\a"
echo -e "\033[11;1000]\a"