SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-07-31 23:29:13

UkDkDe
Member
Registered: 2009-05-08
Posts: 47

Solved: mplayer + ssh to play remotely stored music files on a netbook

This stumped me for a while; sorry if it is trivial for everybody else.

Setup: my music is stored on my desktop (192.168.2.101)
I wanted a simple way to play the files on my netbook (so the sound comes from the netbook speakers)

Solution - install mplayer and ssh. In a terminal on the netbook issue the command:

ssh user@192.168.2.101 "cat music.mp3" | mplayer -

note the "-" at the end. Login with User's password when prompted. mplayer will play through the netbook speakers. Can replace music.mp3 with a directory structure eg. /music/foo/bar/*.mp3

This is different from the usual set-up where the sound is played back through the desktop speakers (eg:
ssh -X -luser 192.168.2.101, then login as user and run, for example, quodlibet on the desktop through an X screen)

Offline

Help fund CrunchBang, donate to the project!

#2 2009-08-02 20:24:10

ralfonso
New Member
Registered: 2009-01-30
Posts: 2

Re: Solved: mplayer + ssh to play remotely stored music files on a netbook

I usually just set up NFS for stuff like this, but check out SSH-FS if you're looking for a nice temporary solution.

Offline

#3 2009-08-02 20:41:08

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Solved: mplayer + ssh to play remotely stored music files on a netbook

Your solution is more than unconventional. Everybody - including me, myself and I - would have told you what ralfonso said: Mount a remote folder using nfs or samba... but catting an mp3 like that is far from beeing trivial. You just expanded the horizon of yet another linux noob big_smile


I'm so meta, even this acronym

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo