Linux package
Install Sophon on Debian or Ubuntu with the .deb package. What it installs, how the systemd user service runs, and how to upgrade or remove it.
The Linux package installs the Gateway (which also serves the Dashboard) and the sophon CLI, and runs the Gateway as a systemd user service under your own account. There is no desktop app for Linux yet: you use Sophon in your browser and from the terminal. The .NET runtime is bundled.
Requirements
- Debian 12, or Ubuntu 22.04 or later. Other distributions with glibc 2.34 or newer and the same libraries may work, but only Debian and Ubuntu are packaged.
- A 64-bit Intel or AMD machine (
amd64) or a 64-bit Arm machine (arm64). Check withdpkg --print-architecture. - systemd, which runs the Gateway. On WSL 2, turn it on first: add
systemd=trueunder[boot]in/etc/wsl.conf, then runwsl --shutdownfrom Windows. sudorights to install the package.- Port 8470 free on this machine. The Gateway listens there.
No .rpm package exists yet. On Fedora, RHEL, openSUSE, Arch, Alpine or NixOS, use Docker.
Install
1. Download and check the file
Download sophon_<version>_amd64.deb or sophon_<version>_arm64.deb from Download Sophon, then check its SHA-256 against the one shown next to the download button:
sha256sum ~/Downloads/sophon_2.2.2_amd64.debThe two values must match exactly. If they don't, delete the file and download it again. The package isn't GPG-signed yet, and there is no apt repository yet, so this checksum is the way to know the file is the one we built.
2. Install the package
Use apt with the path to the file (the ./ matters), so it also installs the libraries the package needs:
sudo apt install ./sophon_2.2.2_amd64.deb3. Start the Gateway
systemctl --user start sophon-gatewayThe installer tries to start it for you when you install with sudo from your own session; running this again is harmless. The first start can take up to two minutes while it prepares its database.
4. Open the Dashboard
Open http://localhost:8470 in your browser.
The Dashboard's Setup Wizard asks for your first model provider: continue with Configuration.
What the package sets up
| What | Where |
|---|---|
| Gateway and Dashboard | /opt/sophon/gateway/ |
sophon CLI | /usr/bin/sophon (a link into /opt/sophon/gateway/cli/) |
| systemd user unit | /usr/lib/systemd/user/sophon-gateway.service |
| Your data: settings, conversations, memory, credentials | ~/.sophon/ |
| Gateway logs | the user journal, and ~/.sophon/logs/sophon-YYYYMMDD.log (one per day, 14 kept) |
How the Gateway runs
The Gateway is a systemd user service, sophon-gateway. It runs as you, not as root, with your data in your own ~/.sophon. It listens on http://localhost:8470, is reachable only from this machine, and systemd restarts it if it fails.
The package enables the service for every user, so it starts each time you log in. If it doesn't, enable it for yourself with systemctl --user enable sophon-gateway. A user service stops when you log out; to keep it running without a login session (for example on a server you reach over SSH), turn on lingering:
loginctl enable-linger "$USER"Every user's Gateway listens on the same port, 8470, so only one user's Gateway can run on a machine at a time.
Start, stop and check the Gateway
systemctl --user status sophon-gateway
systemctl --user start sophon-gateway
systemctl --user stop sophon-gateway
systemctl --user restart sophon-gateway
journalctl --user -u sophon-gateway -n 50 # recent log lines
curl http://localhost:8470/api/health # is it answering?The installed sophon finds this Gateway on port 8470 by itself; run sophon in a terminal to start the full-screen chat. See CLI.
Upgrade
Download the newer package, install it the same way, then restart the service:
sudo apt install ./sophon_<new-version>_amd64.deb
systemctl --user restart sophon-gatewayYour data in ~/.sophon is kept. apt upgrade won't find new versions until an apt repository exists.
Uninstall
sudo apt remove sophonThis tries to stop your Gateway, then removes everything under /opt/sophon, the sophon command and the service. If a Gateway is still running afterwards (for example another user's), stop it with systemctl --user stop sophon-gateway in that user's session. sudo apt purge sophon does the same. Neither one deletes your data. To remove it as well:
rm -rf ~/.sophonTroubleshooting
The page doesn't load. Run systemctl --user status sophon-gateway, then journalctl --user -u sophon-gateway -n 50. If systemctl --user reports that it can't connect to the bus, you are in a session without a user manager (for example sudo su); log in as yourself, or over SSH, and try again.
Port 8470 is already in use. The Gateway logs could not bind ... the port is already in use and exits, and systemd retries it every few seconds. Stop the other program using the port (it may be another user's Gateway); the next retry then succeeds, or run systemctl --user restart sophon-gateway.
You used the install.sh script before. A unit it left in ~/.config/systemd/user/ takes precedence over the packaged one. Run install.sh --uninstall from that earlier install first, then reload:
systemctl --user daemon-reload
systemctl --user enable --now sophon-gatewayMore in Common Issues and Diagnostic Logs.