Client Installation
Local or Cloud
The Hash Ahead client runs on consumer-grade computers and does not require any specialized hardware, such as mining rigs. Therefore, you can choose a variety of node deployment schemes according to your needs. In short, we consider running nodes on local physical computers and servers in the cloud:
The Cloud
The service provider provides highly available servers with static public IP addresses
Getting a dedicated or virtual server is easier than building your own
The trade-off is: Do you need to trust the third party of the cloud service provider
Renting a server can be expensive due to the size of storage required for a full node
Own hardware
More credible and more proactive
Only one-time investment
Pre-configured machines can be purchased
You will have to prepare, maintain, and potentially troubleshoot machines and networks yourself
Configuration Environment
You can install and set up a development environment on a computer running 64-bit Linux.
Before installing and setting up a development environment on a Linux machine, make sure your computer meets the following basic requirements:
Minimum Requirements {#minimum-requirements}
CPU with more than 2 cores
4 GB RAM
500GB free hard drive space
10 MB/s or more bandwidth
Recommended Specifications {#recommended-hardware}
Fast CPU with 4+ cores
8GB or more memory
1TB or more high-speed solid-state hard drive
20 MB/s or more bandwidth
Install
The following packages are the development tools and dependencies required to compile and run the HAH node.
g++: GNU C++ compiler for compiling C++ code.
libboost-all-dev: Development files for the Boost C++ library, providing many useful C++ tools and libraries.
openssl: Cryptographic library for secure communication.
libreadline-dev: A library for command-line interaction, providing command-line editing and history functions.
pkg-config: A tool for retrieving metadata and compilation options for installed packages.
libncurses5-dev: A library for working with text interfaces in the terminal.
autoconf: A tool for generating Makefiles.
Install required libraries for environment configuration
Open a computer terminal and enter the following command:
ubuntu16.04
ubuntu18.04
Install CMake
Install gcc
Install libsodium
Install Protocol Buffers
Download the client code and compile
Clone the HashAhead code repository from Github, enter the hashahead directory, and execute the INSTALL.sh script to install the HashAhead node. Among them, the INSTALL.sh script will automatically perform operations such as dependency installation and compilation according to the system environment to complete the installation and configuration of the node.
So far, the Hash Ahead client has been installed, and the next step is to install and compile the node
Configure Node
The following code is to create a ~/.hashahead directory, create a hashhead.conf configuration file in this directory, and use vim to edit the file. Among other things, the file defines the following:
You can also configure the node by creating a new hashhead.conf file, refer to the running node
Last updated