# Script - Phase 1

> plugin-deployment

{% hint style="info" %}
Please ensure, you have git & curl command installed already. If not, use the following command

sudo apt install git

sudo apt install curl
{% endhint %}

<mark style="background-color:blue;">**`Please install an editor of your choice(like vim, nano etc.,) to edit files during installation`**</mark>

Do a git clone and perform the following actions

git clone <https://github.com/GoPlugin/plugin-deployment.git>&#x20;

cd plugin-deployment

There are two scripts in this folder namely,&#x20;

* 1\_prerequisite.bash&#x20;
* 2\_nodeStartPM2.sh&#x20;

Create two files namely '.env.apicred', '.env.password', by using the below mentioned command in terminal.

```
touch .env.apicred
touch .env.password
```

put - the credentials in below format in '.env.apicred' file - these credentials helps you to login your Plugin GUI

```
emailid
password
```

put - password(very strong) in '.env.password' file and it should follow specific format, which is given under NOTE

```
keystorepassword
```

#### NOTE:

```
.env.password => contains your Keystore password                      
#  *** KEYSTORE PASSWORD SHOULD FOLLOW THESE CONDITIONS ***
#   “must be longer than 12 characters”,			    
#   “must contain at least 3 lowercase characters”,	     
#   “must contain at least 3 uppercase characters”,	     
#   “must contain at least 3 numbers”,			     
#   “must contain at least 3 symbols”,			     
#   “must not contain more than 3 identical consecutive characters”.	
```

{% hint style="info" %}
Before triggering 1\_prerequisite.bash, please ensure to change the password at line number 203. The password should be a strong one as it is a Postgres password. Keep in mind that, the password should not have \* or @  characters
{% endhint %}

Open the terminal, go to a specific folder, and trigger the bash file like below

> ./1\_prerequisite.bash

What it does?

* It installs all prerequisites for the plugin environment.
* If your system already has a few packages that are necessary for Plugin environment, then the packages will throw error/warning messages and override the same.
* It is always recommended to go with fresh VPS or Machine


---

# 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://docs.goplugin.co/plugin-1.0-installations-deprecated/how-to-install-plugin-1.0-node/script-method-legacy/script-phase-1.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.
