Skip to content

Instantly share code, notes, and snippets.

@pravdomil
Last active February 23, 2026 16:27
Show Gist options
  • Select an option

  • Save pravdomil/01caa4c56064bf62ecac8e8c9476f679 to your computer and use it in GitHub Desktop.

Select an option

Save pravdomil/01caa4c56064bf62ecac8e8c9476f679 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
set -euo pipefail
login root -f
loginctl enable-linger root
hostnamectl set-hostname openclaw
apt update
apt upgrade
apt install curl gpg -y
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt update
apt install -y nodejs git build-essential python3 make g++ cmake
npm install -g openclaw@latest
openclaw onboard --install-daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment