WSL 安裝 openclaw (非root)
以下主要解決 非root user 進行安裝 opencalw. 以下內容範例設定: 需變更為你電腦的內容 * <WIN_BAT_PATH>: 開機時需要執行的 .bat 檔案; 如: E:\WSL\ubuntu\scripts\update_wsl_ports_by_admin.bat * <WIN_IP>: windows IP --- ## 安裝 opcnelaw * 步驟(在 WSL 終端機執行): ```bash cd ~/ # install openclaw (and install nodejs) curl -fsSL https://openclaw.ai/install-cli.sh | bash # add openclaw into PATH echo 'export PATH="$HOME/.openclaw/bin:$PATH"' >> ~/.bashrc source ~/.bashrc # confirm openclaw version openclaw --version # setup and install daemon openclaw onboard --install-daemon # (略) openclaw設定, 自行上網或詢問 chatgpt/gemini, 不再贅述 ``` * default website `http://localhost:18789` ## wsl啟動時openclaw就執行 * install daemon ```bash # setup and install daemon openclaw onboard --install-daemon # start openclaw when booting loginctl enable-linger $USER ``` ## 內網(LAN)可以存取 ```bash openclaw config set gateway.bind lan openclaw config set gateway.controlUi.allowInsecure true openclaw config set gateway.controlUi.dangerouslyDisableDevic...