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 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

How to Set Up a Backup to Google Drive

  • Xernode
  • 1-minute read
  • backup

Google Drive is a cheap offsite target. With rclone you authenticate once and upload tarballs or folders from the VPS.

Steps

  1. Install rclone:

    sudo apt update
    sudo apt install -y rclone
  2. Configure the remote (follow the wizard; type Google Drive). On a headless server use the code flow:

    rclone config
… Read the complete guide

How to Set Up a WebDAV Server

  • Xernode
  • 1-minute read
  • nginx

WebDAV mounts a remote folder like a drive (Windows/macOS/Linux clients). Nginx is quick; for a full personal cloud use Nextcloud.

Steps

  1. Install Nginx and auth tools:

    sudo apt update
    sudo apt install -y nginx apache2-utils
  2. Create the folder and an htpasswd user:

… Read the complete guide