Requirements
- OS: Debian or Ubuntu (anything with
aptandsystemd) - Access: root (the installer sets up a systemd service)
- Dependencies:
python3,nodejs,npm— installed automatically if missing - Network: one open port (8080 by default, changeable)
Install
One-liner (recommended)
curl -sSL https://raw.githubusercontent.com/SahilSidhu7/servmanager/main/install.sh | sudo bash
Fetches the latest release, installs system dependencies, builds the React frontend, creates a Python virtualenv, writes the systemd unit, and installs the servmanager CLI. Re-running it upgrades in place and preserves your data.
From source
git clone https://github.com/SahilSidhu7/servmanager.git cd servmanager sudo ./install.sh
.deb package
# grab the file from the latest GitHub release, then:
sudo apt install ./servmanager_<version>_all.deb
All three methods end the same way: the service is running on port 8080 and starts on boot.
First login
Open http://YOUR_SERVER_IP:8080/ and sign in:
| Field | Default |
|---|---|
| Username | admin |
| Password | admin |
| Remote PIN | 1234 |
Dashboard tour
- Overview — live CPU / memory / disk meters (updated every 2 s over WebSocket), hostname, uptime, and a table of listening ports.
- Scripts — create, edit, and run shell scripts. Each card shows the last result and output; the editor has line numbers and tab indentation. Output streams live while a script runs, and you can stop a run mid-flight.
- Remote Designer — build the phone panel on a live phone-frame preview. Add widgets from the palette, tap a tile to edit its label, size, color, and icon, drag to reorder, then save and scan the QR code.
- SSH Hosts — save hosts for browser terminals (see SSH terminals).
- Run History — the last 100 runs with trigger, duration, exit status, and full logs.
- Settings — port, admin credentials, remote PIN.
Phone remote
The remote lives at http://YOUR_SERVER_IP:8080/remote and unlocks with your 4-digit PIN.
- In Remote Designer, add widgets:
- Script button — tap to run a script, output streams into a pull-up console
- Live metric — CPU, RAM, disk, or uptime, updating in real time
- Health indicator — a colored dot showing a scheduled script's last exit status
- SSH terminal — one tap opens a terminal to a saved host
- Click Save layout — a QR code appears.
- Scan it with your phone, enter the PIN.
Saved SSH hosts also appear automatically at the bottom of the remote under Terminals — no widget needed.
Scheduled scripts
In any script's editor, enable Run automatically on a schedule and set an interval in seconds (minimum 5). The built-in scheduler runs it on that cadence and pushes results to every connected client — no cron needed.
Pair a scheduled script with a Health indicator widget: exit 0 shows a green dot, non-zero shows red. The bundled Server Health Check script is a working example.
SSH terminals
Add a host under SSH Hosts (label, host, port, username, password). Click the terminal button to open a full xterm.js session in the browser — desktop or phone.
Requires the asyncssh Python package; the installer sets it up. Without it, everything else works and SSH shows a clear error message. If you installed manually:
/opt/servmanager/venv/bin/pip install asyncssh
/opt/servmanager/data.json (mode 600, root-only) so the server can open sessions for you. Only save hosts you'd trust this box with.CLI reference
Installed system-wide as servmanager. Commands that change the system need sudo.
| Command | What it does |
|---|---|
servmanager start / stop / restart | Control the systemd service |
servmanager status | Service health |
servmanager logs | Tail live logs (journalctl) |
servmanager enable / disable | Autostart on boot |
servmanager set-port 9090 | Change the port and restart |
servmanager set-pin 5678 | Change the remote PIN |
servmanager set-auth user pass | Reset admin credentials |
servmanager update | Upgrade to the latest GitHub release |
servmanager info / version | Paths, URLs, installed version |
Updating
sudo servmanager update
Downloads the latest release and re-runs the installer in place. Your data.json — scripts, layout, settings, history — is preserved. .deb users can instead install the new package over the old one.
Security
- Admin password stored hashed (SHA-256 + salt); login and PIN attempts are rate-limited (5 failures → 60 s lockout per IP)
- The remote PIN grants a restricted token — view and run only
data.jsonis written with root-only permissions (mode 600)- Scripts run as the service user (root by default) — that is the point of the tool, so treat dashboard access like SSH access
Run it on your LAN, home lab, or a VPN like Tailscale. If you must expose it publicly, put it behind a reverse proxy with TLS and strong credentials.
Troubleshooting
Can't reach the dashboard
sudo servmanager status # is the service running? sudo servmanager logs # what does it say?
Check your firewall allows the port (sudo ufw allow 8080 on Ubuntu).
Port already in use
sudo servmanager set-port 9090
SSH terminal says "asyncssh not installed"
/opt/servmanager/venv/bin/pip install asyncssh sudo servmanager restart
Forgot the admin password
Reset it from the server's own shell:
sudo servmanager set-auth admin newpassword
Blank page / "Build the React frontend"
The frontend wasn't built. Re-run the installer, or:
cd /opt/servmanager/frontend sudo npm install && sudo npm run build sudo servmanager restart
Uninstall
.deb install
sudo apt remove servmanager # keep data.json sudo apt purge servmanager # remove everything
Script install
sudo systemctl stop servmanager sudo systemctl disable servmanager sudo rm -rf /opt/servmanager sudo rm /etc/systemd/system/servmanager.service /usr/local/bin/servmanager sudo systemctl daemon-reload