Here is a script for Ubuntu 20.04 that you can download and run for quick setup. It has been tested to run on new ubuntu 20.04 installations. It will do all commands for you that are below and then execute the GUI. From the terminal follow these two commands: (If you prefer to set up HYDRA manually proceed to Step 1 instead.)
wget -O - https://raw.githubusercontent.com/meshungina/hydra/main/install-run-gui-wallet.20.04.sh | bash
Since Bitcoin PPA repository does not have a Release for Focal Fossa yet, we will need to do a few extra things.
First, make the command to update your system:
sudo apt update
And now let’s upgrade if you have packages to be upgraded:
sudo apt upgrade -y
Now let’s install the required packages.
sudo apt install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git cmake libboost-all-dev libgmp3-dev libzmq3-dev
sudo apt install software-properties-common
Let’s compile! First let’s make a folder to compile the leveldb.
First let’s return to our home folder:
Now create a new folder:
Enter to the folder and get the source of leveldb:
cd devwget -N http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
Now we’ll decompress:
tar -xvf db-4.8.30.NC.tar.gz
If you try to compile now you’ll get an error. Let’s bypass the bug:
sed -i s/__atomic_compare_exchange/__atomic_compare_exchange_db/g db-4.8.30.NC/dbinc/atomic.h
Now let’s enter to the folder, create a build folder, and configure everything to compile:
cd db-4.8.30.NC/build_unixmkdir -p buildBDB_PREFIX=/usr/local../dist/configure --enable-cxx --prefix=$BDB_PREFIX
After these commands lets make and install the leveldb 4.8:
makesudo make install
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler qrencode
You’re now ready to continue to STEP 2 below.
Here is a script for Ubuntu 18.04 that you can download and run for quick setup. It has been tested to run on new ubuntu 18.04 installations. It will do all the below commands for you, and then execute the GUI. From the terminal do these two commands: (If you prefer manual installation you can skip this part.)
wget -O - https://raw.githubusercontent.com/meshungina/hydra/main/install-run-gui-wallet.18.04.sh | bash
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git cmake libboost-all-dev libgmp3-devsudo apt-get install software-properties-commonsudo add-apt-repository ppa:bitcoin/bitcoinsudo apt-get updatesudo apt upgradesudo apt-get install libdb4.8-dev libdb4.8++-devsudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler qrencode
Select the latest wallet version from the link below:
Here you will find wallets for different types of operating systems. You will need to download the right one for your device. Please differentiate among the following builds:
Create a directory called Hydra and place the zipped file in it:
mkdir ~/Hydracd ~/Hydra
wget -N https://github.com/Hydra-Chain/node/releases/download/hydra_v0.18.5.1/hydra-0.18.5.1-ubuntu20.04-x86_64-gnu.zip
wget -N https://github.com/Hydra-Chain/node/releases/download/hydra_v0.18.5.1/hydra-0.18.5.1-ubuntu18.04-x86_64-gnu.zip
wget -N https://github.com/Hydra-Chain/node/releases/download/hydra_v0.18.5.1/hydra-0.18.5.1-aarch64-linux-gnu.zip
Unzip the Hydra build. It will unzip to
unzip -o hydra-0.18.5.1-ubuntu20.04-x86_64-gnu.zip
~/.hydra folder then and copy the hydra.conf from the current directory into it.
mkdir ~/.hydracp ~/Hydra/hydra.conf ~/.hydra
You can now navigate back to where the Hydra binaries are to initialize them:
The Hydra binaries will then be in
~/Hydra/bin/ where you can cd into with
Either run the command-line Hydra daemon (omit '-testnet' if you want to connect to mainnet):
./hydrad -daemon -testnet
and call the Hydra daemon using (omit '-testnet' if you are connected to mainnet):
./hydra-cli -testnet getinfo
Or you can run the Hydra GUI (omit '-testnet' if you want to connect to mainnet):
The node runs on port TCP 1334 for the Hydra testnet and port TCP 3338 for the mainnet. You may need to open the port on your router and operating system. By default Ubuntu comes with UFW firewall but it is inactive so all ports will be open. To activate the firewall and open these ports type '
sudo ufw allow 1334' and '
sudo ufw allow 3338' and then enable the firewall with '
sudo ufw enable'. If you are using SSH to connect to your server you will need to open that port as well as any other ports you need access to. If you are using a home router you will need to find out the ip address of your computer and then adjust port forwarding on your router to allow these ports. A simple way to find out your IP is by installing net-tools with '
sudo apt-get install net-tools' Once installed type
ifconfig and your IP should be displayed so you can add it to your router's port forwarding page.
The Webwallet can be found at: https://webwallet.hydrachain.org/
The Testnet Explorer can be viewed at: https://testexplorer.hydrachain.org/
The Testnet Faucet is at: https://faucet.hydrachain.org/
The Mainnet Explorer can be viewed at: https://explorer.hydachain.org/