Tip/Android2026. 2. 10. 23:11

# 1. 목록 업데이트
pkg update && pkg upgrade

# 2. Ubuntu
proot-distro install ubuntu

# 3. 로그인
proot-distro login ubuntu

# 4. 필수 도구 설치
apt update && apt upgrade -y
apt install curl git build-essential -y

# 5. node.js 설치
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs

# 6. opencalw 설치
npm install -g openclaw@latest

# 7. 패치 파일 생성

cat << eof > /root/fix_bug.js 
const os = require('os'); 
os.networkInterfaces = () => ({}); 
eof

 

# 8. 환경 변수 등록

echo 'export NODE_OPTIONS="-r /root/fix_bug.js"' >> ~/.bashrc 
source ~/.bashrc

 

# 9. Gemini 설정

echo 'export GEMINI_API_KEY="본인의_API_키_입력"' >> ~/.bashrc
source ~/.bashrc

 

# 10. OpenClaw 실행 확인
openclaw onboard

# 11. Openclaw 실행
openclaw gateway run

Posted by chobocho