Posts

Showing posts with the label wsl

Installing openclaw on WSL (Non-Root User)

This guide focuses on installing and configuring `openclaw` for a non-root user within a WSL environment. **Example Configuration: Please replace these with your own system details** * `<WIN_BAT_PATH>`: The path to the `.bat` file that needs to run at boot; e.g., `E:\WSL\ubuntu\scripts\update_wsl_ports_by_admin.bat` * `<WIN_IP>`: Your Windows machine's IP address. --- ## Installing openclaw * **Steps (Execute in the WSL terminal):** ```bash cd ~/ # Install openclaw (this will also install Node.js) curl -fsSL https://openclaw.ai/install-cli.sh | bash # Add openclaw to your PATH echo 'export PATH="$HOME/.openclaw/bin:$PATH"' >> ~/.bashrc source ~/.bashrc # Confirm the openclaw version openclaw --version # Setup and install the daemon openclaw onboard --install-daemon # (Note: For specific openclaw configurations, please refer to the official documentation or AI assistants) ``` * **Default Web Interface:** `http://localhost:18789` ## Enabling opencl...

WSL Auto-Start and Persistent Background Execution (via SSH)

This guide provides a solution for WSL2 on Windows 10 (also applicable to Windows 11) to enable automatic startup upon boot and maintain continuous background operation. **Key Configuration Steps:** * Install SSH and enable Systemd. * Local Network Connectivity and Firewall Port Forwarding (required for any local network services). * WSL2 Auto-Start / Persistent Background Execution (Win10).   - `sleep infinity`: The core command to keep the instance running. --- **Example Configuration: Please replace these with your own system details** * `<WIN_BAT_PATH>`: The Windows path where your `.bat` files are stored; e.g., `E:\WSL\ubuntu\scripts` * `<WIN_IP>`: Your Windows machine's IP address. ## SSH and Systemd Configuration within WSL Ubuntu ### 1. Install SSH and Enable Systemd * After entering Ubuntu, execute the following commands: ```bash # Update and install sudo apt update && sudo apt install openssh-server -y # Edit wsl.conf to enable systemd (Required for WS...