Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

So I have been using mplayer to stream my music through SSH from my laptop to my Ubuntu box using:

ssh user@ip-address "cat /Some/Random/Directory/*mp3" | mplayer -

I was just wondering if there is a better way of doing this because currently I cannot skip through songs and such.

Does anyone know of a better way or a better program to stream music other than mplayer? Or perhaps some suggestion about the mplayer configuration?

share|improve this question
Maybe this answer gives you some ideas. – Takkat Feb 4 '12 at 22:56
up vote 0 down vote accepted

Install Subsonic, perhaps? You can stream music from it, play music on the hosting computer (if you want), and it can play your music on iPhone and Android devices, too (using special apps, of course).

share|improve this answer
I was looking for more of a command line approach. But I did not know about Subsonic. Pretty cool. I'll definitely have to check it out. Thanks a lot! – Ntc Feb 21 '12 at 0:26
In that case, either make the server (laptop) publish a stream usimg icecast2 or something, or (my recommended approach) share the files on the network and play them using moc (media on console). Since you have ssh, using sshfs to mount the music folder is the simplest solution. – Lakritsbollar Feb 22 '12 at 4:49

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.