Create a read-only node
Tutorial*
*below are additional steps not covered in tutorial
1. Install the Solana CLI (Linux) (to get tools)
Open a Terminal application
Install the Solana release v1.18.26 on your machine by running:
The following output indicates a successful update:
Depending on your system, the end of the installer messaging may prompt you to
Please update your PATH environment variable to include the solana tools programs:
Confirm you have the desired version of solana
installed by running:
The output should look like this:
solana-cli 1.18.26 (src:d9f20e95; feat:3241752014, client:SolanaLabs)
2. Install rust, cargo, rustfmt etc
Install rustc, cargo and rustfmt.
Make sure you are using the latest stable rust version by running:
Also install libssl-dev, pkg-config, zlib1g-dev, protobuf etc.
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. Setup Solanalabs (Xolana) validator
Clone solana-validator code
To verify your configuration, and should be * dyn_fees_v1:
5. Build
Check ok with:
Copy solana-validator to your path:
6. Set to Xolana network
To verify set network, use:
7. 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.
To switch between keypairs:
8. Fund wallet
Check balance:
9. 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