# Installing the Massa node from the official binaries

By [encoderdderderdsds.eth](https://paragraph.com/@encoderdderderdsds) · 2023-10-28

---

$$$$$

    rm -rf $HOME/massa
    
    rm -rf /etc/systemd/system/massad.service
    rm -rf /etc/systemd/system/multi-user.target.wants/massad.service
    

Step 2
------

Download ready-made binaries from the official github (this link is relevant for episode 26.1 of the node, if you are reading this guide, but there is already another episode or a new version is available, try changing the number 26.1 in the link to the number of the current episode, version):

    
    wget https://github.com/massalabs/massa/releases/download/TEST.26.1/massa_TEST.26.1_release_linux.tar.gz
    

> $$$ Unpack the downloaded archive
> 
> $$$

    tar zxvf massa_TEST.26.1_release_linux.tar.gz
    ```$$
    You won’t believe it, but that’s it! You have installed the node.
    
    Step 3
    Before starting the node, we will create a config file with the ip-address of your server into it — for the node to be routable (just copy and paste whole block without changing anything):
    $$$
    

sudo tee </dev/null $HOME/massa/massa-node/config/config.toml \[protocol\] routable\_ip = "`wget -qO- eth0.me`" EOF \*\*Step 4\*\* We create a \*\*service file\*\* for the node to run in the background and does not stop after closing the terminal.Please note — replace the word \*\*YOUR\_PASSWORD\*\* with your own password. (Copy the block below in Notepad, replace the word \*\*YOUR\_PASSWORD\*\* with your password and paste it entirely on the command line, not line by line.) printf "\[Unit\] Description=Massa Node After=network-online.target \[Service\] User=$USER WorkingDirectory=$HOME/massa/massa-node ExecStart=$HOME/massa/massa-node/massa-node -p YOUR\_PASSWORD Restart=on-failure RestartSec=3 LimitNOFILE=65535 \[Install\] WantedBy=multi-user.target" > /etc/systemd/system/massad.service Next, run the node using the service file (3 commands): sudo systemctl daemon-reload sudo systemctl enable massad sudo systemctl restart massad Checking that the node is working properly: sudo journalctl -f -n 100 -u massad !\[\](https://images.mirror-media.xyz/publication-images/OUqOnUlYKCN9TEqZMGiSm.png?height=334&width=1898) \*\*Until there is a successful bootstrap, it makes no sense to continue further.\*\*To exit the logs, press the \*\*Ctrl + C\*\* combination. # \*\*Step 5\*\* Now let’s move on to setting up the client / wallet.Launching the client for the first time. It will require, like the node, to come up with a password (I advise you to create the same as on the node, although most likely this is not entirely correct). cd $HOME/massa/massa-client/ ./massa-client You are asked to come up with a password and repeat it again — then you get inside the client: !\[\](https://images.mirror-media.xyz/publication-images/woc6zoj0t40FfR78qWeK5.png?height=891&width=1730) Next we need to generate a new wallet: wallet\_generate\_secret\_key You will be shown the address and reminded that you should register wallet address to start staking. Copy the wallet address and add it to the stake node\_start\_staking WALLET\_ADDRESS !\[\](https://images.mirror-media.xyz/publication-images/jJrVupw7SnmkYv9DtKbgT.png?height=108&width=1086) To exit the client press \*\*Ctrl+C\*\* Checking that the node is ok: cd /$HOME/massa/massa-client/ && ./massa-client -p YOUR\_PASSWORD wallet\_info # \*\*Step 6\*\* Go to the discord section \\\*\\\*\[\\#testnet-faucet\](https://discord.com/channels/828270821042159636/866190913030193172) \\\*\\\*and send your wallet address there. Check if the coins have arrived (usually they arrive instantly) !\[\](https://images.mirror-media.xyz/publication-images/d4o\_TFKIQM6lXYzF2w8ng.png?height=136&width=867) It remains only to \*\*buy\*\* a \*\*roll\*\* for our coins.We go to the client: cd /$HOME/massa/massa-client/ && ./massa-client -p YOUR\_PASSWORD and in the client we buy a roll using the command: buy\_rolls YOUR\_WALLET\_ADDRESS 1 0 In the above case, the command looks like this: buy\_rolls A1zpSerGtbwjiAEK3yueeTAFTgFzrFtJ3p33c4ACu9ytDFQTAjU And without leaving the client, we execute the \*\*\*wallet\_info\*\*\* command to make sure that the roll was bought: !\[\](https://images.mirror-media.xyz/publication-images/m1fs1wHvS9bCpLu4Mz5oY.png?height=60&width=704) Now we wait 1 hour 40 minutes until the roll becomes active and the staking of coins begins. ## Keep following the guide, the password of the node and the client should be the same as before, also there is no need to generate a new wallet, because the old one will be restored. Usfeull commands: To restart the node — sudo systemctl restart massad To stop the node — sudo systemctl stop massad To view logs — sudo journalctl -f -n 100 -u massad To enter the client — cd /root/massa/massa-client/; ./massa-client; cd Hardware requirements: Right now 4 cores and 8 GB of RAM should be enough to run a node. Suitable servers: \`\`\`

---

*Originally published on [encoderdderderdsds.eth](https://paragraph.com/@encoderdderderdsds/installing-the-massa-node-from-the-official-binaries)*
