ubuntu22+openclaw 命令
以下命令是安装ubuntu22后直接安装openclaw的命令列表。
sudo apt update -y
sudo apt upgrade -y
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo apt-get install python3.10-venv
sudo apt-get install python3-pip
cd /var
sudo mkdir www
sudo chown user1 /var/www
cd /var/www
ls
mkdir -p /var/www/AI
cd /var/www/AI
mkdir -p /var/www/venv
cd /var/www/venv
sudo apt update -y
sudo apt-get upgrade -y
sudo apt-get install -y build-essential
sudo apt-get install -y cmake git
sudo apt-get install -y libsdl2-dev libsdl2-image-dev
sudo apt-get install -y libsdl2-mixer-dev
sudo apt-get install -y libsdl2-ttf-dev
pip3 install --user setuptools wheel
sudo apt-get update -y
sudo apt-get upgrade -y
mkdir -p ~/openclaw
cd ~/openclaw
sudo apt install -y curl
sudo apt install -y git
sudo apt install -y build-essential
sudo apt install -y ca-certificates
mkdir -p /var/www/setup
cd /var/www/setup
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
cd ~/.bashrc
nvm install 22
nvm use 22
cd ~/openclaw
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard
openclaw gateway start