Create a read-only node

Tutorial*

*below are additional steps not covered in tutorial

Open a Terminal application

1. Install rust, cargo, rustfmt etc

Install rustc, cargo and rustfmt.

Make sure you are using the latest stable rust version by running:

Also install git, libssl-dev, pkg-config, zlib1g-dev, protobuf etc.

2. Install Tachyon v2.0 and Solana tools

Clone the Tachyon repository:

Build Tachyon and the solana tools:

Update your PATH environment variable:

Verify the installation:

If you see the versions listed below, the installation was successful:

3. System Tuning (Linux)

Your system will need to be tuned in order to run properly. Your validator may not start without the settings below.

Optimize sysctl knobs

Increase systemd and session file limits

Add

to the [Service] section of your systemd service file, if you use one, otherwise add

to the [Manager] section of /etc/systemd/system.conf, using

Execute configuration

Close all open sessions (log out then, in again)

4. Set to X1 Testnet network

To verify set network, use:

5. Create keypairs

Using command solana-keygen to generate a new wallet. It will generate a 12-word seed (aka. mnemonic, or recovery) phrase. Save it safe.

4 created keypairs are needed to run a validator. id can be used at withdrawer.

To switch between keypairs:

6. Fund wallet

Make sure you have XNT in your wallet before you continue.

Check balance:

7. Create a validator startup script & start node

In your ubuntu home directory (e.g. /home/ubuntu/), create a folder called bin. Inside that folder create a file called validator.sh and make it executable:

Next, open the validator.sh file for editing:

Copy and paste the following contents into validator.sh then save the file:

Make validator startup script executable:

Make sure you're in the home directory:

Start validator with nohup:

Check validator logs to see if it's running:

Check catch up status:

Use monitor command to check validator operations:

See all nodes connected to network, whether they are staked or not. Your identity.json should show up there.

Check validator process:

Kill validator process:

Last updated