Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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
1  
There is pulseaudio as well: wiki.archlinux.org/index.php/PulseAudio#PulseAudio_over_network –  Mark Wagner Sep 10 '10 at 20:56

Your Answer

 
discard

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.