Table of Contents

First steps on an external Server

Share on facebook
Share on twitter
Share on telegram
Share on linkedin
Share on whatsapp
Share on reddit
Share on email

The external Server set up

 

Introduction

What do I mean by external Server? A server that isn’t hosted on your Internal private Network.
Like for example, a Raspberry Pi would be, as described in this Post.

I am talking about VServers you can rent for cheap.

 

Why would we want that?

Often time you want to make sure that something is available 24/7 with minimal chance of failure.

At home, you can run into many problems. Maybe your internet is down, or you have a power shortage.

And if you then need to access your private Cloud or private password Manager you won’t be able to.

 

Another reason could be to make sure something is not exposing your internal network.

For example, when hosting websites you don’t want to do that at home.

External Servers are more stable, more reliable and aren’t very expensive.

 

Now that we got the WHY figured out, let’s figure out the HOW.

 

1. What we need!

First, you’ll need to rent a Server.

Second, you’ll need a domain.

That’s about it. Lets connect to our Server

 

2. Connecting to your external Server

To connect to our external Server we’ll need to ssh into it.

    2.1 Connecting with Linux or Apple

If you’re using a Linux or Apple device you can just use your terminal:

ssh serverip

And then log in with your username and password (Password doesn’t show up when typing!).

    2.2 Connecting with Windows

To connect on Windows via ssh you’ll need to download PuTTy. It’s free and open source.

It’ll look like this. Without the Saved Sessions of course.

Connect to your diy Smart Home Server via PuTTy

For your Hostname, you’ll have to provide the external server’s IP address.

Then press “Enter” or “Open”.

And then log in with your username and password (Password doesn’t show up when typing!).

 

3. Setting up the Server.

3.1 Changing Passwords

You might want to change the password of your user:

passwd

3.2 Updating and Upgrading

After first launch it’s always good to restart the server:

sudo reboot now

After that we’ll update the Server:

sudo apt update

And when finished upgrade:

sudo apt upgrade -y

3.3 Installing Docker and Docker-Compose

Install Docker:

sudo apt-install docker.io -y

And then Docker-Compose:

sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

And apply executable permissions:

sudo chmod +x /usr/local/bin/docker-compose

 

4. Finished

Now that that is installed, continue to install Traefik, then Portainer.

Related Post
minecraft

How to host a Forge Server

Playing Minecraft with Mods on a Docker hosted Minecraft Server.
Ads

Comments

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x