Skip to content

Installation Script for Linux

David Sage edited this page Oct 9, 2026 · 27 revisions
Installation Script for Linux 2026-09-04

To install FooocusPlus on Linux

  1. Save the script below (installer.sh) to the empty folder where you wish to install FooocusPlus
  2. Make it executable as follows: chmod +x installer.sh
  3. Run installer.sh to install FooocusPlus to that location
  4. Please wait while FooocusPlus is installed and configured for your hardware

Generative models and related components are downloaded on demand, when required by a Generative cycle or other creative operation.

NOTE: The script has been tested on Ubuntu 22.04 LTS. To use the script on newer Ubuntu versions, please install the python3.10-venv package from the Deadsnakes PPA.

#!/bin/bash
branch="main"
venv="python_embedded"
code="core"
entry="run_fooocus_plus.sh"

clear
echo "======================================================"
echo
echo "            FooocusPlus Installer for Linux"
echo "            Installer Version: 1.4"
echo
echo "======================================================"
echo
git clone https://github.com/DavidDragonsage/FooocusPlus.git -b $branch $code
python3.10 -m venv $venv
source $venv/bin/activate
pip install -U pip 'setuptools<70' wheel packaging
pip install pygit2 torchruntime requests cmake
pip install -r $code/requirements_linux.txt
pip install -r $code/requirements_versions.txt
deactivate
cat <<EOF > $entry
#!/bin/bash
source $venv/bin/activate
cd $code
python entry_with_update.py
EOF
chmod +x $entry
echo
echo "Running FooocusPlus for the first time..."
./$entry

Clone this wiki locally