> For the complete documentation index, see [llms.txt](https://docs.wanchain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wanchain.org/pos-validator-nodes/mainnet-node-setup-manually.md).

# Mainnet Node Setup (Manually)

This tutorial shows you how to manually start a validator node using GWAN. This method does not require sudo privileges and does not require the use of docker.

This method is suitable for developers with the technical ability to flexibly customize and modify instructions according to their specific environment.

## Download gwan node

First get the latest gwan node, select the version for your operating system and download it at:

[<mark style="color:blue;">https://github.com/wanchain/go-wanchain/releases/tag/v2.1.2</mark>](https://github.com/wanchain/go-wanchain/releases/tag/v2.1.2)

Here is the Linux version for your reference:

```
wget https://github.com/wanchain/go-wanchain/releases/download/v2.1.2/gwan-linux-amd64-2.1.2-e7e0f23d.tar.gz

tar -zxvf gwan-linux-amd64-2.1.2-e7e0f23d.tar.gz

cd gwan-linux-amd64-2.1.2-e7e0f23d
```

Check version information:

```
./gwan version
```

## Account Setup

Use the following script to setup a new account:

```
./gwan account new 
```

Enter password twice and get the generated account addresses

Use the following command to get the account public key:

(assuming the address just created is AAA and the password is BBB)

```
./gwan account pubkeys AAA BBB
```

The obtained key1 and key3 are the two public keys that we need to create the validator node later.

**NOTE：key1 and key3, not key2**

## Starting GWAN Node

(assuming AAA is the address we just created)

```
./gwan --etherbase AAA --unlock AAA --mine 
```

After entering the password as prompted, the node starts

**Note: At this time, the node is running in the foreground, and will be stopped after closing the terminal or Ctrl-C.**

If you need to run the node in the background, try running with pm2, nohup, screen or other background startup mode.

## Register Validator Node

You can register through the official [<mark style="color:blue;">WanWallet</mark>](https://github.com/wanchain/wan-wallet-desktop/releases). See instructions here.

## Switching Node to a New Server

See FAQ


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.wanchain.org/pos-validator-nodes/mainnet-node-setup-manually.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
