# Post Installation Setup

## Using the setup script

Access your Lucy container and execute the setup script:

**Lucy version 5.2.1 and below**

```
docker exec -it lucy python /opt/phishing/current/tools/setup/setup.py
```

**Lucy version 5.3 and above**

```
docker exec -it lucy python3 /opt/phishing/current/tools/setup/setup.py
```

{% hint style="success" %}
The default name for the container is `lucy`.\
If you named it something else, use that name in the command above.
{% endhint %}

You can also run the setup script at any time from within the container using:

```
sudo python /opt/phishing/current/tools/setup/setup.py
OR
sudo python3 /opt/phishing/current/tools/setup/setup.py
```

The script starts with this menu:

<figure><img src="https://3536856424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2FEsjUgMbDhQM32YWQ43L0%2Fimage.png?alt=media&#x26;token=acac7ce6-0759-4555-bd6c-4bd369b8192d" alt=""><figcaption></figcaption></figure>

## Create an administrative user

Select **Users** (6), then select **Add User** (2).

<figure><img src="https://3536856424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2FzQc96TOeKw3BYzJXwUia%2Fimage.png?alt=media&#x26;token=0b938aab-295e-4873-b479-f6bd445a8c05" alt=""><figcaption></figcaption></figure>

## Configure the administrative domain

Select **Base Task** (5) and enter a domain you own.

<figure><img src="https://3536856424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2FssmEdYpvHjD2aOrSUcew%2Fimage.png?alt=media&#x26;token=b8237e15-ec2e-474b-a519-9fe5bf020f5a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Ensure all relevant [DNS records](https://wiki.lucysecurity.com/application-reference/settings/common-system-settings/domains#dns-records-explained) are pointing to your Lucy server.
{% endhint %}

<figure><img src="https://3536856424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2Fp4O6wiigg1vSd43cjcgq%2Fimage.png?alt=media&#x26;token=9fc43437-2e6b-4022-9a8c-4c10ed48b9b1" alt=""><figcaption></figcaption></figure>

***

## Get a license

Licensing restrictions currently limit some configuration options on your Lucy server. To start the licensing process, please contact your Account Manager and provide your Lucy [workstation ID](https://wiki.lucysecurity.com/application-reference/account-settings/license#workstation-id).

Once a license has been assigned to your workstation, you can sync the details by going to **Support > Update** and clicking **Check Update**.

***

## Initial Lucy Configuration

* [x] [Configure mail delivery.](https://wiki.lucysecurity.com/application-reference/settings/common-system-settings/mail-settings)
* [x] [Set up a domain for phishing simulations or the e-learning portal.](https://wiki.lucysecurity.com/application-reference/settings/common-system-settings/domains)
* [x] [Create a trusted SSL certificate.](https://wiki.lucysecurity.com/application-reference/settings/common-system-settings/ssl-settings)
* [x] [Create administrator users.](https://wiki.lucysecurity.com/application-reference/users/administrative-users)
* [x] [Download the latest templates.](https://wiki.lucysecurity.com/application-reference/templates/download-templates)
* [x] [Implement additional security layers.](https://wiki.lucysecurity.com/application-reference/settings/common-system-settings/firewall)
* [x] [Customize portal branding and 404 pages.](https://wiki.lucysecurity.com/application-reference/settings/whitelabeling)
* [x] [Set up your first campaign.](https://wiki.lucysecurity.com/guides/quick-guides/create-your-first-campaign)
