acoolrocket

WebUI Linux Installation from scratch

Jun 28th, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -e # Exit on any error
  4.  
  5. # Move to home directory
  6. cd ~
  7.  
  8. # Download Miniconda installer
  9. wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  10.  
  11. # Install Miniconda silently
  12. bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda
  13.  
  14. # Initialize conda for bash
  15. eval "$($HOME/miniconda/bin/conda shell.bash hook)"
  16. conda init
  17. source ~/.bashrc
  18.  
  19. # Add deadsnakes PPA and install Python 3.10
  20. sudo add-apt-repository -y ppa:deadsnakes/ppa
  21. sudo apt update -y
  22. sudo apt install -y python3.10 python-is-python3
  23.  
  24. # Create conda environment
  25. cd ~/stable-diffusion-webui || { echo "Folder not found"; exit 1; }
  26. conda create -n sdwebui python=3.10 -y
  27. conda activate sdwebui
  28.  
  29. # Install pip & venv
  30. sudo apt update -y
  31. sudo apt install -y python3-pip python3-venv
  32.  
  33. # Verify pip version
  34. python -m pip --version
  35.  
  36. # Launch SD WebUI
  37. python launch.py --theme dark --xformers --no-half-vae --listen
Advertisement
Add Comment
Please, Sign In to add comment