Build your own XTZ Tezos Node for mainnet
Hello Crypto people!
Today Tuto Guide; How to Build your own Tezos Node for the active mainnet.
Server Ubuntu 18.04 (2Cores)(8Ram)(120SSD)
ssh root@IP-SERVER
screen -S update
apt update
apt upgrade
apt-get install build-essential
apt-get install -y patch unzip make gcc m4 git g++ aspcud bubblewrap curl bzip2 rsync libev-dev libgmp-dev pkg-config libhidapi-dev
dpkg-reconfigure locales
select (ALL) + (en_US.UTF-8)
Meanwhile is working
CRTL+A+D
passwd
(New-Secure-Password-ROOT)
Add a new user for the Tezos node
useradd -m -g users -G sudo -s /bin/bash tacoalfa
passwd tacoalfa
(New-Secure-Password-tacoalfa)
Disable root login SSH and change the port 22
vi /etc/ssh/sshd_config
( i ) for can write the file
Delete # and 22 port, and Root login not.
like the pic
For safe the file
ESC
:wq!
service ssh restart
Now ....
Setup Firewall for preventing easy hacker access
ufw status
Status: inactive
ufw default allow outgoing
ufw default deny incoming
ufw default allow 56666
ufw default allow 9732
ufw enable
ufw status
Back to screen and see if the update is finished and exit the screen.
screen -r
exit
If need restarts the server or just close the ssh session.
reboot now
After 2 minutes or so connect again to the server new user new port.
ssh -p 56666 tacoalfa@IP-SERVER
Now let's Install Tezos
Opam install
wget https://github.com/ocaml/opam/releases/download/2.0.0-rc4/opam-2.0.0-rc4-x86_64-linux
sudo mv opam-2.0.0-rc4-x86_64-linux /usr/local/bin/opam
sudo chmod a+x /usr/local/bin/opam
opam init --compiler=4.06.1
Yes and Yes
eval $(opam env)
git clone -b mainnet https://gitlab.com/tezos/tezos.git
cd tezos
make build-deps
YES
eval $(opam env)
make
./tezos-node identity generate 26.
Generating a new identity... (level: 26.00)
Tezos is finally installed and ready for the run.
Open new screen for run Tezos node.
screen -S mytezosnode
./tezos-node run --rpc-addr 127.0.0.1:8732 --connections 10
Now the node start to sync the Blockchain from the scratch
CRTL+A+C (new screen)
CRTL+A+N (switch between screens)
In the new screen
./tezos-client get timestamp
Last block sync in your node is
2018-09-23T20:26:40Z
when the node is synced the screen with the logs like the pic
Now can exit the screen session (CRTL + A + D) and back other time ( screen -r), the service is running meanwhile close ssh or lost the connections to the server. Remember for switch between screens (CRTL+A+N)
Well here ok? Congratulations the Tezos node its alive!
Now just relax, XTZ moon is coming.
Tezos links
http://tezos.gitlab.io/mainnet/introduction/howtouse.html
https://twitter.com/tezos
Util links
https://tezos.rocks/
Wallet
https://twitter.com/TezBox_Wallet
If this was usefull , Tezos tips here ;)
tz1WbppWNNPeNRgR99ZaBCH4fis2yGDe1Vs5
Congratulations @melea! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Award for the number of posts published
Award for the number of upvotes received
Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!