Skip to content

5️⃣ Gunbot Installation

Inside ~/gunbot-live and ~/gunbot-sim:

Note: These folders hold separate Gunbot instances for live and simulation.

# download Gunbot package (from your Gunthy account)
wget https://gunthy.org/downloads/gunthy_linux.zip

# install for both instances
for dir in ~/gunbot-live ~/gunbot-sim; do
    cp gunthy_linux.zip "$dir/"
    cd "$dir"
    unzip -q gunthy_linux.zip
    mv gunthy-linux "gunthy-${dir##*/}"
    chmod +x "gunthy-${dir##*/}"
done

GUI HTTPS Configuration

Edit config.js in both ~/gunbot-live and ~/gunbot-sim:

Note: Use unique ports per instance (see below).

  • gunbot-live: GUI/WS client 5000, WS backend 5001
  • gunbot-sim: GUI/WS client 5002, WS backend 5003

Template (adjust ports per instance):

"ws": {
    "port": 5001,
    "clientport": 5000,
},
"GUI": {
    "port": 5000,
    "https": true,
}

Copy SSL certs locally

# Copy SSL certs to both Gunbot instances
for dir in ~/gunbot-live ~/gunbot-sim; do
    sudo cp /etc/letsencrypt/live/$(basename "$dir").yourdomain.com/privkey.pem "$dir/localhost.key"
    sudo cp /etc/letsencrypt/live/$(basename "$dir").yourdomain.com/fullchain.pem "$dir/localhost.crt"
    sudo chown gunbot:gunbot "$dir"/localhost.*
    sudo chmod 600 "$dir"/localhost.*
done

Note:
This loop ensures both instances use local SSL copies. Gunbot cannot read directly from /etc/letsencrypt/, so each instance must keep its own isolated certificate files.