Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Allow me to elaborate some.

My grandmother is not the most competent woman with a computer but she likes to have access to the movies I have on an external hard drive.

I'd like to hook up a computer that has a graphical environment (ArchLinux-XFCE) up to her television via HDMI. Is there anyway I can log in via SSH and queue up a video so it would play in the graphical environment without her having to do anything other than flip the TV to HDMI input and tell me which movie to queue?

share|improve this question

migrated from stackoverflow.com Oct 5 '12 at 13:39

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

up vote 1 down vote accepted

Sure you can! Just set the DISPLAY environment variable to :0 that every graphical command you make will be sent to the first open display (assuming that the TTY user and the graphical user are the same).

DISPLAY=":0" mplayer Movies/movie.ogv
share|improve this answer
    
you will also have to XAUTHORITY=/home/user/.Xauthority –  sylvain.joyeux Oct 5 '12 at 5:51
    
@sylvain.joyeux On my tests it wasn't necessary. Can you point me to a resource? –  Renato Zannon Oct 5 '12 at 10:16
    
thank you. That is exactly what I was looking for. –  Matthew.Paul.P Oct 9 '12 at 13:00
add comment

Your Answer

 
discard

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.