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?
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?
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?
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?