æternity TestNet: Installation and Mining
Published in
3 min readApr 12, 2017
An easy guide on how to run the fast æternity TestNet node on UBUNTU.
Welcome to this comprehensive guide on how to run a node and mine on the æternity testnet!
There are just 10 steps to start mining.
- First, it is fundamental that we make sure our system is up to date.
- We can do this by using a system console (terminal) [CTRL+ALT+T]
Please use the following commands: update [sudo apt-get update] and upgrade [sudo apt-get upgrade]
(you will be asked for a root password) - Following, you may be asked for confirmation to download packages, if so, type “y” and press ENTER
- With the following line all node dependencies will be installed:
[sudo apt-get install erlang libncurses5-dev libssl-dev unixodbc-dev g++ git erlang-base-hipe]
(Those are programs and libraries the node needs previously installed to work properly) - With the next line, we will auto-download all node files on our computer:
[git clone https://github.com/aeternity/testnet.git] - The installation process can be continued for these downloaded files. (to install the node)
First, we need to navigate to the folder, using:
[cd home/YOUR_USER/testnet]. - Now we can install the node in the next line:
[sh install.sh] - Once installed, we just run it:
[sh start.sh] - Next, we can start passing commands to the node. A very interesting one, is mining:
[mine:start().] - After a while It will start showing mining data
If you start mining as above, the system automatically creates a new address for revenue deposits.
Now we’ll see how can we manually create an address with a safe password before mining starts.
- After step 8, we can start with the address creation process with the command:
[keys:new(“YOUR_PSSWRD”).] - Since a new password was created for the address, we can find the address itself. For it we use:
[keys:address().] - We should save it now, so it can be sent to anybody who wants, or can transfer some balance to us. The address is something like that: (only the characters between double quotes)
<<“GNRgATLx9DsJJUWpDE”>> - Now. To start mining process, we have to unlock the address keys. We can do it by using:
[keys:unlock(“YOUR_PSSWRD”).] - We can start mining to our new address just as before with:
[mine:start().] - Before the system starts finding new blocks again, we can check our account balance. It will be empty!
Mining might take some minutes to find blocks.
However if it takes too long, we can check if it’s actually running and mining with:
[mine:is_on().] - This is a way to ask to the node if is mining. If it answers GO; Then it’s mining.
- Once your system found their first block, it might have some balance on its address. You can find out again with command:
[easy:balance().] - If you want to stop the mining process, you just have to use:
[mine:stop().] - We can also change the address password (the one we created before).
For it, we need to use:
[keys:change_password(“CURRENT_PSWRD”, “NEW_PSWRD”)]
Remember, every line should be used without square brackets.
Wasn’t hard at all, was it? Now have fun mining and tell us, how things are going.