Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use ssh lots, often doing long-running builds on other machines.

I'd like to know when a compile or other long-running process fails on a remote machine, and my preference for feedback would be audio.

Is there a way I can get remote audio forwarded to my local machine? I'd prefer something that integrates with ssh -X if possible, but I'd like to know about any options that exist.

share|improve this question
up vote 1 down vote accepted

There are multiple sound servers that can forward sound over TCP: esd, JACK, NAS, Pulseaudio... If you decide to use one, your main problem will be to make sure that you have the same on all machines, or else to arrange for forwarding multiple systems and translating them locally.

For your use case, I think it would be simpler to send only text through the ssh channel, and locally play a sound when you receive a notification from the remote end. For example (nc is OpenBSD netcat):

while true; do
  ret=$(nc -l localhost 12345);
  if [ "$ret" -eq 0 ]; then play ok.wav; else play failed.wav; fi
done &
ssh remote -R12345:localhost:12345 'make; echo $? | nc localhost 12345'
share|improve this answer

The system bell works through ssh; or you can tunnel ESD, NAS, or whatever audio system works for your system. On my systems I have a tiny program called beep installed that rings the system bell.

share|improve this answer
There is pulseaudio as well: – Mark Wagner Sep 10 '10 at 20:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.