Step 1: Setup Remote Server - SwagatoMondal/Online-Shopping GitHub Wiki

These commands are applicable only if you're using Ubuntu & Bash CLI.

Logging into remote machine

  1. ssh root@<IP address>
  2. Enter your password

You'll now be logged into your remote machine. To verify you can see your CLI showing the following -

root@localhost:~#

Install Software Updates

To install the latest software updates to your remote machine, you can use the following command -

apt-get update && apt-get upgrade

NOTE : You might be asked to press continue in between updates.

Setup hostname

The command to setup the hostname for your Ubuntu machine is as follows -

hostnamectl set-hostname <your-hostname>

To verify run the command hostname on your CLI.

Setup hostname in host file

In order to set your hostname in the host file, use the following command -

nano /etc/hosts

Your file will be available now in edit mode. Underneath the localhost entry, press Enter and add this line -

<ssh-IP Address> <press tab> <your-hostname>

Now save the changes.

⚠️ **GitHub.com Fallback** ⚠️