Generate Stunning Free Images with AI: A Simple Guide to Installing Stable Diffusion in linux

jay75chauhan
2 min readAug 11, 2024

--

Creating captivating visuals has never been easier thanks to AI models like Stable Diffusion. Whether you’re on Linux, you can set up Stable Diffusion and start generating incredible images in no time. Follow the instructions

Ref

Step 1: Install Prerequisites

Open your terminal and run:

sudo apt install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev git

Step 2: Install Pyenv

Install pyenv by executing:

curl https://pyenv.run | bash

Step 3: Install Python 3.10

With pyenv installed, run:

pyenv install 3.10

Step 4: Set Python 3.10 as Global Version

Make it the default Python version:

pyenv global 3.10

Step 5: Download and Install Stable Diffusion

Download the setup script and make it executable:

wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh
chmod +x webui.sh

Run Stable Diffusion:

./webui.sh

To verify if Stable Diffusion is running properly, you can visit the URL http://127.0.0.1:7860 in your web browser

setting up Stable Diffusion is straightforward. Enjoy exploring AI-generated art and transforming your creative ideas into stunning visuals!

--

--

No responses yet