- Deploy GPU instance, g2.large.x86 seems to be all we have. Here's a cloud-init
- The GPU driver may need bumps as the cuda required by the stable diffusion project increases.
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install grub2 python-is-python3 nvidia-driver-515-server python3-venv -y
useradd cprivitere -m -s /usr/bin/bash
- Now you need to reboot the server
su - cprivitere
bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh) --listen
To start it up again, run webui.sh, or to run it on the public interface, ctrl-c, then:
cd stable-diffusion-webui
./webui.sh --listen
- If you'd like to lock down the server
apt-get install ufw
ufw allow 7860
ufw allow OpenSSH
ufw enable