> For the complete documentation index, see [llms.txt](https://docs.roomit.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roomit.xyz/testnet/crossfi/installation-node/installation-validator.md).

# Installation Validator

**Chain ID**: crossfi-evm-testnet-1 | **Latest Binary Version**: v0.3.0-prebuild9

Update and install packages for compiling

```
sudo apt update
sudo apt install curl git jq lz4 build-essential zsh -y
```

#### User Management

{% hint style="info" %}
**Running in user** (Assume) : *salinem* We never used this username in our production !
{% endhint %}

Create User, Please Refer to [https://github.com/roomit-xyz/docs.roomit.xyz/blob/master/security/user-and-group-management.md](https://github.com/roomit-xyz/docs.roomit.xyz/blob/master/security/user-and-group-management.md "mention")

Login as User salinem

```bash
su - salinem
```

or

```bash
sudo su - salinem
```

and make sure we are in directory

```bash
pwd
/mainnet/salinem
```

{% hint style="info" %}
**Running in user** : *salinem*
{% endhint %}

#### FHS of SGE

Create FHS for application

```bash
echo "Install FHS"
mkdir -p ${HOME}/tmp
mkdir -p ${HOME}/lib
mkdir -p ${HOME}/bin
mkdir -p ${HOME}/conf
mkdir -p ${HOME}/systemd
```

### Install Golang

```bash
# Install Go 1.22.3
wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
tar xf go1.22.3.linux-amd64.tar.gz
mv go ${HOME}/bin
```

### Environment and Variable

If Using ZSH

```
# Set Go path to $PATH variable
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> $HOME/.zshrc
echo "export GOPATH="${HOME}/lib" >> $HOME/.zshrc
echo "export GOMAXPROCS=2" >> $HOME/.zshrc
echo "export CHAIN_ID=crossfi-evm-testnet-1" >> $HOME/.zshrc
echo "export WALLET_NAME=mywallet" >> $HOME/.zshrc
echo "export MONIKER=MYNODE"  >> $HOME/.zshrc
source ~/.zshrc
```

If Using BASH

```
# Set Go path to $PATH variable
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> $HOME/.bashrc
echo "export GOPATH="${HOME}/lib" >> >> $HOME/.bahsrc
echo "export GOMAXPROCS=2" >> $HOME/.bashrc
echo "export CHAIN_ID=crossfi-evm-testnet-1" >> $HOME/.bashrc
echo "export WALLET_NAME=mywallet" >> $HOME/.bashrc
echo "export MONIKER=MYNODE"  >> $HOME/.bashrc
source ~/.bashrc
```

#### Install Crossfi

```bash
wget -c https://github.com/crossfichain/crossfi-node/releases/download/v0.3.0-prebuild9/crossfi-node_0.3.0-prebuild9_linux_amd64.tar.gz -O ${HOME}/bin/crossfid
```

#### Intialize Node

```bash
crossfid init --chain-id $CHAIN_ID "$MONIKER"
```

**Replace genesis file with our genesis file**

```bash
wget https://testnet-files.itrocket.net/crossfi/genesis.json -O $HOME/.crossfid/config/genesis.json
```

**Create new account**

```bash
crossfid keys add $WALLET_NAME
```

Validate Genesis

```
crossfid validate-genesis
```

Edit config, You can refer to [Edit Configuration Node](/testnet/crossfi/installation-node/edit-configuration-node.md)

Apply State Sync, refer to [https://github.com/roomit-xyz/docs.roomit.xyz/blob/master/testnet/crossfi/installation-node/state-sync.md](https://github.com/roomit-xyz/docs.roomit.xyz/blob/master/testnet/crossfi/installation-node/state-sync.md "mention")
