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 Install and Use fdupes

  • Xernode
  • 1-minute read
  • linux

fdupes finds identical files by size and hash. Handy to clean fat backups, uploads or home dirs on a VPS.

Steps

  1. Install fdupes:

    sudo apt update
    sudo apt install -y fdupes
    fdupes -v
  2. Scan a directory recursively (list only):

… Read the complete guide

How to Set Up a RAID Array in Linux

  • Xernode
  • 1-minute read
  • linux

Software RAID (mdadm) adds redundancy or throughput across disks. On a VPS/dedicated with spare disks, RAID1 is the common case.

Steps

  1. Install mdadm and list disks (adjust /dev/sdX to your hardware):

    sudo apt update
    sudo apt install -y mdadm
    lsblk
    sudo fdisk -l
… Read the complete guide

How to Set Up a Static Site with Gatsby

  • Xernode
  • 1-minute read
  • linux

Gatsby builds React static sites. On a VPS you compile once and serve HTML/JS/CSS with Nginx.

Steps

  1. Ensure Node.js LTS and the Gatsby CLI:

    node -v || (curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt install -y nodejs)
    sudo npm install -g gatsby-cli
    gatsby --version
… Read the complete guide

How to Set Up a Static Blog with Jekyll

  • Xernode
  • 1-minute read
  • linux

Jekyll turns Markdown into static HTML. On a VPS it fits light blogs with no database or PHP.

Steps

  1. Install Ruby and build dependencies:

    sudo apt update
    sudo apt install -y ruby-full build-essential zlib1g-dev
    ruby -v
  2. Install Jekyll and Bundler (as your user, not root):

… Read the complete guide

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