# Self Hosted RoostGPT - OnPrem

Install RoostGPT on Ubuntu Server

# Ubuntu Server Requirements

- Ubuntu Server 22.04 or higher
- Minimum CPU - 8 cores
- Minimum RAM - 16 GB
- Minimum Root Disk - 50 GB
- Additional Disk - 250 GB (for /var/tmp/Roost mount point)

Ubuntu user should have preferably passwordless sudo access

# Download Roost Deployment Tool

Copy and execute the below bash snippet. The tool will prompt for the needed details and launch RoostGPT stack

```bash
curl -sLO https://github.com/roost-io/roost-support/releases/latest/download/roost-deployment-tool 
chmod +x roost-deployment-tool

```

# Network Configuration and SSL Certificates

##### SSL Certificates to the enterprise domain

Copy SSL Certificates to the Ubuntu Server and make a note of the key and cert file location.

It will have to be mentioned in the config.json

##### Network Configuration

Allow incoming traffic to the below ports

<table border="1" id="bkmrk-protocol-port-source" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>**Protocol**</td><td>**Port**</td><td>**Source IP**</td></tr><tr><td>TCP (HTTPS)</td><td>443</td><td>All IP in the company network</td></tr><tr><td>SSH</td><td>22</td><td>Only to be used by IT Support Staff</td></tr><tr><td>TCP</td><td>60001 - 62120</td><td>  
</td></tr></tbody></table>

# Launch RoostGPT stack

Execute the below command to update the stack

```bash
./roost-deployment-tool create-stack
```

##### To refresh/upgrade Roost version in the stack

```bash
./roost-deployment-tool refresh-stack
```