How do I upload banner images to my ubuntu droplet?

Posted June 17, 2015 2.6k views
Linux BasicsUbuntuLinux Commands

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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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;