Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Scenario. I am sitting on a laptop at my work station (windows with putty). My target is sitting in another room with his own ubuntu laptop with his own user.

I want to use the mpg321 program to play a wav file on HIS machine on his user, by logging in via ssh with my user and executing mpg321.

I have tried using sudo -u his_username, normal sudo, no sudo, but for some reason the sound does not play.


share|improve this question

If it's just a simple .wav file, why not use play instead? For a while I had this set up on my (Ubuntu) workstation to play the Star Trek "Red Alert" klaxon if a cron'd script detected a particular (and, sadly, common) failure condition on our production database server. It works quite well!

You may have to sudo apt-get install sox if it isn't already on the system. Have fun!

share|improve this answer

Another interesting program is speaker-test. It allows you to play all kinds of noises out of the speakers, everything from smooth sine waves to white noise. You can choose the frequency and channel. It won't play actual audio files but it's REALLY good for annoying people!

share|improve this answer

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.