https://github.com/dnut/solana-server-setup
https://github.com/dnut/solana-server-setup
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnut/solana-server-setup
- Owner: dnut
- Created: 2024-04-24T00:09:47.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-19T03:17:36.000Z (about 1 month ago)
- Last Synced: 2025-03-19T03:26:38.547Z (about 1 month ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Go from zero to running a solana validator with a single turnkey script.
This automates the entire process of setting up a server from scratch to run agave or sig. It optionally launches an ec2 instance, then it configures your server to run the validator.
## Launch and setup EC2 instance from scratch
This uses the aws cli to launch an ec2 instance, then automatically SSH in and set everything up. You'll need to have the aws cli locally installed and authenticated.
```bash
cp server.template.conf server.conf # copy config template
vim server.conf # populate missing configuration
./create-and-setup-full-test-node.sh # launch and setup instance
```Normally the scripts expect to find `server.conf` in the working directory, but you can specify any arbitrary path with the `SERVER_CONF` variable:
```bash
SERVER_CONF=/path/to/mynode1.server.conf ./create-and-setup-full-test-node.sh
```## Set up an existing server
Alternatively, if you already have a running server, you can run this on the server to set up the server. The OS needs to be ubuntu, with two drives at /dev/nvme1n1 and /dev/nvme1n2 available for ledger and data.
```bash
cp server.template.conf server.conf # copy config template (no changes needed)
./setup-full-test-node.sh
```> *Note: If you already created your server with `create-and-setup-full-test-node.sh`, you do not need to execute `setup-full-test-node.sh`. It was already run by that script.*
## Run the validator
`agave-validator` is installed on the machine and you can call it with the CLI options of your choosing. If you just want to start up a basic node with sane defaults, run the script that was installed for this purpose:
```
/home/ubuntu/run-basic-validator.sh
```