Begin by accessing your VPS server through SSH. In this tutorial, we will be using PuTTY. Run the following command:
apt-get update
Next, upgrade the essential packages by executing:
apt-get upgrade
hostname-f
To modify your current hostname, edit the /etc/hostname file using your preferred text editor. In this tutorial, we are using nano.
nano /etc/hostname
Delete the existing hostname in the /etc/hostname file and replace it with your preferred hostname: your_hostname.