create account

Build your own XTZ Tezos Node for mainnet by melea

View this thread on: hive.blogpeakd.comecency.com
· @melea · (edited)
$0.13
Build your own XTZ Tezos Node for mainnet
Hello Crypto people! 
![Screenshot from 2018-09-23 23-31-22.png](https://cdn.steemitimages.com/DQmRYMuPGSgwvB4LuGjfrjnusecpJGPdRsTuDSx9Ph5zKBe/Screenshot%20from%202018-09-23%2023-31-22.png)


![tezos.png](https://cdn.steemitimages.com/DQmbgdsEmNcRnNdhWUcW6BaM9GPBkxSMRtNdW3zggjUN7Sy/tezos.png)


![Screenshot from 2018-09-23 23-02-43.png](https://cdn.steemitimages.com/DQmayRXGsBpbrABiRrV9UfpHQ6pDpan3DptHSBnaL4z3eFX/Screenshot%20from%202018-09-23%2023-02-43.png)

Today Tuto Guide; How to Build your own Tezos Node for the active mainnet.


![Lego-Build-1.jpg](https://cdn.steemitimages.com/DQmeW5c2xb4BXXFQu7HoSnVB2DyMwJQRkbzPhDEW2asR3Cd/Lego-Build-1.jpg)

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

![Screenshot from 2018-09-23 21-40-22.png](https://cdn.steemitimages.com/DQmcv3MG4VhXx8PxYwdkSs5Fp8XdgrjAk6BcH66duQgoCZN/Screenshot%20from%202018-09-23%2021-40-22.png)

For safe the file 
    ESC
    :wq!


    service ssh restart

Now ....

![Screenshot from 2018-09-23 22-06-28.png](https://cdn.steemitimages.com/DQmNksFuAViDRa7qLXrzXKraZSQNQzt2BZwmWbU7o6vvkqL/Screenshot%20from%202018-09-23%2022-06-28.png)
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

![Screenshot from 2018-09-23 22-05-37.png](https://cdn.steemitimages.com/DQmVEnC1wZnHsH7461JwAaLtNfphVCtRGULjMBVLfEzBUxf/Screenshot%20from%202018-09-23%2022-05-37.png)
    

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


![Screenshot from 2018-09-23 22-18-06.png](https://cdn.steemitimages.com/DQmSg3u5hC2GTY93mFyAzKrHth1jJx2Fyx6Mm6FhcbUcrp9/Screenshot%20from%202018-09-23%2022-18-06.png)

Yes and Yes

![Screenshot from 2018-09-23 22-19-25.png](https://cdn.steemitimages.com/DQmf4zL2kFJRaRVT69HpzDy8JeqjpbBrMFjTetqdiLNKiQT/Screenshot%20from%202018-09-23%2022-19-25.png)

    eval $(opam env)

    git clone -b mainnet https://gitlab.com/tezos/tezos.git

    cd tezos

    make build-deps

![Screenshot from 2018-09-23 22-20-57.png](https://cdn.steemitimages.com/DQmfXQu79g84pFXGP2pk6MHuLZd6iCfgyH1AZLvjjCyne3h/Screenshot%20from%202018-09-23%2022-20-57.png)

    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.

![Screenshot from 2018-09-23 22-23-54.png](https://cdn.steemitimages.com/DQmXf6bdMHXEHn5KY41jJuYAJAmGhDp1jY8WvYciUS9VZEm/Screenshot%20from%202018-09-23%2022-23-54.png)

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 

![Screenshot from 2018-09-23 17-12-15.png](https://cdn.steemitimages.com/DQmPRyEGH2hcP9iBaA8aE6QxL51G2hbu8QoSGCmYmWh4EJt/Screenshot%20from%202018-09-23%2017-12-15.png)


CRTL+A+C (new screen)
CRTL+A+N (switch between  screens)

In the new screen

   ./tezos-client get timestamp

![Screenshot from 2018-09-23 22-28-11.png](https://cdn.steemitimages.com/DQmQtoLQCUzx94CzB1J4A1J4aroGf6sJjG22JDLvp3daKmy/Screenshot%20from%202018-09-23%2022-28-11.png)

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

![Screenshot from 2018-09-23 20-54-31.png](https://cdn.steemitimages.com/DQmaNtyLHwvdA6jvS6GyjpTYfSzidAFvzF7emgkemFFDXXW/Screenshot%20from%202018-09-23%2020-54-31.png)

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.

![Screenshot from 2018-09-23 23-00-59.png](https://cdn.steemitimages.com/DQmTJVdYF2PoTy7XfM8kmUU9PxtAzUH2mjJB73E7jw9DwCX/Screenshot%20from%202018-09-23%2023-00-59.png)

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

![Screenshot from 2018-09-23 22-51-14.png](https://cdn.steemitimages.com/DQmbpqKczJ59AfrXnUf3hyjVbhUkzD2Y87TKGPfyvLb2jv4/Screenshot%20from%202018-09-23%2022-51-14.png)


![Murcielago.jpg](https://cdn.steemitimages.com/DQmZ3r3QKq1n4AnaFmZagYqPyaeALoPhm31CRzxTsHbDAim/Murcielago.jpg)

https://meleatrust.com/
https://twitter.com/cryptoMelea
👍  , , , , , ,
properties (23)
authormelea
permlinkbuild-your-own-xtz-tezos-node-for-mainnet
categorytezos
json_metadata{"tags":["tezos","validator","blockchain","xtz"],"image":["https://cdn.steemitimages.com/DQmRYMuPGSgwvB4LuGjfrjnusecpJGPdRsTuDSx9Ph5zKBe/Screenshot%20from%202018-09-23%2023-31-22.png","https://cdn.steemitimages.com/DQmbgdsEmNcRnNdhWUcW6BaM9GPBkxSMRtNdW3zggjUN7Sy/tezos.png","https://cdn.steemitimages.com/DQmayRXGsBpbrABiRrV9UfpHQ6pDpan3DptHSBnaL4z3eFX/Screenshot%20from%202018-09-23%2023-02-43.png","https://cdn.steemitimages.com/DQmeW5c2xb4BXXFQu7HoSnVB2DyMwJQRkbzPhDEW2asR3Cd/Lego-Build-1.jpg","https://cdn.steemitimages.com/DQmcv3MG4VhXx8PxYwdkSs5Fp8XdgrjAk6BcH66duQgoCZN/Screenshot%20from%202018-09-23%2021-40-22.png","https://cdn.steemitimages.com/DQmNksFuAViDRa7qLXrzXKraZSQNQzt2BZwmWbU7o6vvkqL/Screenshot%20from%202018-09-23%2022-06-28.png","https://cdn.steemitimages.com/DQmVEnC1wZnHsH7461JwAaLtNfphVCtRGULjMBVLfEzBUxf/Screenshot%20from%202018-09-23%2022-05-37.png","https://cdn.steemitimages.com/DQmSg3u5hC2GTY93mFyAzKrHth1jJx2Fyx6Mm6FhcbUcrp9/Screenshot%20from%202018-09-23%2022-18-06.png","https://cdn.steemitimages.com/DQmf4zL2kFJRaRVT69HpzDy8JeqjpbBrMFjTetqdiLNKiQT/Screenshot%20from%202018-09-23%2022-19-25.png","https://cdn.steemitimages.com/DQmfXQu79g84pFXGP2pk6MHuLZd6iCfgyH1AZLvjjCyne3h/Screenshot%20from%202018-09-23%2022-20-57.png","https://cdn.steemitimages.com/DQmXf6bdMHXEHn5KY41jJuYAJAmGhDp1jY8WvYciUS9VZEm/Screenshot%20from%202018-09-23%2022-23-54.png","https://cdn.steemitimages.com/DQmPRyEGH2hcP9iBaA8aE6QxL51G2hbu8QoSGCmYmWh4EJt/Screenshot%20from%202018-09-23%2017-12-15.png","https://cdn.steemitimages.com/DQmQtoLQCUzx94CzB1J4A1J4aroGf6sJjG22JDLvp3daKmy/Screenshot%20from%202018-09-23%2022-28-11.png","https://cdn.steemitimages.com/DQmaNtyLHwvdA6jvS6GyjpTYfSzidAFvzF7emgkemFFDXXW/Screenshot%20from%202018-09-23%2020-54-31.png","https://cdn.steemitimages.com/DQmTJVdYF2PoTy7XfM8kmUU9PxtAzUH2mjJB73E7jw9DwCX/Screenshot%20from%202018-09-23%2023-00-59.png","https://cdn.steemitimages.com/DQmbpqKczJ59AfrXnUf3hyjVbhUkzD2Y87TKGPfyvLb2jv4/Screenshot%20from%202018-09-23%2022-51-14.png","https://cdn.steemitimages.com/DQmZ3r3QKq1n4AnaFmZagYqPyaeALoPhm31CRzxTsHbDAim/Murcielago.jpg"],"links":["http://tezos.gitlab.io/mainnet/introduction/howtouse.html","https://twitter.com/tezos","https://tezos.rocks/","https://twitter.com/TezBox_Wallet","https://meleatrust.com/","https://twitter.com/cryptoMelea"],"app":"steemit/0.1","format":"markdown"}
created2018-09-23 21:34:24
last_update2018-09-24 13:32:03
depth0
children1
last_payout2018-09-30 21:34:24
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.029 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,769
author_reputation368,798,565,353
root_title"Build your own XTZ Tezos Node for mainnet"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id72,068,699
net_rshares93,842,428,809
author_curate_reward""
vote details (7)
@steemitboard ·
Congratulations @melea! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/posts.png)](http://steemitboard.com/@melea) Award for the number of posts published
[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@melea) Award for the number of upvotes received

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-melea-20180924t211710000z
categorytezos
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-09-24 21:17:09
last_update2018-09-24 21:17:09
depth1
children0
last_payout2018-10-01 21:17:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length885
author_reputation38,975,615,169,260
root_title"Build your own XTZ Tezos Node for mainnet"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id72,164,392
net_rshares0