Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server
Xernode/ Blog/#linux

Blog

#linux

Posts tagged with “linux”.

How to Change the Hostname in Linux

  • Xernode
  • 1-minute read
  • linux

A clear hostname helps with logs, monitoring and certificates. On modern Ubuntu/Debian (systemd) use hostnamectl.

Steps

  1. Check the current name:

    hostnamectl
  2. Set the new hostname (short name or FQDN label):

    sudo hostnamectl set-hostname vps-madrid-01

Tips

… Read the complete guide

How to Add a New User in Linux

  • Xernode
  • 1-minute read
  • ssh

A dedicated sudo user is safer than living as root. Create the account, grant privileges, then install your SSH key.

Steps

  1. Create the user (Ubuntu/Debian will ask for password and details):

    sudo adduser deploy
  2. Add them to the sudo group:

    sudo usermod -aG sudo deploy

Tips

… Read the complete guide

How to Secure Your VPS with Fail2Ban

  • Xernode
  • 1-minute read
  • ssh

Fail2Ban reads logs and blocks IPs after repeated failures. On a public VPS it cuts SSH brute-force without hand-writing iptables rules.

Steps

  1. Install Fail2Ban (Ubuntu/Debian):

    sudo apt update
    sudo apt install -y fail2ban
  2. Create a local jail file so package upgrades do not overwrite you:

… Read the complete guide

How to Set Up Automatic Backups in Linux

  • Xernode
  • 1-minute read
  • backup

Automatic backups beat “I’ll do it tomorrow”. On a VPS you only need a script, a safe folder and one cron line.

Steps

  1. Create the backup folder and a simple script (adjust paths):

    sudo mkdir -p /var/backups/vps
    sudo nano /usr/local/bin/vps-backup.sh
  2. Minimal script body (example: tar of /etc):

… Read the complete guide