The next part of the process is to give our server a hostname, and also update our servers date and time settings.
A hostname is just another name for the server. It has no relevance to your your domain or website name.
We could call the server anything we like. For example, you could name it after a planet or even your favorite car.
Let's go ahead and name it "saturn". Type in:
echo "saturn" > /etc/hostname
Next type in:
hostname -F /etc/hostname
Next, we need to edit our hosts file.
Ubuntu comes with a built in text editor called nano.
To open the hosts file in nano type in:
Now enter your IP address beneath the existing list.
Press tab and enter your hostname: saturn
Now press CTRL + X/Command + X to exit nano.
You will be prompted to save the changes to the file.
Type in "y" and press enter.
Now we will setup our servers date and time zone. Type in:
An interface will appear where we can choose our Geographic area.
I'll select US.
And now we can select the time zone.
I'll select Eastern.
That's it. We have now setup our hostname and timezone for our server.