> For the complete documentation index, see [llms.txt](https://docs.plugin.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plugin.global/plugin-1.0-installations-deprecated/how-to-install-plugin-1.0-node/script-method-legacy/script-phase-1.md).

# 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
