# Cockpit Installation Commands (Micro-Blocks)

## Command Center (63.143.34.217)

**Block 1: Update and install**
```bash
sudo apt update
```

**Block 2: Install Cockpit**
```bash
sudo apt install -y cockpit
```

**Block 3: Enable service**
```bash
sudo systemctl enable --now cockpit.socket
```

**Block 4: Check status**
```bash
sudo systemctl status cockpit.socket
```

**Block 5: Verify port**
```bash
sudo ss -tulpn | grep 9090
```

**Block 6: Open firewall (if UFW active)**
```bash
sudo ufw allow 9090/tcp
```

**Block 7: Test access**
- Open browser: `https://63.143.34.217:9090`
- Login with your server credentials
- Accept the self-signed certificate warning
- Verify Terminal tab works

---

## Billing VPS (38.68.14.188)

**Block 1: Update and install**
```bash
sudo apt update
```

**Block 2: Install Cockpit**
```bash
sudo apt install -y cockpit
```

**Block 3: Enable service**
```bash
sudo systemctl enable --now cockpit.socket
```

**Block 4: Check status**
```bash
sudo systemctl status cockpit.socket
```

**Block 5: Verify port**
```bash
sudo ss -tulpn | grep 9090
```

**Block 6: Open firewall (if UFW active)**
```bash
sudo ufw allow 9090/tcp
```

**Block 7: Test access**
- Open browser: `https://38.68.14.188:9090`
- Login with your server credentials
- Accept the self-signed certificate warning
- Verify Terminal tab works

---

## Panel VPS (45.94.168.138)

**Block 1: Update and install**
```bash
sudo apt update
```

**Block 2: Install Cockpit**
```bash
sudo apt install -y cockpit
```

**Block 3: Enable service**
```bash
sudo systemctl enable --now cockpit.socket
```

**Block 4: Check status**
```bash
sudo systemctl status cockpit.socket
```

**Block 5: Verify port**
```bash
sudo ss -tulpn | grep 9090
```

**Block 6: Open firewall (if UFW active)**
```bash
sudo ufw allow 9090/tcp
```

**Block 7: Test access**
- Open browser: `https://45.94.168.138:9090`
- Login with your server credentials
- Accept the self-signed certificate warning
- Verify Terminal tab works

---

## TX1 Dallas (38.68.14.26)

**Block 1: Update and install**
```bash
sudo apt update
```

**Block 2: Install Cockpit**
```bash
sudo apt install -y cockpit
```

**Block 3: Enable service**
```bash
sudo systemctl enable --now cockpit.socket
```

**Block 4: Check status**
```bash
sudo systemctl status cockpit.socket
```

**Block 5: Verify port**
```bash
sudo ss -tulpn | grep 9090
```

**Block 6: Open firewall (if UFW active)**
```bash
sudo ufw allow 9090/tcp
```

**Block 7: Test access**
- Open browser: `https://38.68.14.26:9090`
- Login with your server credentials
- Accept the self-signed certificate warning
- Verify Terminal tab works

---

## NC1 Charlotte (216.239.104.130)

**Block 1: Update and install**
```bash
sudo apt update
```

**Block 2: Install Cockpit**
```bash
sudo apt install -y cockpit
```

**Block 3: Enable service**
```bash
sudo systemctl enable --now cockpit.socket
```

**Block 4: Check status**
```bash
sudo systemctl status cockpit.socket
```

**Block 5: Verify port**
```bash
sudo ss -tulpn | grep 9090
```

**Block 6: Open firewall (if UFW active)**
```bash
sudo ufw allow 9090/tcp
```

**Block 7: Test access**
- Open browser: `https://216.239.104.130:9090`
- Login with your server credentials
- Accept the self-signed certificate warning
- Verify Terminal tab works

---

## Quick Reference After Install

**All Cockpit URLs:**
- Command Center: `https://63.143.34.217:9090`
- Ghost VPS: `https://64.50.188.14:9090` (already working)
- Billing VPS: `https://38.68.14.188:9090`
- Panel VPS: `https://45.94.168.138:9090`
- TX1 Dallas: `https://38.68.14.26:9090`
- NC1 Charlotte: `https://216.239.104.130:9090`

**Expected behavior:**
- Browser shows security warning (self-signed cert) - click "Advanced" → "Proceed"
- Login screen appears
- Use your normal server SSH username/password
- Terminal tab = full command line access
- Services tab = systemd service management
- System tab = resource monitoring

---

**Note:** Commands are in micro-blocks (8-10 lines max) for easy copy/paste execution.
