4

We have 15 PCs in our network. If there is a big meeting, we want to play a sound (from a file, just some seconds) on all PCs in our network.

Most of them run Ubuntu, some run SuSE.

How can I solve this?

j0h
  • 15,365
guettli
  • 1,765

2 Answers2

4

Use play command to play the file. So something like ssh user@hostname play /location/of/file.mp3 on each of the PCs. If up to 5 seconds delay is alright then you can simply use a for loop to run that command from any PC. Something like for PC in list of hostnames; do ssh user@$PC "play /location/of/file.mp3" & done.

Setting up public key authentication will eliminate the need for password inputting for each of the hosts. How can I set up password-less SSH login?

mbiber
  • 850
0

I think streaming audio in your network can be a solution for your case.

have a look on this question: How to stream music over the network to multiple computers?