sudo apt install radosgw
sudo mkdir -p /var/lib/ceph/radosgw/ceph-rgw.`hostname -s`
sudo ceph auth get-or-create client.rgw.`hostname -s` osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/ceph-rgw.`hostname -s`/keyring
[client.rgw.n1]
host = n1
keyring = /var/lib/ceph/radosgw/ceph-rgw.n1/keyring
log file = /var/log/ceph/ceph-rgw-n1.log
| package org.ea; | |
| import javax.swing.*; | |
| import java.awt.*; | |
| import java.awt.event.InputEvent; | |
| import java.awt.event.KeyEvent; | |
| import java.awt.event.KeyListener; | |
| public class AutoClicker implements KeyListener { | |
| static boolean enabled = false; |
First of we need the registry and mysql server installed so we can keep track on which services are available, download new services and also run the actual database.
sudo apt install -y default-mysql-server default-mysql-client etcd curl
Before we start this POC we disable the default services as we will be setting up our own.
| import org.apache.commons.cli.*; | |
| import java.io.PrintWriter; | |
| public class CLI { | |
| private static final Option ARG_ADD = new Option("a", "addition", false, "Add two numbers together"); | |
| private static final Option ARG_SUB = new Option("s", "subtraction", false, "Subtract two numbers"); | |
| private static final Option ARG_MUL = new Option("m", "multiplication", false, "Multiply two numbers"); | |
| private static final Option ARG_DIV = new Option("d", "division", false, "Divided two numbers"); |
======================== promtail.yaml ==========================
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
First of we need to get the GPU available in the docker container.
This can be done via following the guide at: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html Or running some of the commands below
sudo apt update sudo apt full-upgrade -y
sudo vi /etc/apt/sources.list.d/ceph.list deb https://download.ceph.com/debian-18.1.3/ jammy main
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add - sudo apt update sudo apt install radosgw ceph-mon vim sqlite3 -y sudo vi /etc/ceph/ceph.conf
First we need to download the repository and create a new python environment. If you want to run this on the server the environment might not be required.
git clone https://github.com/Stability-AI/stablediffusion.git
cd stablediffusion/
python3 -m venv work
source ./work/bin/activate