# Install Medulla server on Linux

#### Requirement : 

The Medulla installation script supports the Debian (Bookworm) distribution.

You must have a machine with:

- **at least 8 GB of available RAM,**  
    **at least 40 GB of free disk space for / and 200 GB for /var.**

Verify that your **/etc/hosts** file is correctly configured with the fully qualified domain name (FQDN).

For example, if the machine is named medulla and the domain is named domain.lan, **/etc/host**s should contain a line like this:

```
127.0.1.1    medulla.domaine.lan    medulla
```

Verify that the **/etc/resolv.conf** file is correctly configured and that the machine is properly connected to the internet.

#### Medulla Server Installation:

To install the Medulla server: Use a user with sudo privileges to run the installation script and playbook.

##### 1- Transfer the script to the server.

##### 2- Set execute permissions on the file:

```bash
chmod +x install_from_ansible.sh
```

##### 3- Start the server installation:

```bash
./install_from_ansible.sh
```

Wait for the installation process to complete. A summary will display all the necessary passwords (copy them to a safe location).

You can generate the necessary installation files without starting the installation directly via Ansible. To do this:

```bash
./install_from_ansible.sh --only-generate_ansible_hosts
```

A new directory, tmp.xxx, will be created in /tmp.

Go there, you'll find the Ansible files such as ansible\_hosts.yml, which you can correct/modify if necessary. Then, launch the installation with the following command:

```bash
ansible-playbook playbook_medullamain.yml --vault-password /root/.vp -i ansible_hosts.yml --limit=medulla
```