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

Blog

Guides for your server.

Hands-on tutorials on Linux, security, networking, and game servers, written so you can follow along step by step.

How to Install and Use rsyslog

  • Xernode
  • 1-minute read
  • monitoring

rsyslog collects system and application syslog messages. On a VPS it is the base layer before alerts or a SIEM.

Steps

  1. Install and start rsyslog:

    sudo apt update
    sudo apt install -y rsyslog
    sudo systemctl enable --now rsyslog
    systemctl status rsyslog --no-pager
… Read the complete guide

How to Set Up Failover IP in Linux

  • Xernode
  • 1-minute read
  • linux

A Failover (floating/additional) IP lets you move a service between hosts. On modern Ubuntu you declare it in netplan.

Steps

  1. List interfaces and current netplan config:

    ip -br addr
    ls /etc/netplan/
    sudo cat /etc/netplan/*.yaml
  2. Add the extra IP on the primary NIC (example — replace names/addresses):

… Read the complete guide

How to Set Up a Static Website with Hugo

  • Xernode
  • 1-minute read
  • linux

Hugo builds blazing-fast static HTML. On a VPS it fits blogs and landings with no PHP or database.

Steps

  1. Install Hugo (distro package; use the official .deb for newest):

    sudo apt update
    sudo apt install -y hugo
    hugo version
  2. Create the site and a sample post:

… Read the complete guide

How to Install and Use ncdu

  • Xernode
  • 1-minute read
  • linux

cdu is an interactive du: it sorts folders by size so you quickly see what eats the disk before deleting blindly.

Steps

  1. Install ncdu:

    sudo apt update
    sudo apt install -y ncdu
  2. Scan the filesystem (start at / or a specific mount):

    sudo ncdu -x /

Tips

… Read the complete guide

How to Install and Use netstat

  • Xernode
  • 1-minute read
  • linux

etstat lists sockets and connections. On recent Ubuntu the recommended tool is ss (from iproute2); both show which ports are open.

Steps

  1. Install net-tools (netstat) if you need it; ss is usually already there:

    sudo apt update
    sudo apt install -y net-tools iproute2
  2. TCP/UDP listeners with netstat:

… Read the complete guide

How to Install and Use lsof

  • Xernode
  • 1-minute read
  • linux

lsof (list open files) shows which process holds a file or a port. Perfect when a service fails to start because the port is already taken.

Steps

  1. Install lsof:

    sudo apt update
    sudo apt install -y lsof
  2. Who is listening on port 80?

    sudo lsof -iTCP:80 -sTCP:LISTEN

Tips

… Read the complete guide

How to Install and Use grep

  • Xernode
  • 1-minute read
  • linux

grep finds lines that match a pattern. It is the fast way to hunt errors in logs without opening the whole file.

Steps

  1. On Ubuntu it is usually installed. If missing:

    sudo apt update
    sudo apt install -y grep
  2. Search a string in a log (line numbers, ignore case):

    grep -ni "error" /var/log/nginx/error.log
… Read the complete guide

How to Install and Use wget and curl

  • Xernode
  • 1-minute read
  • linux

wget and curl fetch files and talk to APIs from the shell. On a VPS you will use them for ISOs, scripts, health checks and HTTP debugging.

Steps

  1. Install both tools (Ubuntu/Debian):

    sudo apt update
    sudo apt install -y wget curl
  2. Download a file with wget (follows redirects, shows progress):

… Read the complete guide