The Ambassadors
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Symbol Node Run Guide (Mac OS, Linux) [![hackmd-github-sync-badge](https://hackmd.io/Eq-MLx0EQ-OtO-ynDgEbxg/badge)](https://hackmd.io/Eq-MLx0EQ-OtO-ynDgEbxg) # ![](https://i.imgur.com/cy01Aci.jpg) Guide prepared by [@klimgeran](https://twitter.com/GeranKlim) Donate XYM: ##### NA4VOOQBORIWLTVHQOX43EZY2N3TUNLJ4SORKPA [NIS2.host](https://symbol-tools.com/symbolTools/view/tool/nodeDetails.html?inputHostName=nis2.host) _____ Be sure to check out another guide that is more suitable for Windows users. Guide author[CB](http://xym.farm/): More details 👉 [HERE](https://github.com/symbol/xymbassadors/blob/main/Ultimate_Symbol_Node_Guide.md) ______ This manual will guide you through the process of setting up and connecting to the public SYMBOL network. Nodes can function with different sets of components depending on your needs. The SYMBOL mainnet nodes are currently distributed in several forms: 1) Peer node 2) API node 3) Dual node and voting node Minimum Requirements: | Requirement|Peer node | API node |Dual&Vot node| | -------- | --------| -------- |-------- | | CPU| 2 cores | 4 cores |4 cores | | RAM| 8GB | 16 GB |16GB | | Disk size | 500 GB | 750 GB |750 GB | | Disk speed| 1500 IOPS SSD | 1500 IOPS SSD |1500 IOPS SSD| https://docs.symbolplatform.com/guides/network/running-a-symbol-node.html **To run our Symbol node, we can use Beget virtual hosting:** ![Beget](https://i.imgur.com/qdgmecq.png) Next, choose the minimum “Strong” tariff plan, or you can choose the "Powerful" tariff, although the “Strong” tariff plan should be enough for you. Make the following settings as shown below: ![Beget2](https://i.imgur.com/BURn9eB.png) * Build: “Strong” * OS: Centos 8 * Additional software: LAMP * Create username and hosting name * Create a password You can choose other root vps for example: https://www.netcup.eu/vserver. First, select the root server, confirm the data, go through the registration process, wait for a letter from netcup, verify your personal data. We get a new password from https://www.servercontrolpanel.de/ We go to your personal account and open the section: ![1](https://i.imgur.com/Mx2isHY.png) Next, move on to installing # centos 8 (core) - minimal ![2](https://i.imgur.com/lAwelUV.png) ![3](https://i.imgur.com/fcSOQJp.png) Save your new root password and system data![4] (https://i.imgur.com/j074kaL.png) Preliminary steps for setting up hosting were shown here. Installation Cent OS 8.x (64 bit)on VPS server https://contabo.com/ is as follows: ![](https://i.imgur.com/15zaKZj.png) Each hosting has its own settings, but this article showed the basic principle of how to properly set up your hosting. So that you can run your Symbol node on your hosting! **Run the Symbol node via the terminal** You need to follow this tutorial to get your Symbol node up and running. Working in the terminal is pretty simple: Open the terminal: **ssh root@44.132.44.88** **ssh root@(Your hosting ip)** ![](https://i.imgur.com/H5WMkpn.png) Root password, you should have received your password to your email. **Use the following command to create a symbolnode user account:** `adduser symbolnode` **Set a password for your user account (Symbol node) using the following command:** ``` passwd symbolnode ``` `[enter new password twice]` Add the user to the sudo-enabled user group (we'll need the sudo command to install later) and switch to the symbolnode user account: ``` usermod -aG wheel symbolnode ``` ``` su - symbolnode ``` **Set environment requirements** Install and configure docker with the following commands: (Copy all these commands at once and paste into terminal) ``` sudo yum install -y yum-utils sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io -y sudo usermod -aG docker symbolnode sudo systemctl start docker sudo systemctl enable docker ``` **Install docker-compose using the following commands:** (Copy all these commands at once and paste into terminal) ``` sudo yum install -y yum-utils sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io -y sudo usermod -aG docker symbolnode sudo systemctl start docker sudo systemctl enable docker ``` **Install docker-compose using the following commands:** (Copy all these commands at once and paste into terminal) ``` sudo dnf install curl sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose ``` **Install node.js using the following commands:** `sudo dnf module list nodejs` ``` sudo dnf install nodejs -y ``` **Install VIM with the following command:** ``` sudo yum install vim-enhanced -y ``` (To test the work of docker, since docker is a platform for developing, delivering and running containerized applications) Enter the command: ``` docker run hello-world ``` You should see the following message in the terminal: ![5](https://i.imgur.com/z10AGtp.png) After that, we need to restart the Symbol node server and log in with the symbolnode account we created earlier. **Use this command to reboot the server:** ``` sudo reboot ``` Then again, after restarting the server, open the command line (terminal) and go to your Symbol node: **ssh symbolnode@’your_ip’** (Example: ssh symbolnode@45.141.78.132) Enter the password you created earlier. You can copy the password using Command + C and paste into the command line (terminal) using Command + V. **Verify environment requirements** To verify that the installation of the environment was successful, we can run the following commands: **For docker, run:** ``` docker run hello-world ``` The result should be similar to: Hello from Docker! This message shows that your installation appears to be working correctly. [...] For more examples and ideas, visit: https://docs.docker.com/get-started/ **For docker-compose, run (Use the command)**: ``` docker-compose version ``` The result should be similar to the example below: docker-compose version 1.28.5, build c4eb3a1f docker-py version: 4.4.4 CPython version: 3.7.10 OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019 To check the version of node.js run the command: ``` node --version ``` The result should be similar to the example below: v10.24.0 Once you've verified the installation, you can proceed with the installation of symbol-bootstrap. **Install and configure symbol-bootstrap** Use the following command to install symbol-bootstrap: ``` sudo npm install -g symbol-bootstrap ``` You should see the following in the terminal: ![7](https://i.imgur.com/cg5Jfcl.png) Before we will run node Symbol, we will create a custom configuration file custom.yml with VIM. To do this, run the command: ``` nano custom.yml ``` **The custom file should look like this:** ``` nodes: - friendlyName: 'NameOfYourNode' host: IP beneficiaryAddress: YourNEMAccount ``` For example: ``` maxUnlockedAccounts: 100 nodes: - friendlyName: ’SymbolNodeTest’ host: 45.141.78.132 beneficiaryAddress: NFAX7GXDQA7IZRDEVVVZMDJGY5OLWNJVK7AFVUI minFeeMultiplier: 10 transactionSelectionStrategy: oldest ``` ![8](https://i.imgur.com/QGbVZ4j.png) When you're done editing, press CTRL + O to commit the new changes to your custm.yml file and press ENTER. CTRL + X to exit the file. Or perhaps: Press ESC, then write the command: wq Note: (edit your custom.yml config file) symbol-bootstrap stop vim custom.yml (Open file) Select you want to overwrite: R i (modify file) Next, we can start the node: ``` symbol-bootstrap start -p mainnet -a dual -c custom.yml ``` ``` Create a password ``` ![9](https://i.imgur.com/9Xmbkjs.png) We need to wait 1 minute and the node will start, then we stop our node using the command in the terminal ctrl + c ![10](https://i.imgur.com/NFLcIRx.png) **After the Symbol node has stopped, write the command:** `symbol-bootstrap decrypt --source target/addresses.yml --destination plain-addresses.yml` ![11](https://i.imgur.com/2PcNMPS.png) **We enter this command** ``` vim plain-addresses.yml ``` (Save all data, addresses, private, public keys) **Then enter the command to exit** ``` :q ``` **Enter another command (to remove custom.yml)** ``` symbol-bootstrap start -p mainnet -a dual -c custom.yml -d ``` **Checking the system** ``` symbol-bootstrap healthCheck ``` ![12](https://i.imgur.com/CyPOpz3.png) Run a node: `symbol-bootstrap start -p mainnet -a dual -c custom.yml` Сhecking the node in the browser: `http://yourip:3000/node/info` _________________________ **Obtaining the private key of the main address of your Symbol node and adding the private key to your Symbol Wallet** To send a transaction from the address of the main Symbol node, you need a private key. If you don't have it, you can get it by connecting to your server with your username symbolnode and using the following commands: We need to write this command in the terminal: `symbol-bootstrap decrypt --source target/addresses.yml --destination plain-addresses.yml` Next, enter the following command: *vim plain-addresses.yml* Now you need to import your private key into your Symbol wallet so that you can log into your Symbol node account through the Symbol Wallet. 1) Sign in to your Symbol wallet using your Symbol profile. 2) Go to accounts 3) Click "+ Add Account" ![](https://i.imgur.com/JXCmJwi.png) 4) Select the type of account: I want to import the private key ![](https://i.imgur.com/rxkip3L.png) 5) Come up with a name for your account, enter the private key and password for your Symbol wallet and click "Confirm". Your node main account will be displayed in the Accounts section. # **Update custom.yml file:** **Stop node to update settings** (edit your custom.yml config file) 1) `symbol-bootstrap stop` 2) `vim custom.yml`(Open file) Select you want to overwrite: i (change file) - exit `:wq` We need to update the node: 3) `symbol-bootstrap start -p mainnet -a dual -c custom.yml --upgrade -d` 4) Checking the node: ``` symbol-bootstrap healthCheck ``` # Use the following commands to update the symbol-bootstrap node on Centos8: 1) `symbol-bootstrap stop` 2) `cp -r target targetbackup` 3) `sudo npm install -g symbol-bootstrap` 4) `symbol-bootstrap start -p mainnet -a dual -c custom.yml --upgrade -d` 5) Version check: `symbol-bootstrap --help` 6) If the update was successful, delete the backup using the command: `rm -r targetbackup` _________ # How to create HTTPS protocol for your node 1) `symbol-bootstrap stop` - Stop your node with this command 2) `vim custom.yml`(Open file) Select you want to overwrite: i (change file) - exit `:wq` Add the following command to get automatic https certificate: ``` 3) httpsProxies: - excludeDockerService: false ``` Bootstrap can also take care of obtaining the necessary SSL certificates through the public and free Let’s Encrypt service. https://twitter.com/GeranKlim/status/1459867514238738437 4) `symbol-bootstrap start -p mainnet -a dual -c custom.yml --upgrade -d` - This command starts a node with updates settings. All done ✅ > P.S: Remember to open ports 3001 and 80 in your firewall or security group. Port 3000 may or may not be closed. Port 80 is needed by Let’s Encrypt. # A useful command that allows you to understand what is happening with your node First you need to stop the node ``` symbol-bootstrap stop ``` Then run the following command ``` docker ps -a ``` ![](https://i.imgur.com/kETiwHB.png) # Node SSL certificate renewal If your node's SSL certificate is about to expire, you need to renew the SSL certificate. A node certificate expires approximately one year (375 days) after it was created. If this is not done, then your Symbol node will stop working. ![](https://i.imgur.com/XF4pnFl.png) - Login to your node via CLI terminal: `ssh symbolnode@xxx.xx.xxx.xxx` Checking node status and SSL certificate: `symbol-bootstrap -v` 1) Stop your Symbol node: `symbol-bootstrap stop` 2) Make a backup: `cp -r target targetbackup` > The Symbol node does not need to be stopped to renew the certificate, use the commands below to renew the certificate. 🟡 30 days before the symbol node's SSL certificate expires, it will be possible to renew using a command. 3) `symbol-bootstrap renewCertificates` 🟢 If the SSL certificate is expiring in a few months but you still want to renew your node certificate use this command. 4) `symbol-bootstrap renewCertificates --force` 5) Run your node: `symbol-bootstrap start -p mainnet -a dual -c custom.yml -d` 👏 Congratulations, your SSL certificate has been updated. ![](https://i.imgur.com/pwsnLkX.png) P.S: Additional command from [cryptoBeliever](https://twitter.com/cryptoBeliever_) to check the expiration of the SSL certificate: `echo | openssl s_client -showcerts -servername http://nis2.host -connect http://nis2.host:7900 2>/dev/null | openssl x509 -inform pem -noout -text` Replace `nis2.host` with your node. https://twitter.com/GeranKlim/status/1496563089978048512 - The node operator can check the SSL certificate expiration information on this site: [https://symbol-tools.com/symbolTools/view/tool/nodeList.html](https://symbol-tools.com/symbolTools/view/tool/nodeList.html) ![](https://i.imgur.com/9R1MQ4q.jpg)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully