Install es-python on a machine

How to get an es-python machine's install command, run it on the host, what it installs and where, and what to do when an install does not finish.

Before you start

You need an es-python machine on the Machines page and a terminal on the host itself. For a this user install you do not need root or sudo: es-python installs into your home directory. The all users installs need sudo (see Install modes).

The host needs a downloader (curl, wget or python3), a way to unpack archives (tar and gunzip, or python3), a SHA-256 tool (sha256sum, shasum, openssl or python3), mktemp, and enough free disk space for the runtime. The installer checks all of these first and tells you exactly what is missing.

es-python also uses a few system libraries from the host: OpenSSL (libssl and libcrypto), libcurl, zlib and libffi. Most hosts already have them, and a host with curl installed almost always does. The installer checks for them before it downloads anything, and when one is missing it names the package and the command that installs it. On Arch Linux, install openssl-3 first: sudo pacman -S openssl-3.

For es-chromium, see Install es-chromium instead.

Get the install command

The install command is a single line you paste into a terminal on the host. When you add a machine, an Install EyalSec panel opens under its row with the command already generated; later, click Install on the row to open it again. On the Machines map, right-click the machine and choose Install: the same panel opens over the map. Click Copy to copy the command.

The panel starts with the machine's own Python and Install as choices. Change either there and the command is replaced by one for the new choice, which is saved on the machine.

The command looks like this (always copy the real one from the panel):

. <(printf 'secret=abcd*****wxyz' | curl -sSL -d @- https://eyalsec.com/install.sh)

It tells the server which C library and architecture the host has, so the server can pick a runtime build that will load there. It then downloads the installer into a private temporary file, runs it in your current shell, deletes the file, and ends with the installer's own exit status. The host needs curl to run the command.

Paste it into bash or zsh. From fish or sh, use the same command in this form instead: printf 'secret=...' | curl -sSL -d @- https://eyalsec.com/install.sh | bash (see If you pipe it to bash).

For a machine set to install for all users, the command is printf 'secret=...' | curl -sSL -d @- https://eyalsec.com/install.sh | sudo bash instead (see Running it with sudo).

What the command reports about the host

Along with the token, the command sends a few facts about the host: its processor (uname -m), its C library version (ldd --version), the ID, VERSION_ID and ID_LIKE lines of /etc/os-release, and the output of python3 -V. Nothing else is read. Any of them can be missing; the command still runs.

For a machine added with the build left to detection, these facts decide which build and Python version are installed (see The build is detected at install), and the machine's row shows the result as soon as the install starts. For a machine whose build you chose, they are only used to serve a compatible build when the host's C library is older than the chosen one needs.

The one-time token

The secret= value in the command is a one-time install token. It works once, and it expires 10 minutes after it was issued. The panel shows the time it stops working, and while the panel stays open it replaces the command with a fresh one shortly before then; if you click Copy on a command that has expired, it is replaced first and then copied. Once the install has started on the host, the panel stops replacing it. If you need to run the install again later, click Install on the row for a fresh command.

The panel shows the token partly masked (abcd*****wxyz) so a screenshot of the page does not leak it. The Copy button always copies the complete command.

The privacy notice

The panel starts with a privacy notice: es-python may capture values from your program's memory, including secrets and personal data, when untrusted data reaches a monitored operation. Only run it on systems and data you are authorized to monitor.

Authorization

The tick box in the panel is your statement that you own or are authorized to monitor this machine, that you will not use es-python to surveil third parties, and that you are not located in or a national of an embargoed destination and not on a denied-party list. It is ticked by default, and the install command is only issued while it is ticked.

If you untick it, the command is withdrawn and the box reads "Confirm authorization above to generate the install command...". Ticking it again generates a new command. Each command you generate is recorded in your activity log as "Attested authorized use; generated install token".

Run the installer

Paste the command into a terminal on the host and press Enter. It first prints "preparing your build on the server (this can take up to a minute)..." while the server prepares the runtime for this machine, then lists each step with a green tick as it completes.

The main steps are: checking that the host matches the selected build, checking the system libraries it uses, checking the environment, checking required tools and free disk space, downloading the runtime, verifying its integrity, extracting it, installing the es-python launcher and the eyalsec helper, adding ~/.local/bin to your PATH (this user installs only), and finally verifying that the runtime starts on this host. How the download and the install token are protected is described on the security page.

On the dashboard, the machine's status moves from created to pending install as soon as the install starts, and to installed once the final check passes. You do not need to reload the page.

When it finishes, the installer prints:

  Done. es-python is ready in this shell. Try: es-python

es-python works in the same terminal right away. The installer also adds ~/.local/bin to your shell's startup files, so new terminals find it too.

An all-users install prints Done. es-python is installed for all users; try: es-python instead. /usr/local/bin is already on every user's PATH, so it works in every terminal at once. If you run it with sudo and an older eyalsec command from a this-user install sits in your ~/.local/bin, it is updated too, so eyalsec info lists both installs.

If you pipe it to bash

With curl ... | bash, the installer runs in a child shell, and a child shell cannot change your terminal's PATH. So when ~/.local/bin is not on your PATH yet, the installer links es-python and eyalsec into ~/bin if that folder is on it. Otherwise it ends with "Done. Open a new terminal, then try: es-python", followed by the export PATH=... line that makes it work in the current terminal. An install for your account stays in your home folder and is never linked into a system folder such as /usr/local/bin, so the other accounts on the host only run what was installed for them.

Running it with sudo

For a this user install you do not need sudo, and it is better not to use it. If you do run the command with sudo, the installer runs as the user who ran sudo and installs into that user's home, not root's. In a root-only shell (a container or a single-user server), it installs into root's home.

An all users install needs root, so the command the panel shows ends in | sudo bash. Run without root, it stops before downloading the runtime and says so. If you are already root (for example in a container without sudo), | bash works too.

What it installs

By default (Add es-python (this user)) the installer puts everything under your home directory and changes nothing system-wide (the one exception is the /usr/local/bin link described in If you pipe it to bash). For the default version, Python 3.13, it installs:

Path What it is
~/opt/eyalsec/ the es-python runtime
~/.local/bin/es-python3.13 the launcher for this version
~/.local/bin/es-python the plain es-python command
~/.local/bin/eyalsec the eyalsec helper command (see On the machine)
~/.eyalsec/ the on-machine manual, notes for AI assistants, and a record of each installed build

Other Python versions install side by side: Python 3.12, for example, goes into ~/opt/eyalsec3.12/ with the launcher es-python3.12. The plain es-python command always points at the version installed most recently, and every version stays reachable by its own es-python3.X name.

The installer also adds ~/.local/bin to your PATH for new shells: in ~/.bashrc, and also in ~/.zshrc and fish's configuration if you use those shells. Each line is marked # es-python PATH so it is easy to find, and a reinstall does not add it twice.

A new machine already watches network input (socket) and file reads (file); change those or switch on others in Configure (see Sources watched from the start). Then run your code with es-python instead of python. See Running es-python.

Install modes

The machine's Install as choice decides where the files go:

This user All users
Runtime ~/opt/eyalsec… /opt/eyalsec…
Commands ~/.local/bin /usr/local/bin
Build records ~/.eyalsec/ /etc/eyalsec/
Manual and AI assistant notes ~/.eyalsec/ /usr/local/share/eyalsec/
Needs sudo no yes

The two and python modes also put python and python3 next to the es-python commands. They point at the versioned command (for example es-python3.13), so installing another version later does not change them. If a python or python3 is already there, a link is replaced (what it pointed at is not touched) and a real file is kept as python.bak or python3.bak; uninstalling, or switching to a mode without python, puts that file back. /usr/bin/python3 is never changed, so system tools that call it directly keep working. Scripts that start with #!/usr/bin/env python3 run es-python in a python mode.

On an all-users install:

  • each user's programs get this machine's latest settings whenever EyalSec is reachable; offline, a user who is not root runs on the settings from install time;
  • every user's programs report as this one machine.

To change the mode of an installed machine, see Change the install mode.

Retries and reinstalling

The runtime download is large, so the installer retries on its own and resumes an interrupted download where it stopped. If an install still does not finish, click Install on the row for a fresh command and run that; the old command's token is already spent.

Clicking Install on a machine that is already installed is how you reinstall or update it. It puts the machine back to created and issues a new command; the machine keeps its name, settings and events. See Reinstall.

While billing stops a machine (no card yet, an ended subscription, or a paused account), Install says why and what to do instead of issuing a command, and the machine is left as it was. See When the account is paused.

Troubleshooting the install

When the install cannot go ahead, the installer prints a red ✗ line saying why, and usually what to do. The machine then shows installation error or stays at pending install. After fixing the cause, click Install for a fresh command.

The messages you are most likely to see:

Message What it means and what to do
this install command is no longer valid its one-time token was already used, or it is more than 10 minutes old. Click Install for a fresh command.
this machine is already installed a command can only install a machine once. Click Install on the row; that resets the machine and issues a new command.
an install for this machine is already in progress another install of this machine is still running. Wait for it, or click Install again to start over.
this machine has no OS type set, so there is no build to serve set the machine's OS, then click Install.
this host is aarch64 but the build selected for this machine is x86_64 the Arch chosen under Advanced does not match the host. Add a machine with the build left to detection, or with the right Arch (see Set the OS).
this host has glibc 2.31, but the build selected for this machine needs 2.35 or newer the Distro picked under Advanced is newer than the host. Add a machine with the build left to detection, or with the distro the host really runs.
there is no es-python build for this CPU architecture the host's processor (named in the message) is not x86_64 or aarch64. Install on a supported host.
this host's C library (glibc 2.X) is older than every es-python build the host's release is older than every supported one; the message lists what is supported. Install on a newer release.
this host's C library could not be identified, and its OS is not one es-python has a build for the host is not a glibc-based Linux (Alpine, for example, uses musl). Install on a supported distribution.
this machine is set to Python 3.X, which is not available for this host's build the version picked when adding the machine has no build for this host. The message lists the versions that do; add the machine with Python set to Match this host.
missing required tool: ... install the named tool with your package manager and run a fresh command.
es-python needs the system library ..., which this host does not have run the install command printed under it (for example sudo pacman -S openssl-3 on Arch Linux), then click Install for a fresh command. Nothing was installed.
not enough free disk; need ~N MiB free ... free up space in the temporary directory and in ~/opt.
integrity check failed: the download does not match the file prepared for this machine usually a network problem. Nothing was installed. Run a fresh command.
we could not confirm this download is the one EyalSec published, so it was not sent the problem is on our side, not yours. Email support@eyalsec.com and we will put it right.
the install service is busy right now retry in about 30 seconds; the same command is still valid.
no build is available yet for this machine's OS there is no runtime published for that target and version yet. Contact support@eyalsec.com.
es-python is not enabled on this account the product was switched off for your account. Contact sales@eyalsec.com.
this EyalSec account needs a card before its machines can run nothing pays for this machine yet. Add a card on the Billing page, under Settings, then run the same command again; it is still valid.
this machine's subscription ended choose a subscription on the Billing page, then run the same command again.
this EyalSec account is paused until a payment goes through open the Billing page, click Pay now, then run the same command again. See When the account is paused.
this month's usage reached the spend limit set on this EyalSec account raise or remove the spend limit on the Billing page, then run the same command again.
this EyalSec account is paused under your signed order email support@eyalsec.com and we will help you sort it out.
account activation is needed the account is not active yet. The same command works once it is.
this machine is set to install es-python for one user ... Run the install command again without sudo the host has neither setpriv nor runuser, which a this user install under sudo uses to run as you. Run the command without sudo.
this machine is set to install es-python for all users, which needs root run the command with sudo (copy it again from the panel), or set Install as to a this user mode. Nothing was downloaded.
... is not an EyalSec link and ....bak already exists, so it cannot be kept aside a Replace python mode keeps a python or python3 already at that path as NAME.bak, and that name is taken. Rename one of the two, or choose an Install as mode without python. Nothing was downloaded.
... is a directory; es-python will not replace it a directory sits where the python or python3 link goes. Move it, or choose an Install as mode without python.
curl: command not found install curl with your package manager (for example sudo apt-get install -y curl ca-certificates) and paste the command again.

If the terminal shows es-python: command not found after a successful install, you are in a terminal that was open before the install: open a new one. More help is in Troubleshooting.

Something unclear or missing on this page? Email support@eyalsec.com.

EyalSec Pricing Docs Security Research Vulnerabilities Play Security glossary About Contact עברית Login Get started Protect my Python app