How do I upload banner images to my ubuntu droplet?

June 17, 2015 552 views
Linux Basics Linux Commands Ubuntu

Please pardon my knowledge here, I am about 24 hours into even using an Ubuntu server, and my knowledge of Linux is limited to Debian on a Raspberry Pi.

I'm trying to locally host the banner/favicon images on my Droplet for the Discourse distro I have hosted. I can't seem to find anything in a gui that allows me to upload images to some sort of repository on the Droplet, so I am guessing I will need to upload them in a more direct way.

How would I do this? Do I use the virtual console? Or SSH?

I suppose SSH would be the best, since I have the files on the computer I'd want to use for SSH.

Any help whatsoever would be appreciated, I am way out of my field.

1 Answer

If you have an scp client on your local machine you can use scp to transfer files over ssh.

You can also use an SFTP client like Filezilla to upload your files. To use filezilla you will set up a connection with the following details:

Protocol: SFTP
Port: 22
Server: [your droplet's IP]
User: root
Password: [ your droplet's root password]

This will start you off in the /root directory but you are not locked in this directory. If you are using Apache to serve your web files the default web root is /var/www/html. If you're using nginx it would be /usr/share/nginx/html

You can install Apache with the commands:

apt-get update;
apt-get install apache2;

Or nginx with:

apt-get update;
apt-get install nginx;
Have another answer? Share your knowledge.