My serverip is a.b.c.d in digitalocean,when login into my sftp with putty,i downloaded a video file name movie1 in /root , i want to watch the video file played,input mplayer movie1 (mplayer have benn installed in sftp server). The error message is :
mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control.
Playing movie1.
vo: couldn’t open the X11 display ()! vo: couldn’t open the X11 display ()! vo: couldn’t open the X11 display ()!
How can i watch it to be displayed in my sftp server with mplayer command in putty console ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
First things first:
these are non-graphical servers out-of-box, so to play a video, you will need to either have X11 installed along with other tools, or you will need a headless X server installed with X11-forwarding configure on puTTY and have the X11 client for windows.
Second things second:
In my opinion, this is not the greatest idea, unless you absolutely require viewing on the server. Even there, I’d say place it web-accessible, and use VLC to open it. It can stream files from non-stream sources.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.