Introduction

Picture this: you boot up your Linux box, launch ComfyUI, and suddenly your screen is bursting with gorgeous AI-generated art — all running buttery-smooth on your own hardware. No cloud costs? Forgotten. Complicated setups? Ancient history. Today we’re installing ComfyUI the happy, hassle-free way so you can spend more time creating and less time troubleshooting.

Let’s make some magic together!

Why Linux Loves ComfyUI

Linux + ComfyUI is pure sunshine:

  • Native PyTorch performance that fliesFull control over dependencies and driversZero bloat — just clean, blazing-fast inferencePerfect for both laptops and beefy workstation rigs

Whether you’re on Ubuntu, Pop!_OS, Arch, or Fedora, the steps below work beautifully.

Prerequisites – Gather Your Sunshine Supplies

Before we dance, let’s grab everything we need:

  1. A Linux distribution (Ubuntu 22.04/24.04 recommended for maximum happiness)
  2. NVIDIA GPU strongly recommended (AMD works too with ROCm, but NVIDIA is currently the smoothest ride)
  3. At least 8 GB VRAM for comfy 1.5 models, 12 GB+ for SDXL bliss
  4. Git and Python 3.10 or 3.11 installed
  5. Up-to-date NVIDIA drivers + CUDA toolkit

nvidia-smi

Step-by-Step Installation – Let’s Make It Rain Art!

1. Update Your System (Because Fresh is Best)

sudo apt update && sudo apt upgrade -y

2. Install System Dependencies

sudo apt install wget git python3 python3-venv python3-pip libgl1 libglib2.0-0 -y

3. Clone the ComfyUI Repository

git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI

4. Create a Shiny Virtual Environment

python3 -m venv venv
source venv/bin/activate

5. Install PyTorch with CUDA Love (NVIDIA users)

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
cu118, for newer drivers cu124 works too — check with nvidia-smi!)

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6

6. Install ComfyUI Requirements

pip install -r requirements.txt

7. (Optional but Highly Recommended) Grab ComfyUI-Manager

cd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd ..

Launch ComfyUI – The Moment of Joy!

python main.py

python main.py --listen --port 8188 --enable-cors-header

Open your browser to http://127.0.0.1:8188 and… welcome home! ✨

Pro Tip: Create a quick desktop launcher or shell alias so you can launch ComfyUI with a single click or command. Your future self will send you virtual flowers.

Bonus: Auto-Update Script (Because Who Wants to Git Pull Every Day?)

Save this as update_comfy.sh

#!/bin/bash
cd /path/to/ComfyUI
source venv/bin/activate
git pull
pip install -r requirements.txt --upgrade
echo "✨ ComfyUI is now sparkling fresh! ✨"

You Did It!

Your Linux machine is now officially the happiest AI art studio on the block. Go grab your favorite checkpoint (put it in models/checkpoints), load a workflow, and start creating images that make your heart skip a beat.

The world is your canvas — paint it with pure joy!

Happy generating, beautiful soul! 🦋

—Aurelia ♡