Skip to main content

Installing and running BPX full node on Debian / Ubuntu

  1. Check latest versions of BPX Execution Client and Beacon Client. Log in as root. DownloadUse bothwget to download the DEB packages byfor followingthe commands.latest releases of the Execution Client and Beacon Client. Replace X.X.X towith the latest versions tags.
wget "https://github.com/bpx-chain/bpx-execution-client/releases/download/X.X.X/bpx-execution-client_X.X.X+stable_amd64.deb"
wget "https://github.com/bpx-chain/bpx-beacon-client/releases/download/X.X.X/bpx-beacon-client-cli_X.X.X-1_amd64.deb"

node-debian1.png

2. Install executionboth client and beacon client.packages. Replace X.X.X towith latestthe downloaded versions tags.

dpkg -i bpx-execution-client_X.X.X+stable_amd64.deb bpx-beacon-client-cli_X.X.X-1_amd64.deb

node-debian2.png

3. Create a new user account for BPX servicesChain services.

adduser bpxchain

CreateSet anya password.password for the new account. You can skipleave enteringthe additional information aboutfields the user by pressing Enter each time. Answer "Y" when asked if the information is correct.empty.

node-debian3.png

4. Switch to the newly created accountaccount.

su - bpxchain

5. Initialize the Beacon Client configurationconfiguration.

bpx init

node-debian4.png

6. Press Control + D to log out and return to the root console.

7. Create a configuration file for the executionBPX clientExecution Client systemd service descriptorusing fileany usingtext editor, for example nano editor:

nano /etc/systemd/system/bpx-execution.service

Insert the following file content:

[Unit]
Description=BPX Execution Client

[Service]
Type=simple
User=bpxchain
ExecStart=bpx-geth --http
Restart=always

[Install]
WantedBy=multi-user.target

Save the file by pressing Control + O and close the editor with Control + X.

8. CreateFollow the beaconsame clientprocedure serviceto descriptorcreate file:a configuration file for the Beacon Client service:

nano /etc/systemd/system/bpx-beacon.service

Insert the following file content:

[Unit]
Description=BPX Beacon Client

[Service]
Type=forking
User=bpxchain
ExecStart=bpx start beacon
ExecStop=bpx stop -d all
Restart=always

[Install]
WantedBy=multi-user.target

Save9. Reload the fileconfiguration and closefor the editor.

new

9.system Refresh startup services configurationservices.

systemctl daemon-reload

10. ActivateEnable automatic startup of the BPX servicesChain services.

systemctl enable bpx-execution
systemctl enable bpx-beacon

11. LaunchStart both servicesservices.

systemctl start bpx-execution
systemctl start bpx-beacon

node-debian5.png

12. Your full node ishas alreadyjust workingstarted and configuredwill tobegin automaticallythe startinitial onsynchronization systemof boot.the blockchain. This process may take several hours or even days. Use the commandsfollowing belowcommand to watch the initial sync status (it will refresh every 10 seconds).status.

su - bpxchain
watch -n 10 bpx show -s

node-debian6.png

13.

After
a
few
hours or days, the initial sync should complete.