Reputation: 57
I have a picture on my remote ubuntu(16.04) server, so I want to paste it to my Github Readme.md file.
So how can I view (not download, not copy) that image through URL, for instance, server_ip_address/img.png
Thanks for any help or idea!)
Upvotes: 0
Views: 1665
Reputation: 1604
If you want to host resources on your ubuntu server you should install a webserver (apache / nginx) if ones not installed already. Heres docs for ubuntu apache: https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04.
Move the image to the webserver's document root (likely /var/www/html) so that you can access it via a url. If you have a static ip on the host then you should be able to access it via http://static_ip/img.png and add that url to Readme.md
Upvotes: 1