Hermes Server — Oracle Cloud Setup
Step-by-step checklist to stand up a fresh Linux instance on Oracle Cloud and install Hermes Agent.
| Step | Area | Action | Notes / Oracle Cloud quirks |
|---|---|---|---|
| 1 | Provisioning | Create an Oracle Cloud Always Free compute instance | Prefer AMD VM.Standard.E2.1.Micro (1 OCPU / 1 GB RAM) for lowest cost. NVMe boot + attached block volume recommended. |
| 2 | Provisioning | Open SSH to port 22 (TCP) in the VCN security list | Lock to your public IP if possible. Keep HTTPS/HTTP ports closed until TLS is configured. |
| 3 | Provisioning | Upload SSH key or paste public key during instance creation | Oracle injects the key into /home/opc/.ssh/authorized_keys. No password login by default. |
| 4 | Network | Reserve/assign a static public IP or use the instance public IP | Free tier ephemeral IPs can change on stop/start. Reserve a reserved IP if you want stable DNS. |
| 5 | OS | Connect as opc and update the base system |
Oracle Linux equivalent: sudo dnf update -y. Reboot if kernel updated. |
| 6 | OS | Create a non-root admin user (e.g. yodaqs) with sudo |
Keep opc as recovery owner; do all Hermes work under the new user. |
| 7 | Domain / DNS | Point domain/subdomain A record to the public IP | If using DuckDNS/TerraDNS/etc., push the IP from a bootstrap/service or update manually. |
| 8 | TLS | Install certbot and issue a Let’s Encrypt certificate | If port 80 is closed by default, use DNS-01 challenge against your DNS provider. |
| 9 | Stack | Install system dependencies: Python, venv, git, curl, nginx/php/mariadb if using WordPress portal | Match known-good versions e.g. python3.11+, php8.1+, MariaDB 10.6+ for WordPress. |
| 10 | Hermes | Install Hermes Agent and create its venv | Use the official installer or clone the repo into ~/.hermes. Activate venv before running. |
| 11 | Hermes | Run hermes setup and authorize providers/models |
Add API keys/tokens as needed; do NOT hardcode secrets in chat. |
| 12 | Hermes | Copy skills, notes, memories, and .env from existing instance |
Use hermes backup to create a migration zip, then scp/rsync it to the new server. |
| 13 | Hermes | Configure hermes-agent skill/plugins/cron/memories profile folders |
Ensure paths match the new home directory. Set up cron/systemd units if needed. |
| 14 | Hardening | Enable a host firewall (firewalld/ufw) |
Default-drop inbound; allow only 22, 80/443 as required. Close unused interfaces. |
| 15 | Hardening | Disable root SSH, enforce key-only auth | PermitRootLogin no. Consider fail2ban or equivalent brute-force protection. |
| 16 | Hardening | Enable unattended security updates | Oracle Linux: sudo dnf install dnf-automatic -y and enable. |
| 17 | Portal | Set up WordPress via WP-CLI and configure site title/URL | Use wp-site wrapper or equivalent. Point NGINX vhost to the WordPress docroot. |
| 18 | Portal | Install and configure required plugins/themes | Match the existing server setup where possible. Note any Oracle-specific package names. |
| 19 | Portal | Replicate pages, menus, and content from existing instance | Export HTML where needed (wp post list + read_file) and recreate; or clone the DB. |
| 20 | Ongoing | Schedule cron jobs for updates, backups, cert renewal | Backup Hermes home + WordPress DB/files to provider-agnostic cloud. Verify restore dry-runs. |
Oracle Cloud — specific gotchas
- Boot volume is typically NVMe but some shapes may use different block device identifiers. Verify with
lsblkandsudo fdisk -l. - Security lists and route tables are separate from the instance itself; SSH blocked there will show as timeout, not connection refused.
- Free tier instances can be shaped with only IPv6 in some cases; ensure a public IPv4 in the primary VNIC if your tooling needs it.
- Stop/start cycles can change the public IP; reserve a reserved IP if the domain must remain stable.
Leave a Reply