Skip to content

Instantly share code, notes, and snippets.

@alx
Created January 15, 2023 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alx/9bee13fe54510a262862abcbdbec2a3a to your computer and use it in GitHub Desktop.
Save alx/9bee13fe54510a262862abcbdbec2a3a to your computer and use it in GitHub Desktop.
#!/bin/bash
adduser webui
apt update && apt install wget git python3 python3-venv ffmpeg libsm6 libxext6 -y
su webui
cd /home/webui/
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui/models/Stable-diffusion
wget https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
cd ../../
sed -i "s/#export COMMANDLINE_ARGS=\"\"/export COMMANDLINE_ARGS=\"--listen --skip-torch-cuda-test --share\"/g" webui-user.sh
chmod +x webui-user.sh
./webui.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment