Optimizing OpenClaw Installation for Raspberry Pi and SD Card

Tiempo de lectura: < 1 minuto

Hoy vamos a aprendir a instalar OpenClaw desde cero en una Raspberry Pi y con una tarjeta SD.

Logo OpenClaw

Do not use the normal Windows or Mac formatter. Use Raspberry Pi Imager (the official tool).

No update until you plug the SD into the Pi and enter via SSH:

Bash

sudo apt update && sudo apt upgrade -y

STEP 3: Install Node.js (The Correct Version)

To avoid installing version v24 or experimental versions, we’ll use the official installer for the stable v22 (LTS):

Bash

# We download the script from version 22 curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - # Install Node.js sudo apt-get install -y nodejs 

Confirm that everything is okay with node -v. It should say v22.x.x.

This will change your life: we are going to install an utility that stores logs in RAM and only writes them to the SD card once a day.

Bash

sudo apt install git -y git clone https://github.com/azlux/log2ram.git cd log2ram chmod +x install.sh sudo ./install.sh # Hay que reiniciar para que se active sudo reboot

STEP 5: Install OpenClaw

Now that the system is clean and optimized to not crush the SD, install OpenClaw:

Bash

sudo npm install -g openclaw

And now we can configure OpenClaw

Solving issues with IPv6.

vi ~/.profile

Go to the end of the file and paste this line:

Bash

export NODE_OPTIONS="--dns-result-order=ipv4first"

Save and now apply the change:

source ~/.profile

Leave a Comment