Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how would one go about playing a film over the lan over ssh?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
lysergicacid
Guru
Guru


Joined: 25 Nov 2003
Posts: 352
Location: The Universe,Virgo Super Cluster,Milky Way,Earth

PostPosted: Tue Jul 20, 2004 11:45 pm    Post subject: how would one go about playing a film over the lan over ssh? Reply with quote

im hoping to be able to use the tvout card in another computer on my lan to be able to watch films mounted off my main comps samba server onto it, ive got the files mounted onto the tvout comp and would like to be able to do this via ssh prefferable with one script as the comp with the tvcard in it only has a tv connected to it no monitor no mouse no keyboard, i was hoping something like this
Code:
#!/bin/sh -xv
xinit /usr/bin/fluxbox -- :0
xhost +localhost
DISPLAY=":0.0"
exec /usr/bin/mplayer $1
might do it but it and a few options ive tried wont work, so im stumped, has anyone any ideas please ?
_________________
[img]http://valid.canardpc.com/cache/banner/2040927.png[/img]
Desktop:
[img]http://valid.canardpc.com/cache/banner/2703952.png[/img]
Back to top
View user's profile Send private message
donjuan
l33t
l33t


Joined: 11 May 2004
Posts: 760
Location: At Uni

PostPosted: Wed Jul 21, 2004 12:45 am    Post subject: Reply with quote

on telnet I've found it's really simple, just do:
$ xhost +server
$ telnet server
$ <type name of program here>

then it runs...so if you feel good enough about your LAN's security you might want to do that. It's what they do at my school, and telnet only works if I'm on a computer that's part of the domain.

But if you want to use ssh still, which is probably the better way to go about it, I've found this info from http://bengal-dev.missouri.edu/~guillena/xwinsec.html:

Step 1. The user grants access to the X server to the remote machine, where the X client is going to be run.

xserver.host> xhost +xclient.host

Step 2. The user connects to a remote machine (the X client).

xserver.host> ssh -X xclient.host -l arturo

Step 3. The user sets the DISPLAY environmental variable (or alternatively use the -display switch in the X client call).

xclient.host> setenv DISPLAY xserver.host:0.0

Step 4. The user runs a X client application.

xclient.host> xclock &

At this point, even though the application is running in xclient.host, the output (a window with a clock in it) is displayed in xserver.host.

I have no idea how well sound will work though it as what I've done so far is on a Sun Solaris terminal with no speakers or headphones.

I've also found this bunch of info: https://forums.gentoo.org/viewtopic.php?t=45579&highlight=
There was another one that I lost track of, so you can probably find info about X and ssh in a few other threads.
Back to top
View user's profile Send private message
lysergicacid
Guru
Guru


Joined: 25 Nov 2003
Posts: 352
Location: The Universe,Virgo Super Cluster,Milky Way,Earth

PostPosted: Wed Jul 21, 2004 1:44 pm    Post subject: hmmm Reply with quote

thanks for the help this isnt really the way i wana go about it, ideally i want to have a script on local comp that both starts fluxbox and opens film in fullscreen on the remote comp, might have to go another way round tho as this is proving difficult.

cheers for your input :)
_________________
[img]http://valid.canardpc.com/cache/banner/2040927.png[/img]
Desktop:
[img]http://valid.canardpc.com/cache/banner/2703952.png[/img]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum