# Soika Stack Installation Commands

Preinstallation Steps

Before installing the Soika software, ensure your system is updated and the necessary CUDA dependencies are installed. Replace X.X and X-X in the commands below with the appropriate CUDA version for your system (e.g., 12.3 for X.X and 12-3 for X-X).

**Step 1 :Update the system packages:**

This ensures your OS has the latest security patches and dependencies.

```bash
sudo apt-get update
```

**Step 2: Download and install the CUDA keyring:**

The cuda keyring allows ubuntu to securely download NVIDIA Packages.

Ensure the CUDA version (for example X.X with 1.1-1 and 12-8) matches your NVIDIA GPU and driver requirements. Check the [NVIDIA CUDA Toolkit documentation](https://developer.nvidia.com/cuda-downloads) for compatibility.

You can find the cuda versions : <https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/>

```bash
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_X.X_all.deb
sudo dpkg -i cuda-keyring_X.X_all.deb
```

**Step 3: Update the package lists and install CUDA components:**

This step install the CUDA runtime and toolkit, which allows Soika to communicate with the GPU

```bash
sudo apt update
sudo apt install cuda-cudart-X-X
sudo apt install cuda-toolkit-X-X
```

**Once the system is ready, we install the Soika Stack server**

### Installation Scripts

Use the following commands we would install the Soika Stack. Run these commands with sudo as they require administrative privileges.

#### To install the Soika Stack server:

```bash
curl -sSL https://s3.dualstack.eu-central-1.amazonaws.com/pkg.soika.ai/soikastack/install-s
```

### Installation Verification <a href="#installation-verification" id="installation-verification"></a>

Verify that both services are running correctly:

```
# Check Soika API status
sudo systemctl status soika-docker

# Check SoikaStack status
sudo systemctl status soikastack
```

### &#x20;Accessing the System <a href="#accessing-the-system" id="accessing-the-system"></a>

After successful installation:

* **Soika API**: Available at <http://localhost:4142>
* **SoikaStack UI**: Available at <http://localhost:4141>
* **Default login**: Use the bootstrap password : Admin\@123

### Basic Usage <a href="#basic-usage" id="basic-usage"></a>

**Soika API Management**

```
# Start Soika API
sudo systemctl start soika-docker

# Stop Soika API
sudo systemctl stop soika-docker

# View logs
sudo journalctl -u soika-docker -f
```

**SoikaStack Management**

```
# Start SoikaStack
sudo systemctl start soikastack

# Stop SoikaStack
sudo systemctl stop soikastack

# View logs
sudo journalctl -u soikastack -f
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://soika-labs.gitbook.io/soika-mockingjay/quick-start-guide/soika-stack-installation-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
