Ubuntu

useradd -u 1020 -m solana
usermod -a -G sudo solana
usermod --shell /bin/bash solana
passwd solana
su - solana
sh -c "$(curl -sSfL https://release.solana.com/v1.9.8/install)"
solana config set --url https://api.mainnet-beta.solana.com
sudo $(command -v solana-sys-tuner) --user $(whoami) > sys-tuner.log 2>&1 &
mkdir solana
solana-keygen new -o solana/validator-keypair.json
solana-keygen pubkey solana/validator-keypair.json
solana config set --keypair solana/validator-keypair.json
solana balance
solana-keygen new -o solana/authorized-withdrawer-keypair.json
solana-keygen new -o solana/vote-account-keypair.json
solana create-vote-account solana/vote-account-keypair.json solana/validator-keypair.json solana/authorized-withdrawer-keypair.json
vim /etc/sysctl.conf
vm.swappiness=10
vm.vfs_cache_pressure=50
vm.max_map_count=1000000

https://newreleases.io/project/github/solana-labs/solana/release/v1.1.3

solana-validator \
    --identity solana/validator-keypair.json \
    --vote-account solana/vote-account-keypair.json \
    --known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 \
    --known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ \
    --known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ \
    --known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S \
    --only-known-rpc \
    --ledger ledger \
    --accounts accounts/accounts \
    --rpc-port 8899 \
    --private-rpc \
    --dynamic-port-range 8000-8020 \
    --entrypoint entrypoint.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint2.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint3.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint4.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint5.mainnet-beta.solana.com:8001 \
    --expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \
    --wal-recovery-mode skip_any_corrupted_record \
    --limit-ledger-size \
    --skip-poh-verify \
    --no-poh-speed-test
solana vote-update-commission solana/vote-account-keypair.json 10 solana/authorized-withdrawer-keypair.json
solana validator-info publish "Super Validator" -n nbodo --keypair solana/validator-keypair.json
solana vote-account solana/vote-account-keypair.json
solana catchup solana/validator-keypair.json --our-localhost

Revision #11
Created 20 February 2022 14:48:20 by Bodo
Updated 23 February 2022 04:33:15 by Bodo