I've got a Raspberry Pi connected to my TV, with no mouse or keyboard.
I'm ssh
ing into it, starting X and then I want to launch VLC (or any other GUI program, for that matter). If I ssh -X
, that will open the program in the computer I'm ssh
ing from, not on the TV.
How can I launch a program and make it appear on the TV?
While X11 remains the foundation for most Linux desktops, its network transparency, or ability to display output across the network, is one of its unsung features. SSH makes it easy and secure to run Linux GUI apps on a remote machine and display them on your machine.
Remote GUI allows you to access your router's online settings, also known as the graphical user interface (GUI), through a WAN connection. To access your modem remotely, you will enter https:// followed by the modem IP in the URL field of a browser.
Slightly less typing than Joachim's (and actually slightly different behavior):
DISPLAY=:0 vlc
This doesn't actually set the DISPLAY variable to :0 for the whole shell session, only passes it to vlc.
So:
If you want to start other X programs in that session after VLC, Joachim's is better.
If you just want to run VLC ASAP, this is faster by 9 keypresses. :)
(I wanted to add this only as a comment, but I didn't have enough points for that, sorry.)
The DISPLAY
environment variable needs to have a value set to which display the program should be opened. If you set it to :0
, it means the first local screen.
This should in other words open vlc on the first local screen;
export DISPLAY=:0 ; vlc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With