Friday, September 24, 2010

How to physically locate a FreeBSD machine using its shell

If a machine is being used only through remote access, it is very likely that one will forget its physical location. And one won't care where it is located unless one day you plan to upgrade the hardware of the machine. This is when one will try to recall where the machine is placed. Most of the time, its not easy to recall where the machine is located.

Wouldn't it be great if it was possible for you to tell the machine to make some noise so that you can locate it? Actually, it is possible. How? very easy :

Load speaker device in kernel:
kldload speaker

Then you can use it this way
Code:
echo "BP" > /dev/speaker
echo "SO4L16G>L8C." > /dev/speaker

1 comment: