Score:1

Start video with VLC on Linux from Windows PC using ssh or Putty

cd flag

I need to start videos on the Linux computer. I am not always able to access it directly. I am using Windows PC and I can ssh to that Linux PC. Do we have any way to start the video to play in VLC using ssh, putty, or something else? I do not need the screen on Windows PC - I want to start it and displayed it on Linux.

Thank you,

us flag
Does the Linux computer (where you are SSHing to) have a display?
us flag
AFAIK, you cannot SSH to an existing session which is already connected to a display. Instead, use RealVNC Server and Viewer to remote control. https://www.realvnc.com/en/
petep avatar
in flag
ssh -X ip_addr "vlc /path/to/file.mp4 "
pe flag
you have the 'RC' feature of VLC, can be controlled via browser, another vlc app, ...
Score:0
fr flag

You can run graphical application on Ubuntu over ssh connection.

  1. First find out value of DISPLAY variable set by display server on Ubuntu machine[1].
  2. From your Windows PC connect to your Ubuntu machine using ssh client(I think windows 10 has a preinstalled ssh client)
  3. Run
export DISPLAY=:0
vlc -I ncurses file.mp4

Change the value of DISPLAY accordingly. Commands above will open VLC on Ubuntu machine and you'll be able to control playback (using ncurses interface) from your windows machine. See [0] for more information on how to control VLC interface.

[0] https://wiki.videolan.org/Documentation:Modules/ncurses/

[1] If your Ubuntu machine is inaccessible directly, you can check $HOME/.xsession-errors file for the DISPLAY variable or check How do I list connected displays using the command line?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.