There are many cloud services available to setup a Virtual Private Server (VPS). Microsoft Azure, Google Cloud Platform (GCP), Amazon Web Services (AWS) and Alibaba Cloud are few examples of where you can acquire a VPS.
If you have not already, check out one of the guides below on how to set up a Linux VPS at the following hosting service providers:
You can either open the console within Vultr or use any SSH (secure shell) software to connect to the VPS. If you’re using Windows, we recommend PuTTY.
2.1.1 - For Mac & Linux
Both ssh
and sftp
already come with the system to login and securely transfer files respectively. Open a Terminal and run this command:
ssh user@[server ip address]
Example:
ssh [email protected]
2.1.2 - For Windows
In Putty, enter your server’s IP address, make sure SSH
and Port 22
are selected and then click on Open.
2.2 - You may get a security alert about the server’s rsa2 key fingerprint. Just click Yes to trust the server and connect via SSH.
2.3 - You will be prompted to enter your username and password. See the informations on your Vultr dashboard.
You are now connected to your VPS!
2.4 - We HIGHLY recommend you to change your password by running the command:
passwd
3.1 - Once you're logged in, run this command to start the installation :
bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/energicryptocurrency/energi3-provisioning/master/scripts/linux/fix_mine.sh)" ; source ~/.bashrc
sudo systemctl daemon-reload
bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/energicryptocurrency/energi3-provisioning/master/scripts/linux/energi3-linux-installer.sh)" ; source ~/.bashrc
This command can also be used to upgrade your Core Node if a newer version is available.
3.2 - You will be given username and password to login to the VPS similar to what is shown below. Note down the information and then select y and ENTER to continue.
3.3 - Type a and press ENTER for a new installation.
3.4 - You will be prompted with the 2-Factor Authentication (2FA) option. We HIGHLY recommend you to use it as it adds an additional security layer to your VPS.
Type y and press ENTER.
3.5 - Scan the QR code using the Google Authenticator App. Type the 6-digit code to continue.
3.6 - Make sure to write down your emergency codes and to store them in a safe place. Type y and press ENTER once you're ready.
The software will start downloading and installing Energi Core Node.
Enter n to not download the keystore file using the script:
3.7 - This will end the installation of the Energi Core Node software. Make a note of the enode URL. You will need it to announce the masternode in Nexus.
We are going to import the wallet previously created in MyEnergiWallet.
4.1 - Open WinSCP to transfer keystore account file(s) from your local computer to the VPS. Enter the following information on the WinSCP Login screen and then click Login:
File protocol: SFTP
Host Name: Enter the IP address of your VPS here
Port number: 22
User name: nrgstaker
Password: Enter your nrgstaker password here
4.2 - The first time you log in, the following screen will pop up. Select Yes to accept the key to continue.
4.3 - Press CTRL+ALT+H
to show hidden files/folders.
4.4 - Click on .energicore3
and then keystore
on the left navigation pane. Address folder will show as /home/nrgstaker/.energicore3/keystore
.
4.5 - Find your keystore file and drag it to the folder.
4.6 - Close WinSCP.
Congratulations! You have successfully installed Energi Core Node on your VPS!
Energi Core Node will automatically start, even after a VPS reboot.
5.1 - Here are some useful commands for your VPS :
systemctl status energi3
CTRL + C to exit the status.
systemctl start energi3
systemctl stop energi3
5.2 - You are still connected as root
.
You need now to use the created nrgstaker
user session for future connections/operations.
5.3 - Close your terminal, and re-connect as nrgstaker
.
This is where you will be able to run all the commands, for staking and masternodes operations.
energi3 attach
personal.listAccounts
exit
Congratulations! You are now all set!
Before setting up Staking node / Masternode, bootstrap the node. This will expedite the sync process.
Now that you are all set with Energi Core Node, you can either follow the Staking or the Masternode Guide :
- Get technical assistance :