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 Use tmux on Linux

  • Xernode
  • 1-minute read
  • linux

tmux keeps shells and jobs alive when SSH drops. Useful for builds, migrations or long-running panels on a VPS.

Steps

  1. Install tmux:

    sudo apt update
    sudo apt install -y tmux
  2. Create a named session:

    tmux new -s work

Tips

… Read the complete guide

How to Use htop on Linux

  • Xernode
  • 1-minute read
  • monitoring

htop shows live CPU, memory and processes. It is clearer than classic top when a VPS is under load.

Steps

  1. Install it on Ubuntu/Debian:

    sudo apt update
    sudo apt install -y htop
  2. Open it:

    htop

Tips

  • If a process keeps eating CPU or RAM, note the command before you kill it.
… Read the complete guide

How to Install Node.js on Ubuntu

  • Xernode
  • 1-minute read
  • linux

ode.js runs JavaScript on the server (APIs, bots, front builds). On a VPS pick a stable LTS release.

Steps

  1. Add the NodeSource LTS repo (22.x example) and install:

    curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
    sudo apt install -y nodejs
  2. Check versions:

… Read the complete guide

How to Install and Use logrotate

  • Xernode
  • 1-minute read
  • linux

Logs grow quietly. logrotate cuts, compresses and drops old files based on a rule.

Steps

  1. On Ubuntu it is usually installed. Check the binary:

    logrotate --version
  2. Create a rule for your app (example):

    sudo nano /etc/logrotate.d/my-app

Tips

… Read the complete guide

How to Set Up a Firewall with iptables

  • Xernode
  • 1-minute read
  • firewall

iptables filters packets at a low level. Use it when you need fine control or a host without UFW/FirewallD. Order matters: allow first, then deny.

Steps

  1. Install the tools (Ubuntu/Debian):

    sudo apt update
    sudo apt install -y iptables iptables-persistent
  2. Restrictive default policy, then allow loopback and established traffic:

… Read the complete guide