How to install the Stable Diffusion on Rocky Linux 9 Cloud GPU service

2024-11-01 By Aaron 573 Views linux gpu rocky linux
0 reviews

Stable Diffusion is an advanced machine learning model used for generating high-quality images based on text descriptions. It has gained significant attention for its ability to produce realistic and creative images, making it a popular choice for AI-driven creative projects. This article provides a step-by-step guide for manually installing Stable Diffusion on a Rocky Linux 9 Cloud GPU service.


Before beginning the installation process, ensure that you have root access to your Cloud GPU server with the necessary privileges to install packages and make system changes.


By the end of this tutorial, you'll have Stable Diffusion installed and configured, ready for use to generate AI-powered images directly from your server.


Prerequisite: Root access to the CloudGPU with full privileges to install packages and make system changes.


Check for GPU


First, check if a GPU is installed. If not, please follow the tutorial to install CUDA drivers:

# nvidia-smi

SDGPU1


Install Required Dependencies


Install the necessary Python libraries and tools:

# dnf install wget git python3 gperftools-libs libglvnd-glx

SDGPU2


Download Stable Diffusion


To avoid conflicts, download Stable Diffusion. After downloading, make the script executable and then run it to install:

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

SDGPU3

# chmod +x webui.sh
# sh /root/webui.sh -f --xformers --share --listen --enable-insecure-extension-access

SDGPU4

SDGPU5


Keep the terminal open and ensure that all extensions are properly installed.

SDGPU6


Open the Stable Diffusion Web Interface


Once the installation is complete, open a web browser and log in to the following URL to access the Stable Diffusion interface:

http://YOUR IP ADDRESS:7860

SDGPU7

SDGPU8


Related LayerStack Products

Related Tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.