Getting Started
Hermes is a Linux game-streaming host. The recommended way to run it is one of the packages built for each release — see Binaries.
[!NOTE] Hermes is developed on CachyOS with KDE Plasma (Wayland) on AMD, and that is the only configuration continuously exercised. Other distributions, compositors and GPUs are supported as far as their code paths allow; Compatibility records what has actually been verified, what shares a verified code path but has never been run, and what is known broken.
Binaries
Packages are built in CI and published at Releases:
- a tagged release for each version;
- a rolling nightly prerelease, refreshed on every push to
main. It carries the newest fixes and may be unstable.
| Distribution | Asset |
|---|---|
| Arch / CachyOS | hermes-streaming-{version}-1-x86_64.pkg.tar.zst |
| Ubuntu 24.04, 26.04 | hermes_{version}_ubuntu{release}_amd64.deb |
| Fedora 43, 44, 45 | hermes-{version}-1.fc{release}.x86_64.rpm |
Match the release in the filename to the one you run. Each .deb and .rpm is
built inside that release's own container, so its dependencies are the sonames
that release ships; a package built for another release will refuse to install.
Hermes is a Linux host. Release assets are listed above, and the source build is covered in Building.
CUDA compatibility
CUDA is used for NVENC and NVFBC on NVIDIA GPUs. Every Linux package above is built against CUDA 12.9.1, whose minimum NVIDIA driver is 575.57.08, and covers compute capabilities 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87, 89, 90, 100, 101, 103, 120 and 121.
[!NOTE] See CUDA GPUS to cross-reference Compute Capability to your GPU. Installing the CUDA toolkit yourself is only necessary when building from source — a package already carries what it needs.
Install
Arch / CachyOS
sudo pacman -U ./hermes-streaming-*.pkg.tar.zst
The package is named hermes-streaming because the hermes name in the AUR
belongs to an unrelated PAM authentication project — do not install that one. It
installs /usr/bin/hermes, /usr/share/hermes and a hermes.service user
unit, so it can sit side by side with the apollo (AUR) and sunshine
packages. Only one of the three can run at a time: they all bind ports
47984/47989/47990, and whichever starts second exits, which shows up in the
browser as Failed to fetch on the login page.
To build the package from the source tree instead, see CachyOS/Arch package build in the overview.
Uninstall:
sudo pacman -R hermes-streaming
Debian / Ubuntu
sudo apt install ./hermes_{version}_ubuntu{release}_amd64.deb
apt install on the file rather than dpkg -i, so dependencies are resolved.
The post-install script applies cap_sys_admin to the binary, which KMS capture
needs.
Uninstall:
sudo apt remove hermes
Fedora
sudo dnf install ./hermes-{version}-1.fc{release}.x86_64.rpm
Uninstall:
sudo dnf remove hermes
Build from source
See Building. Arch and CachyOS users can build the same package
CI publishes with makepkg -sf from the repository root.
Image-based distributions (Bazzite, Silverblue, SteamOS)
/usr is read-only there, so a package is added to the system image instead of
installed into it.
Bazzite and other Fedora Atomic images. The Fedora .rpm layers with
rpm-ostree and streams the desktop you are logged in to, the same as on
Fedora. Use the package for the image's Fedora release
(rpm-ostree status shows it; Bazzite is Fedora 44 at the time of writing):
rpm-ostree install ./hermes-*.fc44.x86_64.rpm
systemctl reboot
After the reboot, getcap /usr/bin/hermes shows the capabilities the package
sets, and the service starts like on any other distribution:
systemctl --user enable --now hermes
Bazzite's default firewall zone already allows the ports Hermes uses.
For a virtual display, Bazzite ships EVDI prebuilt; the package loads it at boot
with one device (#100), so the default backend works after that first reboot. For
Hermes-KMS, which DKMS cannot install on a read-only /usr, the driver
repository builds a derived Bazzite image with the module in it
(Image-based systems).
Switching to that image drops packages layered with rpm-ostree, so layer Hermes
again afterwards. Hermes-KMS hands its device to the user logged in at the
machine, so a machine meant to stream from boot needs automatic login.
A headless session instead. packaging/container holds a runtime image that
runs Hermes on a headless sway session, separate from the desktop; only the
kernel module has to exist on the host. See packaging/container/README.md.
The virtual display driver
A virtual display needs a kernel module, installed separately from Hermes:
- EVDI — the default
virtual_display_backendand the stable backend. On Arch it lives in the AUR (paru -S evdi), not the official repositories, so no package depends on it. - Hermes-KMS (zero-copy, opt-in with
virtual_display_backend = hermes_kms, labeled experimental for now) — https://github.com/MrOz59/Hermes-KMS, installed through DKMS. Hermes 0.6.0 needs the driver'sv0.4.0tag; a nightly works withv0.4.0ormain. The overview covers the install and theinitial_enabled=0module option it needs. Hermes does not fall back to EVDI on its own when Hermes-KMS is selected but unavailable.
Several features exist only on Hermes-KMS: zero-copy capture on AMD/Intel, HDR10 on a virtual display, multi-output, independent sessions and streaming before login — see What needs Hermes-KMS.
The Audio/Video settings tab shows a live diagnostic and a step-by-step install guide when either driver is missing.
Initial Setup
After installation, some initial setup is required.
Linux
KMS Capture
[!WARNING] Capture of most Wayland-based desktop environments will fail unless this step is performed.
[!NOTE]
cap_sys_adminmay as well be root, except you don't need to be root to run the program. This is necessary to allow Hermes to use KMS capture.
Every package applies this in its post-install script, so this step is only needed for a binary you built yourself, or after the capability was removed.
Enable
sudo setcap cap_sys_admin,cap_mknod,cap_sys_chroot+p $(readlink -f $(which hermes))
X11 Capture
For X11 capture to work, you may need to disable the capabilities that were set for KMS capture.
sudo setcap -r $(readlink -f $(which hermes))
Service
Start once
systemctl --user start hermes
Start on boot
systemctl --user enable hermes
Session environment
The service runs in your user session and takes the graphical session
environment (DISPLAY/WAYLAND_DISPLAY, XDG_RUNTIME_DIR, the audio socket,
and the session bus) from the systemd user manager. It cannot import them
itself: a service can only read the environment it was started with, so
whatever the manager does not already hold is not reachable from inside the
unit. On most desktops the compositor publishes them at login and there is
nothing to do.
If capture, audio, or launching apps (Steam/Lutris) fails when started as a
service but works when you run hermes from a terminal, your desktop is
probably not exporting the session environment to systemd. Import it once for
the current session and restart the service:
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_RUNTIME_DIR XDG_SESSION_TYPE DBUS_SESSION_BUS_ADDRESS
systemctl --user restart hermes
To make this persistent, add the same import-environment line to your
compositor's startup (e.g. an autostart script) so it runs at every login.
Before anyone logs in (experimental)
A host that reboots with no monitor and no autologin has no session for the service to start in, so there is nothing to connect to until someone logs in at the machine. Hermes can instead be started at boot and stream the login screen: the client types the password, and the same stream carries on into the desktop.
This has been run on one setup - KDE Plasma with SDDM, Hermes-KMS, an AMD GPU and an Artemis client - and installing the package does not turn it on. Read the limits below before relying on it for a machine you cannot reach any other way.
Setting it up
As the user Hermes streams for:
hermes --prelogin enable
That does the part that is Hermes' to do, and neither step needs root. It
writes a copy of the packaged unit that starts with your user manager instead
of the graphical session, and it turns on lingering so that manager runs from
boot. Enabling the packaged unit for default.target by hand is not the same
thing: it wants graphical-session.target, and started at boot it would mark
a graphical session as running when there is none. The change takes effect the
next time Hermes starts.
It then lists what is still in the way, as hermes --prelogin status does at
any time. The Web UI shows the same list on its home page for as long as
something on it is missing. What can be left is outside Hermes:
-
A greeter that lights a new output by itself. With SDDM that is the Wayland greeter; the X11 greeter never lights a virtual output. As root:
# /etc/sddm.conf.d/10-wayland.conf[General]DisplayServer=waylandGreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell[Wayland]CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1/etc/sddm.confoverrides the files insddm.conf.d: if it setsDisplayServer=x11, change it there. SDDM logs in automatically wheneverUser=is set under[Autologin], whatever else that section says, and with autologin on none of this is used. -
Input devices without a session. Before login the seat belongs to the greeter, so the per-session grant to
/dev/uinputdoes not reach Hermes:sudo usermod -aG input $USER, then reboot. -
The virtual display without a session. Hermes-KMS is the only virtual display this has been run with, so set
virtual_display_backend = hermes_kms.sudo /usr/lib/hermes-kms/hermes-kms-setup configure --user autogives your user its device regardless of who is logged in; the helper comes with the driver's optional broker (hermes-kms-seatd-git, orsudo make INSTALL_BROKER=1 dkms-installfrom a clone).
hermes --prelogin disable goes back to starting Hermes with the graphical
session, and turns lingering off again if enable was what turned it on. A
unit of your own in ~/.config/systemd/user is never replaced or removed.
Limits
- The greeter must not lose its last output. SDDM's greeter exits when
that happens and SDDM does not start another, so there is no login screen
left to stream. Hermes does not probe the encoders at startup for that
reason, and when a display is removed before login - the application is
quit from the client, or a launch fails - it keeps the output connected for
the greeter, hands it to the next session, and lets it go once someone has
logged in. A kept output stays at the resolution the greeter is using, so
the next client streams that resolution whatever it asks for. Quitting the
application has been run on real hardware; a launch that fails, in a
virtual machine only. If the login screen is gone anyway,
sudo systemctl restart sddmover SSH brings it back. - Hermes joins the session only once no client is connected. The
stream, input and audio carry on through the login, but a Hermes that
started before it has none of the session's environment, and a running
process cannot be given one. Until it has, applications it launches do not
find the desktop, and it cannot change the resolution of a display that is
already lit, apply the exclusive, mirror or detached layouts, or share the
clipboard. About fifteen seconds after the last client disconnects, Hermes
restarts itself with the environment the session published - what
systemctl --user restart hermeswould do - and is unreachable for the few seconds that takes. If that restart stalls, Hermes' own ten-second shutdown watchdog ends it and systemd starts it again, inside the session either way. When you log out, Hermes exits with the compositor and systemd brings it back for the login screen within about ten seconds. The restart after the last client leaves has been run on real hardware; the watchdog path and the logout, in a virtual machine only. - Encoders are not probed until the first session. Until then the host reports H.264 only. In the test the first connection still negotiated HEVC; a client that decides from that report alone may start in H.264 once.
- Other greeters and desktops (GDM, GNOME, LightDM, greetd) are untested.
SteamOS and Game Mode
A machine that boots straight into Game Mode - SteamOS, or CachyOS with
gamescope-session - runs no desktop, so there is nowhere to open the web UI
and no keyboard to type into it. Two things make Hermes usable there.
It starts by itself. gamescope-session reaches graphical-session.target
like every other session type, and the unit is installed into it, so enabling
the service is enough:
systemctl --user enable --now hermes
Hermes reports no window system in that session and captures through
Hermes-KMS instead. That is expected: gamescope-session publishes nothing to
the systemd user manager, and the KMS backend needs none of it. Set
capture = kms if it is not already.
The console handles what needs a person. hermes-gamemode is a
controller-driven window for the two things that cannot be done from a client:
entering the PIN for a new device, and restarting the service. Add it to Steam
once, from Desktop Mode:
- Switch to Desktop Mode.
- In Steam, Games → Add a Non-Steam Game to My Library → Browse.
- Pick Hermes (Game Mode) from the application list, or
/usr/bin/hermes-gamemodedirectly. - Return to Game Mode. It is in the library under Non-Steam.
Launch it like a game. The D-pad moves between the buttons, A presses, and
B goes back; if your controller layout sends a mouse instead, the buttons are
sized to be hit with a thumbstick. When a device is waiting to pair, the console
says so on its own and offers a numeric keypad for the four digits - no
on-screen keyboard, and nothing to type a password into. It authenticates
through a token Hermes writes into your runtime directory at 0600, which is
why it never asks you to log in.
The console is not required for streaming; it is only needed when somebody has to act on the host itself.
Usage
Basic usage
The packages install a hermes.service systemd user unit, which is the
normal way to run it:
systemctl --user enable --now hermes
To run it in the foreground instead — useful when reading the log of a failing start — stop the service first, since running two instances is not advised and the second one fails to bind its ports:
systemctl --user stop hermes
hermes
Specify config file
hermes <directory of conf file>/hermes.conf
[!NOTE] You do not need to specify a config file. If no config file is entered, the default location will be used.
[!TIP] The configuration file specified will be created if it doesn't exist.
Start Hermes over SSH (Linux/X11)
Assuming you are already logged into the host, you can use this command
ssh <user>@<ip_address> 'export DISPLAY=:0; hermes'
If you are logged into the host with only a tty (teletypewriter), you can use startx to start the X server prior to
executing Hermes. You may need to add sleep between startx and hermes to allow more time for the display to
be ready.
ssh <user>@<ip_address> 'startx &; export DISPLAY=:0; hermes'
[!TIP] You could also use the
~/.bash_profileor~/.bashrcfiles to set up theDISPLAYvariable.
Upstream's Remote SSH Headless Setup guide covers a headless streaming server without autologin or dummy plugs (X11 + NVIDIA GPUs). It was written for Sunshine, so substitute the binary and unit names. On Wayland, Hermes-KMS replaces the dummy plug — see Compatibility.
Configuration
Hermes is configured via the web ui, which is available on https://localhost:47990 by default. You may replace localhost with your internal ip address.
[!NOTE] Ignore any warning given by your browser about "insecure website". This is due to the SSL certificate being self-signed.
[!CAUTION] If running for the first time, make sure to note the username and password that you created.
-
Add games and applications.
-
Adjust any configuration settings as needed.
-
In Hestia or another compatible client, you may need to add the PC manually.
-
When the client displays a PIN:
- Login to the web ui
- Go to "PIN" in the Navbar
- Type in your PIN and press Enter, you should get a Success Message
- In your client, select an application from the list
Arguments
To get a list of available arguments, run the following command.
hermes --help
Shortcuts
All shortcuts start with Ctrl+Alt+Shift, just like Moonlight.
Ctrl+Alt+Shift+N: Hide/Unhide the cursor (This may be useful for Remote Desktop Mode for Moonlight)Ctrl+Alt+Shift+F1/F12: Switch to different monitor for Streaming
Application List
- Applications should be configured via the web UI
- A basic understanding of working directories and commands is required
- You can use Environment variables in place of values
$(HOME)will be replaced by the value of$HOME$$will be replaced by$, e.g.$$(HOME)will be become$(HOME)env- Adds or overwrites Environment variables for the commands/applications run by Hermes. This can only be changed by modifying theapps.jsonfile directly.
Considerations
-
When an application is started, if there is an application already running, it will be terminated.
-
If any of the prep-commands fail, starting the application is aborted.
-
When the application has been shutdown, the stream shuts down as well.
- For example, if you attempt to run
steamas acmdinstead ofdetachedthe stream will immediately fail. This is due to the method in which the steam process is executed. Other applications may behave similarly. - This does not apply to
detachedapplications.
- For example, if you attempt to run
-
The "Desktop" app works the same as any other application except it has no commands. It does not start an application, instead it simply starts a stream. If you removed it and would like to get it back, just add a new application with the name "Desktop" and "desktop.png" as the image path.
-
In a Flatpak build you must prepend commands with
flatpak-spawn --host. -
If inputs (mouse, keyboard, gamepads...) aren't working after connecting, add the user running hermes to the
inputgroup.
HDR Support
Streaming HDR content is experimental.
On a Hermes-KMS virtual display, HDR10 capture targets AMD through VAAPI (Intel shares the path but is untested) and
NVIDIA through NVENC, by way of the CPU copy that backend always uses there. It needs virtual_display_backend = hermes_kms, Hermes-KMS
v0.4.0 or newer loaded with hdr_enable=1 color_depth=10, HDR enabled for the virtual output in KDE, and HDR enabled
in the client; EVDI has no HDR path. See Hermes-KMS HDR10.
-
General HDR support information and requirements:
- HDR must be activated in the host OS, which may require an HDR-capable display or EDID emulator dongle connected to your host PC.
- Enable HDR in Hestia or your compatible client, otherwise the stream will be SDR (and probably overexposed if your host is HDR).
- A good HDR experience relies on proper HDR display calibration both in the OS and in game. HDR calibration can differ significantly between client and host displays.
- You may also need to tune the brightness slider or HDR calibration options in game to the different HDR brightness capabilities of your client's display.
- Some GPUs video encoders can produce lower image quality or encoding performance when streaming in HDR compared to SDR.
Additional information:
- HDR streaming is supported for Intel and AMD GPUs that support encoding HEVC Main 10 or AV1 10-bit profiles using VAAPI.
- The KMS capture backend is required for HDR capture. Other capture methods, like NvFBC or X11, do not support HDR.
- You will need a desktop environment with a compositor that supports HDR rendering, such as Gamescope or KDE Plasma 6.
Tutorials and Guides
Tutorial videos are available here.
Guides are available here.
Tutorials and Guides are community generated. Want to contribute? Reach out to us on our discord server.