Documentation menu

Installing the server

Install the Memex server

Memex is a single program, memex. One command downloads it, verifies it and starts an assistant in your terminal that sets up the service. Ten minutes later you have an instance, an administrator account and an address to give to your AI assistants.

Prerequisites

  • A Linux machine, x86_64 or arm64 (aarch64). Debian and Ubuntu are supported first; any Linux with systemd should work.
  • Root access, directly or through sudo.
  • curl (or wget), tar and sha256sum, which most systems already have.
  • A decision on how the instance will be reached: a domain name, a Cloudflare tunnel, or an IP address and port. Access modes compares them. For a domain, have access to its DNS settings.

Run the installer

curl -fsSL https://raw.githubusercontent.com/mlafraise/memex/main/install.sh | sh

The option is -fsSL with a capital L. With a lowercase l the command prints nothing and installs nothing; see Troubleshooting.

  1. The script fetches the programIt downloads the binary of the latest release for your processor, checks its SHA-256, and installs it as /usr/local/bin/memex. It uses sudo when it is not run as root.
  2. The assistant startsIt asks for the language first (English or French), then "How will people reach this instance?" with three answers: IP address and port, domain name, or tunnel.
  3. It shows its planBefore changing anything, the assistant lists exactly what it will do ("Here is what will be done:") and asks "Proceed?".
  4. It installsIt creates a memex system user, the data directory /var/lib/memex, the configuration /etc/memex/config.toml and a systemd service, then starts the server.
  5. It prints the admin key and the setup linkThe summary shows the address of the instance, a single-use admin key and a link of the form https://brain.example.com/setup?key=….
  6. Create the administrator accountOpen the link in a browser and create your account. The key is destroyed when it is used. Everything else is configured in the app.

You can read install.sh before running it: it only fetches the binary and starts the assistant.

Check that it worked

sudo memex status
systemctl status memex
  • memex status shows the version, the state of the service, the address, the data, updates and semantic search.
  • Opening the address in a browser shows the sign-in page.
  • The server log is in the journal: journalctl -u memex -f.

If the setup link was lost before an account was created, sudo memex admin-key prints a fresh one. See Recovering administrator access.

Next steps

The complete reference is install.md in the repository.