File size: 780 Bytes
2ce5e59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# OpenClaw Gateway for ubuntu
# Supports Chinese channels: QQ, Enterprise WeChat, DingTalk, Feishu

# Install system dependencies (ca-certificates for HTTPS SSL)
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    curl \
    git \
    openssh-client \
    ca-certificates \
    && sudo apt-get clean \
    && sudo rm -rf /var/lib/apt/lists/* \
    && sudo update-ca-certificates

# Configure git to use HTTPS instead of SSH for GitHub(系统内部使用,而不是提交到hf space)
git config --global url."https://github.com/".insteadOf "git@github.com:"
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"

# Install OpenClaw globally
npm install -g openclaw@latest

./openclaw-config.sh