Installing Exegol on Gentoo
This page was brought to you by a community member and wasn't "mass-tested" yet. Feedback on whether it works properly (or not) would be greatly appreciated (please head over to our Discord server for that).
Installing Exegol on Gentoo
Exegol is installed through two main steps:
- Install the Python wrapper (the "brains")
- Install at least one Exegol image (the "muscle")
1. Requirements
Git, Python3 and Pipx can be installed with the following command:
sudo emerge --ask dev-vcs/git
sudo emerge --ask dev-lang/python
sudo emerge --ask dev-python/pip
Install pipx inside a virtual environment (required on Gentoo):
python3 -m venv ~/myenv
source ~/myenv/bin/activate
pip install pipx
Ensure pipx is in PATH and reload the shell (inside myenv):
pipx ensurepath && exec $SHELL
Then install the Exegol wrapper (inside myenv):
pipx install exegol
You can choose any directory for the virtual environment. This method works well for installing both pipx and Exegol on Gentoo.
Create a shortcut to run Exegol with sudo
while keeping your user environment:
echo "alias exegol='sudo -E \$HOME/.local/bin/exegol'" >> ~/.bashrc && source ~/.bashrc
1.2. Installing Docker
While we recommend referring to the official Gentoo Wiki for full details, the following commands can be used to install and configure Docker on Gentoo.
Install Docker and CLI tools:
sudo emerge --ask --verbose app-containers/docker app-containers/docker-cli
Check kernel compatibility:
/usr/share/docker/contrib/check-config.sh
Start Docker (choose according to your init system):
With systemd:
# start docker
sudo systemctl start docker.service
# configure docker to start at boot
sudo systemctl enable docker.service
With openrc:
After Docker has been successfully installed and configured, it can be added to the system's default runlevel, starting it at boot:
rc-update add docker default
rc-service docker start
If you need the Docker registry:
rc-update add registry default
rc-service registry start
Docker "Rootless mode" is not supported by Exegol as of yet. Don't follow that part.
2. The rest
Once the requirements are installed, the main installation documentation can be followed, from step "2. Wrapper install".
3.1. Graphical apps
To enable graphical applications inside containers (like Firefox, BloodHound, or BurpSuite) to connect to your X11 session, you need to install xorg-xhost
and grant some access.
sudo emerge --ask x11-apps/xhost
Outsite the container:
xhost +local:
Inside the container:
export DISPLAY=:0