# Install a full node

## Login to your VPS.

Connect to your VPS as the root user with putty or any other popular terminal connection program.

Once connected with root, copy the code below and paste it into your putty / terminal window and press enter.

{% hint style="info" %}
You can find the github repo [here](https://github.com/Geordie-R/coti-full-node) if you want to dig in to the code further.
{% endhint %}

```
rm -rf installfullnode.sh
wget -O installfullnode.sh https://raw.githubusercontent.com/Geordie-R/coti-full-node/main/installfullnode.sh
chmod +x installfullnode.sh
./installfullnode.sh
```

\#You will be asked if you are installing for mainnet or testnet.  Choose the number corresponding to the option

You will be asked a series of questions :

* Your SSH Port No (22 if you have not changed it)
* Your Ubuntu Username (use coti if not sure it will be created fresh)
* Your Email address&#x20;
* Your server hostname from namecheap or other provider of your choice e.g. coti.mynode.com&#x20;
* Your wallet private key  (**not** your secret key)
* Your wallet seed key
* \***Testnet only  - Node added 16/07/2022: -** (which version to launch type **3.1.0** for now)
* \***Mainnet only** (which version to launch e.g. 1.4.1 etc)

{% hint style="info" %}
If you are not sure of any of the answers that get asked above whilst running the code above, leave the answer empty and it will terminate after the questions so that you can run the installfullnode.sh script again on its own, as shown below.

```
./installfullnode.sh
```

{% endhint %}

Answer all of the questions, pressing enter after each answer, then the node will configure itself.

If you are not an exchange, please skip the next section and move on to the Finally checking you're up section.


---

# 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://cotidocs.geordier.co.uk/installing-the-node/installing-a-node/step-6-ready-to-run-code.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.
