Build Soarchain Node
Step 1: Download and Unzip the File
Locate the
release.zip
File:- Ensure the
release.zip
file is downloaded to your local machine. - To confirm the file's location, list it directly:This command will display
ls release.zip
release.zip
if it's in the current directory. If not, ensure you're in the correct directory or move the file accordingly.
- Ensure the
Unzip the File:
- Open your terminal and navigate to the directory containing
release.zip
. - Run the following command to unzip:This extracts the contents into a folder.
unzip release.zip
- Open your terminal and navigate to the directory containing
Step 2: Transfer Files to the Remote Server
Prepare to Transfer:
- Ensure you have the username, IP address of the remote server, and the destination path where you want to transfer the files.
Transfer the Files:
- Use the
scp
command in your terminal to securely copy the extracted folder:Replacescp -r <extracted_folder> <username>@<remote-server-IP>:<destination-path>
<extracted_folder>
,<username>
,<remote-server-IP>
, and<destination-path>
with the appropriate values.
- Use the
Step 3: Set Up Soarchain on the Remote Server
Connect to Your Remote Server:
- Use SSH to connect to your remote server:
ssh <username>@<remote-server-IP>
- Use SSH to connect to your remote server:
Navigate to the Transferred Folder:
- Once logged in, navigate to the folder where you transferred the Soarchain files.
cd <destination-path>/release
- Once logged in, navigate to the folder where you transferred the Soarchain files.
Extract the Binary File:
- Extract the
soarchain_linux_amd64.tar.gz
file:tar -xzvf soarchain_linux_amd64.tar.gz
- Extract the
Step 4: Finalize Installation
Set Execution Permissions:
- Grant execution rights to the binary file:
chmod +x soarchaind
- Grant execution rights to the binary file:
Move Binary to a Global Location:
- Relocate
soarchaind
for system-wide accessibility:sudo mv soarchaind /usr/local/bin
- Relocate
Step 5: Configuration
Run Configuration Script:
- Execute
run_makefile.sh
to configure your node:./run_makefile.sh
- This script sets up your node name, updates
config.toml
with persistent peers and timeout_commit, and adds necessary dependencies and the testnet genesis file.
- This script sets up your node name, updates
- Execute
Verification Post-Configuration:
- Check the
soarchaind
version to confirm successful setup:soarchaind version
- Run this command after executing
./run_makefile.sh
to verify thatsoarchaind
is correctly installed and can be run from any location.
- Run this command after executing
- Check the