Follow these instructions to start an EC2 instance running Ubuntu that will run rai_node on startup
-
Select Ubuntu Server 16.04 LTS (HVM), SSD Volume Type. A t2.small or larger instance type is recommended.
-
Configure the security group to match the screenshot.
-
Download
install_rai_node.sh
below, update the URLs with their latest versions.Get latest rai_node archive URL from https://github.com/clemahieu/raiblocks/releases.
Get latest gdrive-linux-x64 version URL from https://github.com/prasmussen/gdrive#downloads
Find the Google Drive database snapshot mirror from the RaiBlocks subreddit wiki page
Right click on the latest Linux archive in google drive and select "Get shareable link..."
The id at the end of this URL should be used in the command
-
Copy to the running instance and execute the script. You will be prompted with instructions for a Google Drive verification code.
$ scp -i [pem identity file name] install_rai_node.sh ubuntu@[instance public ip]:~ $ ssh -i [pem identity file name] ubuntu@[instance public ip] # In ssh session: $ chmod +x install_rai_node.sh $ ./install_rai_node.sh
-
Test an RPC call to the node from your local machine
curl -d '{ "action" : "block_count" }' [instance public ip]:7076