Skip to content

Instantly share code, notes, and snippets.

@skpywatts
skpywatts / Nexus
Created June 29, 2025 13:41
Nexus Node Auto-Run Script with Swap Setup
#!/bin/bash
### === CONFIGURATION ===
NODE_ID=7065410
LOG_FILE=nexus.log
### === 1. Enable 4G Swap (if missing) ===
if ! swapon --show | grep -q '/swapfile'; then
echo "[*] Creating 4G swap file..."
sudo fallocate -l 4G /swapfile