<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by BR Nodes on Medium]]></title>
        <description><![CDATA[Stories by BR Nodes on Medium]]></description>
        <link>https://medium.com/@brnodes?source=rss-234229815ab7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QTneF8D8wGCu6CVjTYKn1g.png</url>
            <title>Stories by BR Nodes on Medium</title>
            <link>https://medium.com/@brnodes?source=rss-234229815ab7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:33:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brnodes/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Juneo Validator Node (Zero-CLI) with NodeOps UI by BR Nodes]]></title>
            <link>https://brnodes.medium.com/juneo-validator-with-nodeops-94c07f1562d9?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/94c07f1562d9</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[juneo-supernet]]></category>
            <category><![CDATA[nodeops]]></category>
            <category><![CDATA[validator]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 03:09:22 GMT</pubDate>
            <atom:updated>2025-10-23T19:46:54.294Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*boE2Uu4O9dlzCvWfTvY0kw.png" /></figure><p>Operating a Juneo Supernet validator is essential for network security and earning staking rewards. While this is not an overly complicated task, it does demand that several tasks are performed for the validator to become active.</p><p>However, the traditional management of binaries, configurations, and disaster recovery can be complex, as it typically requires using the command line interface (CLI) on a local machine or a cloud server.</p><p>To solve this, the BR Nodes team has built the Juneo Validator NodeOps UI, a dedicated, Dockerized application designed to make node management simple, reliable, and completely Zero-CLI. Once deployed on NodeOps, this web interface gives you powerful control over your validator’s lifecycle without ever touching a command line.</p><h3>What the Juneo Validator NodeOps UI Offers:</h3><ul><li><strong>Direct Process Control:</strong> Where you can directly start, stop, or check the process status.</li><li><strong>Validator Activation Credentials:</strong> To activate your validator, you must provide the Node ID, Public Key, and Proof of Possession of the validator you wish to stake to the Juneo Wallet.</li><li><strong>Critical Backup Access:</strong> Each time you deploy a validator, unique information is generated and saved in a set of files that must be stored in a secure location for an eventual validator restoration.</li><li><strong>Restore from Backup:</strong> In case of a validator failure that requires a re-deploy, you will need to restore your validator using the critical backup files.</li></ul><h3>Full Deployment and Operation Guide</h3><p>The BR Nodes team has prepared a complete guide, which is hosted on GitHub to allow for easy updates. It contains all the necessary steps to deploy the template and operate your node.</p><p>The<strong> Juneo Validator NodeOps UI: The Zero-CLI Guide</strong> is accessible at the link below:</p><p><a href="https://github.com/brnodes-dev/nodeops-juneo-guide/blob/main/README.md">https://github.com/brnodes-dev/nodeops-juneo-guide/blob/main/README.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94c07f1562d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boundless CLI — Installation Guide]]></title>
            <link>https://brnodes.medium.com/boundless-cli-installation-guide-676c71284723?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/676c71284723</guid>
            <category><![CDATA[node]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[boundless]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Sat, 28 Jun 2025 22:51:40 GMT</pubDate>
            <atom:updated>2025-06-28T22:51:40.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQVZlJkVpHaJuAdkubmesA.png" /></figure><h3>Boundless CLI — Installation Guide</h3><p>Imagine that traditional blockchains, like Ethereum, operate like a large assembly. For any decision to be made or any task to be validated — for example, recording a complex transaction — each of the thousands of assembly members must redo and re-validate all the work from scratch. This model is very secure, but it also creates a massive bottleneck: the speed of the entire system is limited by its slowest member. This is why performing complex operations becomes extremely expensive and slow, resulting in the infamous high “gas fees” that frustrate so many users.</p><p>Boundless emerges to revolutionize this logic. Using the assembly analogy, instead of all members redoing the heavy lifting, Boundless allows an “expert” — a powerful computer in the network — to perform the complex task and then present the assembly with a “zero-knowledge proof” (ZK Proof). This proof is a mathematical certificate, extremely simple and quick to verify, which guarantees that the task was executed correctly without anyone needing to redo the calculation. Think of it as an engineer who, after designing a bridge, provides a safety certificate to the city council. The council doesn’t need to redo all the engineering calculations; it simply trusts the certificate to approve the project.</p><p>By separating the heavy execution (the expert’s work) from consensus (the assembly’s validation), Boundless creates a marketplace where developers can “order” complex computations and a network of “provers” competes to perform them as efficiently as possible. This not only opens the door for creating much more powerful and cheaper applications on any blockchain but also means the network’s computational capacity increases as more provers join it. In practice, Boundless offers a path for blockchain computation to become abundant, scalable, and accessible.</p><h3>Disclaimer</h3><p>This guide may be updated at any time, including never, and is intended for instructional and, at times, experimental purposes. Despite our efforts to ensure the accuracy of the information, unintentional errors or omissions may occur. Use of this guide is at your own risk. It is recommended that you back up your data and systems before following the instructions and carefully evaluate the steps before applying them to your environment.</p><p>Last updated on June 28, 2025.</p><h3>Reference Links</h3><ul><li>Website: <a href="https://beboundless.xyz/">https://beboundless.xyz/</a></li><li>Documentation: <a href="https://docs.beboundless.xyz/">https://docs.beboundless.xyz/</a></li><li>Twitter/X: <a href="https://x.com/boundless_xyz">https://x.com/boundless_xyz</a></li><li>Discord: <a href="https://discord.com/invite/boundlessxyz">https://discord.com/invite/boundlessxyz</a></li><li>Github: <a href="https://github.com/boundless-xyz">https://github.com/boundless-xyz</a></li></ul><h3>What is the Boundless CLI?</h3><p>boundless is a command-line interface (CLI) created for interacting with the Boundless Market. It is specifically designed to help node operators (provers) handle essential tasks like depositing, withdrawing, staking tokens, and submitting proof requests.</p><h3>Where can you install the Boundless CLI?</h3><p>You can run the application directly in the terminal of your Linux computer or on a Virtual Private Server (VPS) using a terminal application like <a href="https://termius.com/">Termius</a>. Whether on your local machine or a VPS, you can also isolate the application within a Docker container for a more controlled environment.</p><p>Currently, Boundless nodes, which require the CLI for some interactions, are only prepared to run on the <strong>Ubuntu 22.04</strong> operating system. Therefore, if you plan to use containers, it is strongly recommended to use Ubuntu 22.04 images.</p><h3>Installing the Boundless CLI</h3><p>To get started, we will create a script to install all the necessary prerequisites. Before proceeding, ensure you have root or sudo privileges, as some commands will require administrative permissions.</p><h4><strong>1. Open a new file with Nano</strong></h4><p>In your terminal, type the following command to create and edit a new script file. We will name it boundless-cli_install for reference.</p><pre>nano boundless-cli_install</pre><h4><strong>2. Copy and paste the script into Nano</strong></h4><p>The next step is to add the installation script’s content into the file you just created. If you are copying the content from another source, you can paste it into the Nano editor using Ctrl+Shift+V or your mouse&#39;s right-click button, depending on your terminal&#39;s configuration.</p><pre>#!/bin/bash<br># =============================================================================<br># Boundless CLI &amp; Rust Automated Installer for Root<br># Version: 2025-06-28 (Revised for robustness and shell cache clearing)<br>#<br># This script automates the installation of Rust, Cargo, and Boundless CLI.<br># It now forces reinstallation and clears the shell&#39;s command path cache<br># to ensure immediate availability of the command.<br># =============================================================================<br><br>set -e<br><br># Function to check if a command exists<br>check_cmd() {<br>    command -v &quot;$1&quot; &gt;/dev/null 2&gt;&amp;1<br>}<br><br>echo &quot;Updating package lists and installing system dependencies...&quot;<br>apt update<br>apt install -y build-essential pkg-config libssl-dev curl<br><br># Install Rust if not already present<br>if check_cmd rustc &amp;&amp; check_cmd cargo; then<br>    echo &quot;Rust is already installed:&quot;<br>    rustc --version<br>    cargo --version<br>else<br>    echo &quot;Installing Rust toolchain for root user...&quot;<br>    curl https://sh.rustup.rs -sSf | sh -s -- -y<br>    # Load Cargo environment for the current shell session<br>    . /root/.cargo/env<br>    # Ensure Cargo bin directory is in PATH for future root shells<br>    echo &#39;export PATH=&quot;/root/.cargo/bin:$PATH&quot;&#39; &gt;&gt; /root/.profile<br>fi<br><br># Always load Cargo environment for the current script session<br>. /root/.cargo/env<br><br># --- Revised and Robust Boundless CLI Installation ---<br>echo &quot;Forcing installation/update of boundless-cli to ensure binary exists...&quot;<br># Use --force to ensure the binary is physically present, overcoming &quot;already installed&quot; metadata checks.<br>cargo install --force --locked boundless-cli<br><br># Define the location of the binary and the target for the link<br>CARGO_BINARY=&quot;/root/.cargo/bin/boundless-cli&quot;<br>LINK_TARGET=&quot;/usr/local/bin/boundless-cli&quot;<br><br>echo &quot;Verifying installation and creating system-wide link...&quot;<br><br># Check if the binary was actually created by cargo before linking<br>if [ -f &quot;$CARGO_BINARY&quot; ]; then<br>    echo &quot;Binary found at $CARGO_BINARY.&quot;<br>    # Create a symbolic link in a standard PATH directory. &#39;f&#39; flag forces overwrite.<br>    ln -sf &quot;$CARGO_BINARY&quot; &quot;$LINK_TARGET&quot;<br>    echo &quot;Symbolic link created at $LINK_TARGET.&quot;<br>    <br>    # CRITICAL STEP: Clear the shell&#39;s command lookup cache.<br>    # This forces the shell to find the newly linked command immediately.<br>    hash -r<br>    echo &quot;Shell command cache has been cleared.&quot;<br>else<br>    # If the file is not found, stop with a clear error message.<br>    echo -e &quot;\n\033[1;31mERROR: &#39;cargo install&#39; finished, but the binary was not found at $CARGO_BINARY.\033[0m&quot;<br>    exit 1<br>fi<br># --- End of Revised Block ---<br><br># Final verification output<br>echo -e &quot;\n\033[1;32mFinal check:\033[0m&quot;<br>echo -n &quot;rustc: &quot;; rustc --version || echo &quot;NOT FOUND&quot;<br>echo -n &quot;cargo: &quot;; cargo --version || echo &quot;NOT FOUND&quot;<br># This check should now succeed thanks to the link and the cleared cache.<br>echo -n &quot;boundless-cli: &quot;; boundless-cli --version || echo &quot;NOT FOUND&quot;<br><br>echo -e &quot;\n\033[1;32mInstallation complete. The &#39;boundless-cli&#39; command should now be available system-wide.\033[0m&quot;</pre><h4>3. Save and exit Nano:</h4><ul><li>Press Ctrl+O to save the file.</li><li>Press Enter to confirm the file name.</li><li>Press Ctrl+X to exit Nano.</li></ul><h4>4. Make the script executable:</h4><p>Now, you need to grant permission for the script to be executed. Use the following command:</p><pre>chmod +x boundless-cli_install</pre><h4>5. Run the script:</h4><p>Finally, execute the script to install the prerequisites:</p><pre>./boundless-cli_install</pre><h3>Final Considerations</h3><p>If everything went according to plan, you are now ready to interact with the Boundless testnet, where all blockchain interactions are performed through the <strong>Boundless CLI</strong>.</p><p>You can find the syntax and details for executing commands in the <a href="https://www.google.com/search?q=https://docs.boundless.computer/">official Boundless documentation</a>. Keep it handy for reference.</p><h3>Be Boundless!!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=676c71284723" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide zNode — Rivalz Network (English)]]></title>
            <link>https://brnodes.medium.com/guide-znode-rivalz-network-english-3cac060b9505?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cac060b9505</guid>
            <category><![CDATA[rivalz]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[znode]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Sun, 01 Dec 2024 01:32:14 GMT</pubDate>
            <atom:updated>2024-12-01T01:32:14.158Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*CvrSjSdwYsHApyJb.png" /></figure><h3>Guide zNode — Rivalz Network (English)</h3><p>The Rivalz Network is a platform designed to transform how data is managed and utilized, particularly in the context of artificial intelligence (AI). With the exponential growth of AI, the need for a system that ensures data integrity and authenticity becomes increasingly critical. The Rivalz Network aims to be this solution, creating a secure and transparent environment where data can be shared and validated through a decentralized network.</p><h4><strong>Project Overview</strong></h4><p>Rivalz’s mission is to connect AI agents to the real world, fostering an ecosystem where data and intelligence can be accessed reliably. The project not only aims to facilitate the use of data but also to accelerate the adoption of AI-based technologies by creating a robust infrastructure. The platform is powered by an incentive system that rewards users for their contributions, whether by sharing data or actively participating in information validation.</p><h4><strong>ZNodes: The Heart of the Network</strong></h4><p>At the core of Rivalz Network’s operations are the zNodes, which play a critical role in validating transactions and maintaining network security. zNode operators help ensure that data is verified and remains immutable, contributing to trust in the platform. Additionally, these operators have the opportunity to earn rewards for their activities, further encouraging active participation in the network.</p><h4><strong>Future Impact</strong></h4><p>Rivalz Network goes beyond data management; it also seeks to create an ideal marketplace for information exchange, where authenticity and integrity are guaranteed. By integrating advanced technologies with a user-centric approach, the project aims to set new standards for the ethical and efficient use of data in the digital age. With a solid framework and a clear vision for the future, Rivalz Network is positioned to become a leader in digital transformation, offering solutions that benefit both users and organizations reliant on accurate and reliable data.</p><h4><strong>Disclaimer</strong></h4><p>This guide is subject to continuous updates and is intended for instructional purposes and, at times, experimental use. Despite efforts to ensure the accuracy of the information, unintentional errors or omissions may occur. Use of this guide is at your own risk. It is strongly recommended that you back up your data and systems before following the instructions and carefully review the steps before applying them to your environment.<br>Updated on November 14, 2024.</p><h4><strong>Reference Links</strong></h4><ul><li>Website: <a href="https://rivalz.ai/">https://rivalz.ai/</a></li><li>Documentation: <a href="https://docs.rivalz.ai/znode-validators/running-a-znode">https://docs.rivalz.ai/znode-validators/running-a-znode</a></li><li>Twitter/X: <a href="https://x.com/Rivalz_AI">https://x.com/Rivalz_AI</a></li><li>Discord: <a href="https://discord.com/invite/rivalzai">https://discord.com/invite/rivalzai</a></li><li>Referral: <a href="https://rivalz.ai/?r=cassiogehlen">https://rivalz.ai?r=cassiogehlen</a></li></ul><h4><strong>Where Can You Install a zNode?</strong></h4><p>Currently, we are in Epoch 3 of the Rivalz Network testnet, and during this phase, operating these nodes will contribute points toward the future airdrop. The zNode is a validator-type blockchain node, making it essential for it to operate 24/7 without interruptions. To ensure uninterrupted operation, consider renting a VPS. Alternatively, if you prefer to avoid manual configuration, you can hire a professional node operator, such as Cripto Host, to handle all the technical work.</p><p>If you have a license to run multiple zNodes with different wallets, note that it is possible to run multiple zNodes on the same device, whether on a local computer or a cloud server. In this case, you’ll need to configure Docker containers for each zNode instance. We have a specific guide available for node containerization.</p><p>The zNode is compatible with Linux Ubuntu 22.04, and there are various ways to configure the environment to run it. You can choose to run the node using WSL (Windows Subsystem for Linux) on Windows 10 or 11, on a Linux virtual machine, directly on Linux, or within a container on a Linux system. Compatibility issues may arise depending on how you install the zNode, so it’s important to test and verify its functionality in your environment.</p><p>The zNode does not conflict with the rClient; you should be able to run both on the same device without issues.</p><p>The choice of the ideal configuration depends on your preferences and the environment where you intend to operate the zNode.</p><h3><strong>Step 1: Installing Prerequisites</strong></h3><p>To get started, we will create a script to install all the necessary prerequisites. Before proceeding, ensure you have root or sudo privileges, as some commands will require administrative permissions. If you are not familiar with using a text editor in the terminal, here’s a quick guide using Nano:</p><h4><strong>1. Open a new file with Nano:</strong></h4><p>In your terminal, type the following command to create and edit a new script file:</p><pre>nano rivalz_pre_install</pre><h4>2. Copy and paste the script into Nano:</h4><p>Use Ctrl+Shift+V to paste the content you are copying from another source.</p><pre>#!/bin/bash<br><br># Last Updated: 14 November 2024<br><br># Check if Node.js, npm, and NVM are already installed and up-to-date<br>echo &quot;Checking for existing installations and updates for Node.js, npm, and NVM...&quot;<br>latest_nvm_version=$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r .tag_name)<br>installed_nvm_version=$(nvm --version 2&gt;/dev/null)<br><br>latest_node_version=$(nvm ls-remote --lts | tail -1 | awk &#39;{print $1}&#39;)<br>installed_node_version=$(node -v 2&gt;/dev/null)<br><br># Function to prompt for update confirmation<br>confirm_update() {<br>    read -p &quot;Updates are available. Do you want to proceed? (Y/N): &quot; confirm<br>    if [[ $confirm != [Yy] ]]; then<br>        echo &quot;Update canceled by user.&quot;<br>        exit 0<br>    fi<br>}<br><br># Check if updates are needed<br>update_needed=false<br>if [[ &quot;$installed_nvm_version&quot; != &quot;$latest_nvm_version&quot; ]]; then<br>    echo &quot;NVM update needed.&quot;<br>    update_needed=true<br>fi<br>if [[ &quot;$installed_node_version&quot; != &quot;$latest_node_version&quot; ]]; then<br>    echo &quot;Node.js update needed.&quot;<br>    update_needed=true<br>fi<br><br>if [[ &quot;$update_needed&quot; == false ]]; then<br>    echo &quot;All packages are up-to-date. Exiting script.&quot;<br>    exit 0<br>else<br>    confirm_update<br>fi<br><br># Remove previous installations of Node.js and npm if an update is necessary<br>echo &quot;Removing previous installations of Node.js and npm...&quot;<br>sudo apt remove -y nodejs npm<br><br># Update system package list<br>echo &quot;Updating system package list...&quot;<br>sudo apt update<br><br># Install required dependencies<br>echo &quot;Installing required dependencies...&quot;<br>sudo apt install -y curl jq git screen<br><br># Install NVM<br>echo &quot;Installing the latest version of NVM...&quot;<br>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$latest_nvm_version/install.sh | bash<br><br># Load NVM<br>export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;  # This loads NVM<br>[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;  # This loads NVM bash completion<br><br># Add NVM to the shell configuration file if necessary<br>if ! grep -q &#39;export NVM_DIR=&quot;$HOME/.nvm&quot;&#39; ~/.bashrc; then<br>    echo &#39;export NVM_DIR=&quot;$HOME/.nvm&quot;&#39; &gt;&gt; ~/.bashrc<br>    echo &#39;[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;&#39; &gt;&gt; ~/.bashrc<br>    echo &#39;[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;&#39; &gt;&gt; ~/.bashrc<br>fi<br><br># Install the latest LTS version of Node.js<br>echo &quot;Installing the latest LTS version of Node.js...&quot;<br>nvm install --lts<br><br># Use the installed version<br>nvm use --lts<br><br># Check if npm is installed correctly<br>if command -v npm &amp;&gt; /dev/null; then<br>    echo &quot;npm is installed successfully.&quot;<br>else<br>    echo &quot;npm installation failed.&quot;<br>    exit 1<br>fi<br><br># Display installed versions<br>echo &quot;Node.js version:&quot;<br>node -v<br>echo &quot;NPM version:&quot;<br>npm -v<br><br># Reload the shell configuration to ensure everything is updated<br>source ~/.bashrc<br><br>echo &quot;Prerequisites are successfully installed.&quot;</pre><h4><strong>3. Save and exit Nano:</strong></h4><ul><li>Press Ctrl+O to save the file.</li><li>Press Enter to confirm the file name.</li><li>Press Ctrl+X to exit Nano.</li></ul><h4><strong>4. Make the script executable:</strong></h4><p>Now, you need to grant permission for the script to be executed. Use the following command:</p><pre>chmod +x rivalz_pre_install</pre><h4><strong>5. Run the script:</strong></h4><p>Finally, execute the script to install the prerequisites:</p><pre>./rivalz_pre_install</pre><p>Alternatively, you can simply copy the entire bash script and paste it directly into the terminal using Ctrl+Shift+V to execute the commands without creating a script file.</p><h3><strong>Step 2: Installing the zNode</strong></h3><p>After installing the prerequisites, we recommend running the command below to ensure npm works correctly:</p><pre>source ~/.bashrc</pre><p>Next, install the zNode with the following command:</p><pre>npm i -g rivalz-znode-cli</pre><h3><strong>Step 3: Running the zNode for the First Time</strong></h3><p>Even if you are running the zNode in a terminal on your own computer and do not intend to close the terminal window, it is still recommended to use the screen command to keep the session active. To start the screen session, we suggest using the name znode for this session, but you can customize the name as you prefer, such as znode1, znode2, znoderivalz, and so on. To start the session, use the following command:</p><pre>screen -S znode</pre><p>You will need to run the zNode so it can generate the Node ID for your zNode. This ID will be used to delegate your license (NFT) to the node you have installed.</p><pre>znode run</pre><p>As soon as you execute the command above, if everything is set up correctly, you will see an output similar to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*yi1HQq9BC5rQ_KtI.png" /></figure><p>Make a note of the address starting with 0x; this is your Node ID and will be required for the next steps.</p><p>Now that the zNode is running, you need to delegate your license NFT to it.</p><p>In the wallet holding the NFT, ensure there is a small amount of ETH on the Arbitrum network to cover the transaction fee for delegation.</p><p>With the wallet containing the NFT selected, go to the following page:</p><p><a href="https://znode.rivalz.ai/znode">https://znode.rivalz.ai/znode</a></p><p>Connect your wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ZiOvwllsv0zeyp-C.png" /></figure><p>Enter the Node ID (that you noted earlier) and the <strong>TOKEN AMOUNT</strong>, which is the number of NFTs you want to delegate from this wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dkmNEF_PzMnuoEuU.png" /></figure><p>Click <strong>Delegate</strong>, confirm the transaction, and then return to the terminal where you set up the zNode. If the terminal prompt is not visible, you will need to stop the node by pressing CTRL + C.</p><p>Run the command again:</p><pre>znode run</pre><p>You will get an output displaying the Node ID and the NFT numbers that have been delegated to your zNode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*hr3-TS0k14mHQmAh" /><figcaption>Image from Rivalz documentation</figcaption></figure><p>To exit the screen session <strong>without stopping</strong> the zNode that is running, press <strong>CTRL + A and then </strong><strong>D.</strong> This will return you to the normal terminal, keeping the zNode active in the background.</p><h4>Important Information</h4><ul><li>If you own multiple NFTs, you can delegate them to different Node IDs by setting up multiple nodes.</li><li>It is not possible to delegate NFTs from different wallets to the same Node ID.</li><li>Each Node ID only accepts delegated NFTs from a single wallet.</li></ul><h4>Final Considerations</h4><p>Congratulations! You now have the Rivalz Network zNode running and interacting with the testnet.</p><p>This guide is continuously updated, so make sure to check it regularly to stay informed about new updates and ensure your node follows the latest best practices and configurations.</p><p>If you encounter any difficulties or errors while following this guide, feel free to share your questions and experiences in the <strong>BR Nodes community</strong>. We are always ready to help and collaborate with other node operators!</p><h4>List of Useful Commands for Using Screen</h4><p>Here are some handy commands to manage screen sessions</p><ul><li><strong>Create a new session with a specific name:</strong></li></ul><pre>screen -S session_name</pre><ul><li><strong>Detach from the session without stopping it (keep the process running in the background):</strong></li></ul><pre>Press CTRL + A and then D</pre><ul><li><strong>List all active screen sessions:</strong></li></ul><pre>screen -ls</pre><ul><li><strong>Reconnect to an existing session:</strong></li></ul><pre>screen -r session_name</pre><p>These commands help you manage multiple sessions and keep the node running efficiently in the background.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cac060b9505" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide zNode — Rivalz Network]]></title>
            <link>https://brnodes.medium.com/guide-znode-rivalz-network-cabbda87f3ce?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/cabbda87f3ce</guid>
            <category><![CDATA[blockchai̇n]]></category>
            <category><![CDATA[znode]]></category>
            <category><![CDATA[rivalz-network]]></category>
            <category><![CDATA[testnet]]></category>
            <category><![CDATA[node-operators]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Thu, 14 Nov 2024 15:07:52 GMT</pubDate>
            <atom:updated>2024-12-01T00:56:58.373Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpLZuRJWuuJnLcqcnaj6mQ.png" /></figure><h3>Guide zNode — Rivalz Network (Português)</h3><p>O Rivalz Network é uma plataforma que busca transformar a forma como os dados são geridos e utilizados, especialmente no contexto da inteligência artificial (IA). Com o crescimento exponencial da IA, a necessidade de um sistema que assegure a integridade e a autenticidade dos dados se torna cada vez mais crítica. O Rivalz Network se propõe a ser essa solução, criando um ambiente seguro e transparente onde os dados podem ser compartilhados e validados por meio de uma rede descentralizada.</p><h4>Visão Geral do Projeto</h4><p>A missão do Rivalz é conectar agentes de IA ao mundo real, promovendo um ecossistema onde dados e inteligência possam ser acessados de forma confiável. O projeto não apenas visa facilitar o uso de dados, mas também acelerar a adoção de tecnologias baseadas em IA através da criação de uma infraestrutura robusta. A plataforma é alimentada por um sistema de incentivos que recompensa os usuários por suas contribuições, seja compartilhando dados ou participando ativamente da validação das informações.</p><h4>ZNodes: O Coração da Rede</h4><p>No centro do funcionamento do Rivalz Network estão os zNodes, que desempenham um papel essencial na validação de transações e na manutenção da segurança da rede. Os operadores de zNodes ajudam a garantir que os dados sejam verificados e permaneçam imutáveis, contribuindo para a confiança na plataforma. Além disso, esses operadores têm a oportunidade de receber recompensas por suas atividades, incentivando ainda mais a participação ativa na rede.</p><h4>Impacto Futuro</h4><p>O Rivalz Network não se limita apenas à gestão de dados; ele também busca criar um mercado ideal para a troca de informações, onde a autenticidade e a integridade são garantidas. Ao integrar tecnologias avançadas com uma abordagem centrada no usuário, o projeto aspira a estabelecer novos padrões para o uso ético e eficiente dos dados na era digital.Com uma estrutura sólida e uma visão clara para o futuro, o Rivalz Network está posicionado para se tornar um líder na transformação digital, oferecendo soluções que beneficiam tanto os usuários quanto as organizações que dependem de dados precisos e confiáveis.</p><h3>Disclaimer</h3><p>Este guia está em constante atualização e tem finalidade instrucional e, por vezes, caráter experimental. Apesar dos esforços para garantir a precisão das informações, podem haver erros ou omissões não intencionais. O uso deste guia é por sua conta e risco. Recomenda-se que você faça backups de seus dados e sistemas antes de seguir as instruções e avalie cuidadosamente as etapas antes de aplicá-las ao seu ambiente.<br><strong>Atualizado em 14/11/2024.</strong></p><h3>Comunidade BR Nodes</h3><p>Se você está interessado em aprofundar seus conhecimentos e trocar experiências sobre a operação de nodes, convido você a conhecer a comunidade <strong>BR Nodes</strong>. Somos uma comunidade aberta em língua portuguesa, focada na operação de nodes, onde compartilhamos dicas, resolvemos problemas juntos e aprendemos uns com os outros.</p><p>Junte-se a nós e faça parte desse grupo colaborativo!</p><ul><li><a href="http://linktr.ee/brnodes">linktr.ee/brnodes</a></li></ul><h3>Links de Referência</h3><p>Site: <a href="https://rivalz.ai/">https://rivalz.ai/</a></p><p>Documentação: <a href="https://docs.rivalz.ai/znode-validators/running-a-znode">https://docs.rivalz.ai/znode-validators/running-a-znode</a></p><p>Twitter/X: <a href="https://x.com/Rivalz_AI">https://x.com/Rivalz_AI</a></p><p>Discord:: <a href="https://discord.com/invite/rivalzai">https://discord.com/invite/rivalzai</a></p><p>Referral: <a href="https://rivalz.ai/?r=cassiogehlen">https://rivalz.ai?r=cassiogehlen</a></p><h3>Onde é possível instalar o zNode?</h3><p>Atualmente, estamos na Epoch 3 da testnet da Rivalz Network, e nesta fase a operação desses nodes irá pontuar para o airdrop futuro. O zNode é um node blockchain do tipo validador, sendo essencial que ele funcione 24 horas por dia, sem interrupções. Para garantir essa operação ininterrupta, considere a contratação de um VPS, ou, caso prefira evitar a configuração manual, é possível contratar um operador de nodes profissional, como a <a href="http://cripto.host/">Cripto Host</a>, que pode cuidar de todo trabalho técnico.</p><p>Caso você tenha a licença para rodar mais de um zNode com diferentes carteiras, saiba que é viável rodar múltiplos zNodes em um mesmo dispositivo, seja em um computador local ou em um servidor na nuvem. Nesse caso, será necessário configurar containers Docker para cada instância do zNode, e já disponibilizamos um guia específico para a containerização de nodes.</p><p>O zNode é compatível com o sistema Linux Ubuntu 22.04, e há diversas formas de configurar o ambiente para rodá-lo. Você pode optar por rodar o node usando o WSL (Windows Subsystem for Linux) no Windows 10 ou 11, em uma máquina virtual Linux, diretamente no Linux ou em um container sobre um sistema Linux. Podem acontecer incompatiblidades depedendo de como você irá instalar o zNode, então é importante testar para verificar a funcionalidade no seu ambiente.</p><p>O zNode, a princípio, não conflita com o rClient, você irá conseguir rodar ambos no mesmo dispositivo.</p><p>Para auxiliar na instalação, disponibilizamos no Medium dois guias úteis:</p><ol><li><a href="https://brnodes.medium.com/linux-ubuntu-sem-medo-com-wsl-no-windows-10-ou-11-82f0bd43c3eb"><strong>Linux Ubuntu Sem Medo com WSL no Windows 10 ou 11</strong></a></li><li><a href="https://brnodes.medium.com/nodes-mais-eficientes-com-docker-um-guia-de-opera%C3%A7%C3%A3o-containerizada-5c264c67e4ef"><strong>Nodes Mais Eficientes com Docker: um Guia de Operação Containerizada</strong></a></li></ol><p>A escolha da configuração ideal depende de suas preferências e do ambiente em que você deseja operar o zNode.</p><h3>Passo 1: Instalando Pré-requisitos</h3><p>Para começar, vamos criar um script que instala todos os pré-requisitos necessários. Antes de prosseguir, certifique-se de que você possui privilégios de root ou sudo, pois alguns comandos exigirão permissões administrativas. Se você não está familiarizado com o uso de um editor de texto no terminal, aqui está um guia rápido usando o nano:</p><h4>1. Abra um novo arquivo com o nano:</h4><p>No seu terminal, digite o seguinte comando para criar e editar um novo arquivo de script:</p><pre>nano rivalz_pre_install</pre><h4><strong>2. Copie e cole o script abaixo no nano:</strong></h4><p>Use Ctrl+Shift+V para colar o conteúdo que você está copiando de outro lugar.</p><pre>#!/bin/bash<br><br># Last Updated: 14 November 2024<br><br># Check if Node.js, npm, and NVM are already installed and up-to-date<br>echo &quot;Checking for existing installations and updates for Node.js, npm, and NVM...&quot;<br>latest_nvm_version=$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r .tag_name)<br>installed_nvm_version=$(nvm --version 2&gt;/dev/null)<br><br>latest_node_version=$(nvm ls-remote --lts | tail -1 | awk &#39;{print $1}&#39;)<br>installed_node_version=$(node -v 2&gt;/dev/null)<br><br># Function to prompt for update confirmation<br>confirm_update() {<br>    read -p &quot;Updates are available. Do you want to proceed? (Y/N): &quot; confirm<br>    if [[ $confirm != [Yy] ]]; then<br>        echo &quot;Update canceled by user.&quot;<br>        exit 0<br>    fi<br>}<br><br># Check if updates are needed<br>update_needed=false<br>if [[ &quot;$installed_nvm_version&quot; != &quot;$latest_nvm_version&quot; ]]; then<br>    echo &quot;NVM update needed.&quot;<br>    update_needed=true<br>fi<br>if [[ &quot;$installed_node_version&quot; != &quot;$latest_node_version&quot; ]]; then<br>    echo &quot;Node.js update needed.&quot;<br>    update_needed=true<br>fi<br><br>if [[ &quot;$update_needed&quot; == false ]]; then<br>    echo &quot;All packages are up-to-date. Exiting script.&quot;<br>    exit 0<br>else<br>    confirm_update<br>fi<br><br># Remove previous installations of Node.js and npm if an update is necessary<br>echo &quot;Removing previous installations of Node.js and npm...&quot;<br>sudo apt remove -y nodejs npm<br><br># Update system package list<br>echo &quot;Updating system package list...&quot;<br>sudo apt update<br><br># Install required dependencies<br>echo &quot;Installing required dependencies...&quot;<br>sudo apt install -y curl jq git screen<br><br># Install NVM<br>echo &quot;Installing the latest version of NVM...&quot;<br>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$latest_nvm_version/install.sh | bash<br><br># Load NVM<br>export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;  # This loads NVM<br>[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;  # This loads NVM bash completion<br><br># Add NVM to the shell configuration file if necessary<br>if ! grep -q &#39;export NVM_DIR=&quot;$HOME/.nvm&quot;&#39; ~/.bashrc; then<br>    echo &#39;export NVM_DIR=&quot;$HOME/.nvm&quot;&#39; &gt;&gt; ~/.bashrc<br>    echo &#39;[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;&#39; &gt;&gt; ~/.bashrc<br>    echo &#39;[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;&#39; &gt;&gt; ~/.bashrc<br>fi<br><br># Install the latest LTS version of Node.js<br>echo &quot;Installing the latest LTS version of Node.js...&quot;<br>nvm install --lts<br><br># Use the installed version<br>nvm use --lts<br><br># Check if npm is installed correctly<br>if command -v npm &amp;&gt; /dev/null; then<br>    echo &quot;npm is installed successfully.&quot;<br>else<br>    echo &quot;npm installation failed.&quot;<br>    exit 1<br>fi<br><br># Display installed versions<br>echo &quot;Node.js version:&quot;<br>node -v<br>echo &quot;NPM version:&quot;<br>npm -v<br><br># Reload the shell configuration to ensure everything is updated<br>source ~/.bashrc<br><br>echo &quot;Prerequisites are successfully installed.&quot;</pre><h4><strong>3. </strong>Salve e saia do nano:</h4><ul><li>Pressione <strong>Ctrl+O</strong> para salvar o arquivo.<br>Pressione <strong>Enter</strong> para confirmar o nome do arquivo.<br>Pressione <strong>Ctrl+X</strong> para sair do nano.</li></ul><h4>4. Torne o script executável:</h4><p>Agora, você precisará dar permissão para que o script possa ser executado. Use o seguinte comando:</p><pre>chmod +x rivalz_pre_install</pre><h4>5. Execute o script:</h4><p>Por fim, execute o script para instalar os pré-requisitos:</p><pre>./rivalz_pre_install</pre><p>Alternativamente, você pode simplesmente copiar todo o script em bash e colá-lo diretamente no terminal usando <strong>Ctrl+Shift+V</strong> para executar os comandos sem criar um arquivo de script.</p><h3>Passo 2: Instalando o Node zNode</h3><p>Após instalar os pré-requisitos, recomendamos executar o comando abaixo para garantir que o npm funcione corretamente:</p><pre>source ~/.bashrc</pre><p>Em seguida, instale o zNode com o seguinte comando:</p><pre>npm i -g rivalz-znode-cli</pre><h3>Passo 3: Executando o Node zNode pela Primeira Vez</h3><p>Mesmo que você esteja executando o zNode em um terminal no seu próprio computador e não pretenda fechar a janela do terminal, ainda é recomendável utilizar o comando <strong>screen</strong> para manter a sessão ativa. Para iniciar o screen, sugerimos usar o nome <strong>znode</strong> para essa sessão, mas você pode personalizar o nome conforme preferir, como <strong>znode1</strong>, <strong>znode2</strong>, <strong>znoderivalz</strong>, entre outros. Para iniciar a sessão, utilize o comando:</p><pre>screen -S znode  # znode is the session name; you can choose any name for this session.</pre><p>Você precisará rodar o zNode para que ele crie o Node ID do seu zNode. Esse ID será utilizado para delegar sua licença (NFT) ao node que você instalou.</p><pre>znode run</pre><p>Assim que executar o comando acima, se tudo estiver correto, você verá uma saída como esta:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*hWmuQ018kX2XcfEfP-P-sA.png" /></figure><p>Anote o endereço que começa com <strong>0x</strong>; ele é o seu Node ID e será necessário para os próximos passos.</p><p>Agora que o zNode está rodando, você precisa delegar seu NFT de licença para ele.</p><p>Na carteira onde está o NFT, certifique-se de que há uma pequena quantidade de ETH na rede Arbitrum para cobrir a taxa da transação de delegação.</p><p>Com a carteira contendo o NFT selecionada, acesse a página:</p><p><a href="https://znode.rivalz.ai/znode">znode.rivalz.ai/znode</a></p><p>Conecte a sua carteira.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJums-5-CyCvODFmkAOS7Q.png" /></figure><p>Informe o Node ID (que você anotou antes) e o TOKEN AMOUNT que é a quantidade de NFTs que você quer delegar desta carteira.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWzV7f70xzj8Tjl_XGUw8Q.png" /></figure><p>Clique em delegar, confirme a transação e agora é preciso voltar ao terminal onde você configurou o zNode, se o prompt do terminal não estiver aparecendo, será necessário parar o node com CTRL + C</p><p>Execute novamente o comando:</p><pre>znode run</pre><p>Você irá obter uma saída que informará o Node ID e a numeração dos NFTs que foram delegados ao seu zNode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*MqFUuqcwJsDoF4FD" /><figcaption>Imagem da documentação da Rivalz</figcaption></figure><p>Para sair da sessão <strong>screen</strong> sem encerrar o zNode que está rodando, pressione <strong>CTRL + A</strong> e, em seguida, <strong>D</strong>. Isso retornará você ao terminal normal, deixando o zNode ativo em segundo plano.</p><h3>Informações Importantes</h3><ul><li>Se você possui mais de um NFT, pode delegá-los para diferentes Node IDs, configurando múltiplos nodes.</li><li>Não é possível delegar NFTs de carteiras diferentes para um mesmo Node ID.</li><li>Cada Node ID aceita NFTs delegados apenas de uma única carteira.</li></ul><h3>Considerações Finais</h3><p>Parabéns! Agora você tem o zNode da Rivalz Network rodando e interagindo com a testnet.</p><p>Este guia está em constante atualização, então consulte-o regularmente para acompanhar as novidades e garantir que seu node esteja sempre em dia com as melhores práticas e configurações.</p><p>Se você encontrar dificuldades ou erros ao seguir este guia, não hesite em compartilhar suas dúvidas e experiências na comunidade BR Nodes. Estamos sempre prontos para ajudar e colaborar com outros operadores de nodes!</p><h3>Lista de Comandos Úteis na Utilização do Screen</h3><p>Aqui estão alguns comandos úteis para gerenciar sessões <strong>screen</strong>:</p><ul><li><strong>Criar uma nova sessão com um nome específico</strong>:</li></ul><pre>screen -S nome_da_sessao</pre><ul><li><strong>Desconectar-se da sessão sem encerrá-la</strong> (deixa o processo em segundo plano):</li></ul><pre>Pressione CTRL + A e depois D</pre><ul><li><strong>Listar todas as sessões ativas de screen</strong>:</li></ul><pre>screen -ls</pre><ul><li><strong>Reconectar-se a uma sessão existente</strong>:</li></ul><pre>screen -r nome_da_sessao</pre><p>Esses comandos ajudam a gerenciar múltiplas sessões e manter o node ativo em segundo plano com mais eficiência.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cabbda87f3ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide UNICHAIN — Uniswap Blockchain]]></title>
            <link>https://brnodes.medium.com/guide-unichain-uniswap-blockchain-f75fcad790cb?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f75fcad790cb</guid>
            <category><![CDATA[airdrop-guide]]></category>
            <category><![CDATA[node-running]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[uniswap]]></category>
            <category><![CDATA[unichain]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Fri, 01 Nov 2024 01:01:20 GMT</pubDate>
            <atom:updated>2024-11-12T10:14:14.568Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zy3gAZhseIhRtCWG" /></figure><h3>Guide UNICHAIN — Uniswap Blockchain</h3><p>A Uniswap se consolidou como a maior DEX (exchange descentralizada) no universo cripto, e seu impacto é inegável. Com um tesouro robusto de 3 bilhões dólares em tokens UNI e um valor total bloqueado (TVL) de aproximadamente 4,759 bilhões de dólares, ela ocupa o sexto lugar entre os maiores protocolos em valor travado. Caso fosse uma blockchain autônoma, a Uniswap se destacaria como a quarta maior, superando até mesmo a Binance Smart Chain (BSC) em valor total travado.</p><p>Com a transição para uma Appchain — a Unichain –, a Uniswap avança para se tornar uma rede blockchain independente, o que pode abrir novas oportunidades para sua comunidade e operadores de nodes. Vale lembrar que a Uniswap já recompensou sua comunidade generosamente com airdrops no passado. Ainda que não haja garantias, uma possível participação na Unichain pode representar uma chance valiosa. Para aqueles que já confiam na Uniswap e desejam explorar as vantagens da Unichain, é uma oportunidade de “cravar uma bandeira” neste novo ecossistema.</p><p>Os valores de TVL e Treasury são de 31/10/2024 e podem ser consultados em tempo real <a href="https://defillama.com/protocol/uniswap#information">aqui</a>.</p><h3>Disclaimer</h3><p>Este guia está em constante atualização e tem finalidade instrucional e, por vezes, caráter experimental. Apesar dos esforços para garantir a precisão das informações, podem haver erros ou omissões não intencionais. O uso deste guia é por sua conta e risco. Recomenda-se que você faça backups de seus dados e sistemas antes de seguir as instruções e avalie cuidadosamente as etapas antes de aplicá-las ao seu ambiente.<br><strong>Atualizado em 04/11/2024.</strong></p><h3>Comunidade BR Nodes</h3><p>Se você está interessado em aprofundar seus conhecimentos e trocar experiências sobre a operação de nodes, convido você a conhecer a comunidade <strong>BR Nodes</strong>. Somos uma comunidade aberta em língua portuguesa, focada na operação de nodes, onde compartilhamos dicas, resolvemos problemas juntos e aprendemos uns com os outros.</p><p>Junte-se a nós e faça parte desse grupo colaborativo!</p><ul><li><a href="http://linktr.ee/brnodes">linktr.ee/brnodes</a></li></ul><h3>Links de Referência</h3><p>Site: <a href="http://www.unichain.org/">www.unichain.org</a></p><p>Documentação: <a href="https://docs.unichain.org/docs">https://docs.unichain.org/docs</a></p><p>Twiitter/X: <a href="https://x.com/unichain">https://x.com/unichain</a></p><p>Discord: <a href="https://discord.com/invite/uniswap">https://discord.com/invite/uniswap</a></p><h3><strong>Onde é possível instalar o node Unichain?</strong></h3><p>O node da Unichain utiliza o sistema Linux Ubuntu 22.04, e existem diversas maneiras de configurar o ambiente necessário. Você pode rodá-lo usando o WSL (Windows Subsystem for Linux) no Windows 10 ou 11, em uma máquina virtual Linux, diretamente no Linux ou ainda em um container em cima de um sistema Linux (sem sempre funciona, é necessário testar no seu ambiente). Cada abordagem tem suas vantagens e pode se adequar a diferentes necessidades e recursos.</p><p>Aqui no Medium, disponibilizamos dois guias úteis que podem ajudar no processo de instalação:</p><ul><li><a href="https://brnodes.medium.com/linux-ubuntu-sem-medo-com-wsl-no-windows-10-ou-11-82f0bd43c3eb"><strong>Linux Ubuntu Sem Medo com WSL no Windows 10 ou 11</strong></a></li><li><a href="https://brnodes.medium.com/nodes-mais-eficientes-com-docker-um-guia-de-opera%C3%A7%C3%A3o-containerizada-5c264c67e4ef"><strong>Nodes Mais Eficientes com Docker: um Guia de Operação Containerizada</strong></a></li></ul><p>Particularmente, optei por instalar o node Unichain dentro de containers Docker, que proporcionam flexibilidade e facilidade de gerenciamento. Escolher a configuração ideal depende das suas preferências e do ambiente em que você deseja operar o node.</p><h3>Criando um Script para Automatizar a Instalação do Node Unichain</h3><p>Assim que estiver no ambiente desejado para instalar o node da Unichain, vamos criar um script que automatizará todo o processo de instalação. Ao final, esse script irá gerar a chave privada da carteira do node, que você pode configurar em uma carteira compatível com EVM, como a Rabby. Essa configuração permite que você utilize essa carteira para realizar operações na testnet da Unichain.</p><h3>Passo a Passo para Criar o Script</h3><h4>1. Criar o Arquivo do Script</h4><p>Crie um novo arquivo chamado install_unichain-node no diretório de sua preferência:</p><pre>nano install_unichain-node</pre><h4>2. Adicionar as Instruções ao Script</h4><p>Cole o seguinte conteúdo no arquivo:</p><pre>#!/bin/bash<br><br>set -e  # Para o script em caso de erro<br><br># Variáveis<br>DOCKER_COMPOSE_VERSION=&quot;2.20.2&quot;<br>REPO_URL=&quot;https://github.com/Uniswap/unichain-node&quot;<br>ETH_RPC_URL=&quot;https://ethereum-sepolia-rpc.publicnode.com&quot;<br>BEACON_API_URL=&quot;https://ethereum-sepolia-beacon-api.publicnode.com&quot;<br><br># Atualizar sistema<br>echo &quot;Atualizando o sistema...&quot;<br>sudo apt update -y &amp;&amp; sudo apt upgrade -y<br><br># Instalar Git<br>echo &quot;Instalando Git...&quot;<br>sudo apt install -y git curl<br><br># Verificar se o Docker está instalado<br>if ! command -v docker &amp;&gt; /dev/null; then<br>  echo &quot;Docker não encontrado, instalando Docker...&quot;<br>  sudo apt install -y docker.io<br>else<br>  echo &quot;Docker já está instalado.&quot;<br>fi<br><br># Verificar e instalar ou atualizar o Docker Compose<br>if command -v docker-compose &amp;&gt; /dev/null; then<br>  DOCKER_COMPOSE_CURRENT_VERSION=$(docker-compose --version | awk &#39;{print $3}&#39; | sed &#39;s/,//g&#39;)<br>  <br>  if [[ &quot;$DOCKER_COMPOSE_CURRENT_VERSION&quot; =~ ^1 ]]; then<br>    echo &quot;Versão 1 do Docker Compose detectada, atualizando para a versão 2...&quot;<br>    sudo curl -L &quot;https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose<br>    sudo chmod +x /usr/local/bin/docker-compose<br>  else<br>    echo &quot;Docker Compose já está na versão 2 ou superior.&quot;<br>  fi<br>else<br>  echo &quot;Docker Compose não encontrado, instalando Docker Compose...&quot;<br>  sudo curl -L &quot;https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose<br>  sudo chmod +x /usr/local/bin/docker-compose<br>fi<br><br># Clonar repositório Unichain<br>echo &quot;Clonando o repositório Unichain...&quot;<br>git clone $REPO_URL<br><br># Mudar diretório para unichain-node<br>cd unichain-node || { echo &quot;Falha ao entrar no diretório unichain-node&quot;; exit 1; }<br><br># Editar arquivo .env.sepolia<br>echo &quot;Editando arquivo .env.sepolia...&quot;<br>sed -i &quot;s|OP_NODE_L1_ETH_RPC=.*|OP_NODE_L1_ETH_RPC=$ETH_RPC_URL|&quot; .env.sepolia<br>sed -i &quot;s|OP_NODE_L1_BEACON=.*|OP_NODE_L1_BEACON=$BEACON_API_URL|&quot; .env.sepolia<br><br># Iniciar o nó Unichain<br>echo &quot;Iniciando o nó Unichain...&quot;<br>docker-compose up -d<br><br>echo &quot;Execução do script concluída.&quot;<br><br># Testar o Node <br>echo &quot;Testando o Node:&quot;<br>curl -d &#39;{&quot;id&quot;:1,&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;method&quot;:&quot;eth_getBlockByNumber&quot;,&quot;params&quot;:[&quot;latest&quot;,false]}&#39; \<br>  -H &quot;Content-Type: application/json&quot; http://localhost:8545 || { echo &quot;Falha no teste do Node&quot;; exit 1; }<br><br># Aviso sobre a chave privada<br>echo &quot;A seguir, será exibida a chave privada. É importante que você a salve em um local seguro.&quot;<br>echo &quot;Para adicionar em uma carteira cripto, lembre-se de incluir &#39;0x&#39; na frente da chave, pois ela está em formato hexadecimal.&quot;<br>read -p &quot;Pressione Enter para continuar e visualizar a chave privada...&quot;<br><br># Mostrar a chave privada<br>echo &quot;Copie a chave privada e mantenha-a segura...&quot;<br>cat geth-data/geth/nodekey || { echo &quot;Falha ao acessar a chave privada&quot;; exit 1; }</pre><h4>3. Salvar e Sair</h4><ul><li>Pressione Ctrl + O para salvar o arquivo.</li><li>Pressione Enter para confirmar o nome do arquivo.</li><li>Pressione Ctrl + X para sair do editor.</li></ul><h4>4. Tornar o Script Executável</h4><p>Para executar o script, primeiro é necessário torná-lo executável:</p><pre>chmod +x install_unichain-node</pre><h4>5. Executar o Script</h4><p>Agora, execute o script para criar um novo container:</p><pre>./install_unichain-node</pre><h4>6. Consulte os Logs do Node</h4><p>Para verificar se o node está rodando de forma adequada, você pode consultar as saídas de logs do docker compose com os seguintes comandos:</p><pre>cd ~/unichain-node<br>sudo docker-compose logs -f --tail 1000</pre><h3>Considerações Finais</h3><p>Parabéns! Agora você tem o node da Unichain rodando e pronto para interagir com a testnet.</p><p>Este guia está em constante atualização, então consulte-o regularmente para acompanhar as novidades e garantir que seu node esteja sempre em dia com as melhores práticas e configurações.</p><p>Se você encontrar dificuldades ou erros ao seguir este guia, não hesite em compartilhar suas dúvidas e experiências na comunidade <strong>BR Nodes</strong>. Estamos sempre prontos para ajudar e colaborar com outros operadores de nodes!</p><h3>Comandos Úteis para Gerenciamento do Node Unichain</h3><p>Aqui está uma lista de comandos que podem ser úteis ou necessários na operação deste node:</p><h4>Iniciando o node</h4><p>Caso a node tenha parado por algum motivo qualquer, você iniciá-lo com:</p><pre>sudo docker-compose up -d</pre><h4>Parando o node</h4><p>Parar o node é mais recomendável do que simplesmente desligar a máquina onde ele está rodando, você pode pará-lo com:</p><pre>sudo docker-compose down</pre><p>Verificando containers ativos</p><p>Podemos verificar quais containers do node estão ativos (UP) ou inativos (DOWN ou EXITED) e o há quanto tempo com:</p><pre>sudo docker ps -a</pre><p>Esses comandos ajudarão a gerenciar seu Node Unichain, afinal nem sempre é só instalar a aplicação. Se sentir alguma dificuldade ou a falta de algum comando, pode nos avisar!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f75fcad790cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Como Criar um Pendrive Bootável sem Baixar Programas no Windows]]></title>
            <link>https://brnodes.medium.com/como-criar-um-pendrive-boot%C3%A1vel-sem-baixar-programas-no-windows-bb85a4c6a15b?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb85a4c6a15b</guid>
            <category><![CDATA[flash-drive]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Sat, 28 Sep 2024 00:23:44 GMT</pubDate>
            <atom:updated>2024-11-12T10:14:53.380Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZeV9BnNEFVAEpmMrCusfA.jpeg" /></figure><p>Se você tem aquele notebook ou computador antigo e quer dar uma nova vida a ele ou quer usar para rodar nodes, seja instalando uma versão de Linux, como o Ubuntu, ou apenas reinstalando o Windows, há uma maneira prática de fazer isso sem precisar baixar programas adicionais. Com os recursos já presentes no Windows, você pode facilmente criar um pendrive bootável.</p><p>Muitos guias sugerem a instalação de softwares externos para preparar o pendrive, mas se você, assim como eu, quer um método mais simples para transformar esse computador antigo em uma máquina útil, este guia vai te mostrar como criar um pendrive bootável diretamente pela linha de comando do Windows, sem complicações.</p><h3>Disclaimer</h3><p>Este guia tem finalidade instrucional e, por vezes, caráter experimental. Apesar dos esforços para garantir a precisão das informações, podem haver erros ou omissões não intencionais. O uso deste guia é por sua conta e risco. Recomenda-se que você faça backups de seus dados e sistemas antes de seguir as instruções e avalie cuidadosamente as etapas antes de aplicá-las ao seu ambiente.</p><h3>Comunidade BR Nodes</h3><p>Se você está interessado em aprofundar seus conhecimentos e trocar experiências sobre a operação de nodes, convido você a conhecer a comunidade <strong>BR Nodes</strong>. Somos uma comunidade aberta em língua portuguesa, focada na operação de nodes, onde compartilhamos dicas, resolvemos problemas juntos e aprendemos uns com os outros. Junte-se a nós e faça parte desse grupo colaborativo!</p><ul><li><a href="http://linktr.ee/brnodes">linktr.ee/brnodes</a></li></ul><h3>Criando o Pendrive Bootável com a ISO do seu Sistema Operacional</h3><h4>Passo 1: Baixar a ISO do Sistema Operacional</h4><p>Antes de começar, você precisa obter o arquivo ISO do sistema operacional que deseja instalar. Visite o site oficial do sistema operacional escolhido e faça o download da versão mais que você deseja utilizar. Certifique-se de salvar o arquivo em um local de fácil acesso no seu computador.</p><h4>Passo 2: Conectar o Pendrive</h4><p>Conecte o pendrive ao seu computador. Verifique se ele está vazio ou faça backup de todos os arquivos importantes, pois o processo de formatação apagará todos os dados contidos no dispositivo.</p><h4>Passo 3: Abrir o Prompt de Comando</h4><p>Pressione Windows + R para abrir a caixa de execução. Digite cmd e pressione Enter para abrir o Prompt de Comando.</p><h4>Passo 4: Iniciar o DiskPart</h4><p>No Prompt de Comando, digite diskpart e pressione Enter. Isso abrirá a ferramenta DiskPart, que será usada para gerenciar o pendrive.</p><h4>Passo 5: Listar os Discos Conectados</h4><p>Digite list disk e pressione Enter. O sistema exibirá todos os discos conectados ao computador. Identifique o número que corresponde ao seu pendrive (por exemplo, Disk 1).</p><h4>Passo 6: Selecionar o Pendrive</h4><p>Digite select disk X (substitua X pelo número do pendrive identificado no passo anterior) e pressione Enter para selecionar o pendrive.</p><h4>Passo 7: Limpar o Pendrive</h4><p>Digite clean e pressione Enter. Esse comando apagará todas as partições existentes no pendrive, deixando-o pronto para a criação da nova partição.</p><h4>Passo 8: Criar uma Nova Partição</h4><p>Digite create partition primary e pressione Enter para criar uma nova partição primária. Em seguida, digite select partition 1 e pressione Enter para selecionar essa partição. Torne a partição ativa com o comando active.</p><h4>Passo 9: Formatar o Pendrive</h4><p>Digite format fs=fat32 quick e pressione Enter para formatar rapidamente o pendrive no sistema de arquivos FAT32, compatível com a maioria dos sistemas operacionais.</p><h4>Passo 10: Sair do DiskPart</h4><p>Quando a formatação estiver concluída, digite exit para fechar o DiskPart e voltar ao Prompt de Comando.</p><h4>Passo 11: Montar a Imagem ISO</h4><p>Clique com o botão direito do mouse no arquivo ISO do sistema operacional baixado no Passo 1 e selecione a opção “Montar”. Isso criará uma unidade virtual no Windows, permitindo o acesso aos arquivos da ISO.</p><h4>Passo 12: Copiar os Arquivos da ISO para o Pendrive</h4><p>Identifique a letra da unidade onde a ISO foi montada (por exemplo, E:) e a letra do pendrive (por exemplo, D:). No Prompt de Comando, digite o seguinte comando para copiar os arquivos da ISO para o pendrive:</p><pre>xcopy E:\* D:\ /E /H /F</pre><p>Substitua <strong>E:</strong> pela letra da unidade onde a ISO está montada e <strong>D:</strong> pela letra do seu pendrive. Pressione Enter para iniciar a cópia dos arquivos.</p><h4>Passo 13: Inicializar o Computador com o Pendrive</h4><p>Agora que o pendrive está pronto, você pode usá-lo para iniciar a instalação do sistema operacional. Reinicie o computador e entre no menu de boot (geralmente pressionando uma tecla como F2, F12 ou ESC durante a inicialização). Selecione o pendrive como dispositivo de boot e prossiga com a instalação do sistema operacional. Agora é com você! Boa sorte!</p><h3>Considerações Finais</h3><p>Seu pendrive bootável está pronto para instalar o sistema operacional de sua escolha. Com este guia, você pode criar pendrives bootáveis de forma simples e eficiente, utilizando apenas os recursos nativos do Windows.</p><p>Este método funciona para qualquer sistema operacional que possa ser instalado a partir de um pendrive, sem a necessidade de baixar programas externos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb85a4c6a15b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Ubuntu Sem Medo com WSL no Windows 10 ou 11]]></title>
            <link>https://brnodes.medium.com/linux-ubuntu-sem-medo-com-wsl-no-windows-10-ou-11-82f0bd43c3eb?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/82f0bd43c3eb</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Fri, 27 Sep 2024 20:14:47 GMT</pubDate>
            <atom:updated>2024-11-12T10:15:32.335Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uNNLKJvDzlNQYj5ihp32Yw.jpeg" /></figure><p>A maioria das aplicações de nodes opera em sistemas Linux, especialmente no Ubuntu 22.04. Se a ideia de utilizar Linux te assusta só de pensar em instalar outro sistema operacional, saiba que não precisa ser assim! Uma ótima maneira de começar é rodando suas aplicações de nodes por meio do Windows Subsystem for Linux (WSL). O WSL permite que você execute um ambiente Linux diretamente no Windows 10 ou 11, sem a necessidade de instalar uma máquina virtual ou fazer dual boot.</p><p>Caso você deseje rodar mais de um node nesse ambiente do WSL, você certamente vai precisar fazer uso de contêineres, o que você aprende no guia <a href="https://brnodes.medium.com/nodes-mais-eficientes-com-docker-um-guia-de-opera%C3%A7%C3%A3o-containerizada-5c264c67e4ef"><strong>Nodes Mais Eficientes com Docker: Um Guia de Operação Containerizada</strong></a>. Então, se você está querendo rodar sua aplicação em uma máquina com Windows 10 ou 11 ou ainda não se sente confiante para saltar diretamente no Ubuntu, este guia vai te ajudar. Vamos aprender como instalar o WSL para usar o terminal do Linux Ubuntu diretamente no Windows.</p><h3>Disclaimer</h3><p>Este guia tem finalidade instrucional e, por vezes, caráter experimental. Apesar dos esforços para garantir a precisão das informações, podem haver erros ou omissões não intencionais. O uso deste guia é por sua conta e risco. Recomenda-se que você faça backups de seus dados e sistemas antes de seguir as instruções e avalie cuidadosamente as etapas antes de aplicá-las ao seu ambiente.</p><h3>Comunidade BR Nodes</h3><p>Se você está interessado em aprofundar seus conhecimentos e trocar experiências sobre a operação de nodes, convido você a conhecer a comunidade <strong>BR Nodes</strong>. Somos uma comunidade aberta em língua portuguesa, focada na operação de nodes, onde compartilhamos dicas, resolvemos problemas juntos e aprendemos uns com os outros. Junte-se a nós e faça parte desse grupo colaborativo!</p><ul><li>linktr.ee/brnodes</li></ul><h3>O que é o WSL: Uma Explicação Mais Técnica</h3><p>O Windows Subsystem for Linux (WSL) é uma camada de compatibilidade desenvolvida pela Microsoft que permite a execução nativa de binários Linux no Windows 10 e 11. Essencialmente, o WSL fornece uma interface que traduz chamadas de sistema do Linux para o kernel do Windows, permitindo que aplicativos Linux rodem sem a necessidade de máquinas virtuais tradicionais ou configurações de dual boot.</p><p>Tecnicamente, o WSL funciona como um subsistema que interage com o kernel do Windows através de um ambiente de execução POSIX. Com o lançamento do WSL 2, a Microsoft introduziu um kernel Linux real rodando dentro de uma máquina virtual leve, utilizando a tecnologia de virtualização Hyper-V. Isso melhora significativamente a compatibilidade com aplicativos Linux e oferece desempenho quase nativo.</p><p>O WSL permite acesso ao sistema de arquivos do Windows, integração com ferramentas e aplicações Windows, e suporte a redes e sistemas de arquivos complexos. Para desenvolvedores e administradores de sistemas, isso significa que é possível utilizar ferramentas, scripts e ambientes Linux diretamente no Windows, facilitando fluxos de trabalho e aumentando a produtividade.</p><h3>Configurando o WSL no seu sistema Windows</h3><p>Para instalar o WSL (Windows Subsystem for Linux) com Ubuntu 22.04 e rodar seus nodes no Windows 10 ou 11, siga os passos abaixo:</p><h4><strong>1. Verifique os pré-requisitos</strong></h4><ul><li>Windows 10: Versão 2004 ou superior (Build 19041 ou superior).</li><li>Windows 11: Qualquer versão.</li></ul><h4>2. Abrir o PowerShell ou Prompt de Comando como Administrador</h4><h4>PowerShell</h4><ol><li>Pressione a tecla Windows.</li><li>Digite PowerShell na barra de pesquisa.</li><li>Clique com o botão direito no ícone do PowerShell e selecione Executar como administrador.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*TgR2rYYowW8U71wUVtCDAw.png" /></figure><h4>Prompt de Comando</h4><ol><li>Pressione a tecla Windows.</li><li>Digite cmd na barra de pesquisa.</li><li>Clique com o botão direito no ícone do Prompt de Comando e selecione Executar como administrador.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*btWWcvtmQ-XzHRRLYNFwYg.png" /></figure><h4>3. Habilitar o WSL e instalar o Linux Ubuntu 22.04</h4><p>Dentro do terminal que abriu você irá digitar o comando abaixo:</p><pre>wsl --install -d Ubuntu-22.04</pre><h4><strong>4. Reiniciar o Computador</strong></h4><p>Após a execução do comando, você precisará reiniciar o computador para completar a instalação.</p><h4>5. Acessar o WSL</h4><p>Após reiniciar o computador depois da instalação do WSL com Ubuntu 22.04, a janela do terminal do Ubuntu não abrirá automaticamente. Para acessar o Ubuntu, você precisará chamar o comando WSL no PowerShell ou no Prompt de Comando, similar ao feito no passo 2.</p><pre>wsl</pre><h4>6. Atualizar o Ubuntu</h4><p>Depois da configuração inicial, é recomendável atualizar o sistema. No terminal do Ubuntu, execute:</p><pre>sudo apt update -y &amp;&amp; sudo apt upgrade -y</pre><h3>Não funcionou e agora?</h3><p>Se você estiver em uma versão mais antiga do Windows ou se wsl --install não funcionar, siga estas etapas:</p><ol><li>Abra novamente o PowerShell como administrador.</li><li>Execute os seguintes comandos para habilitar manualmente os recursos do WSL:</li></ol><pre>dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart<br>dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart</pre><p>3. Reinicie o computador</p><p>4. Volte ao item 5 do guia, deve funcionar.</p><h3>Agora é com você!</h3><p>Se tudo correu bem, você já está utilizando o terminal do Ubuntu. Esse terminal funciona da mesma forma que o terminal de uma instalação Ubuntu Server, do seu VPS com Ubuntu, ou até mesmo de um Ubuntu Desktop.</p><p>A partir daqui, você pode seguir o guia de instalação do node que deseja rodar ou apenas explorar e testar as funcionalidades do terminal do Ubuntu.</p><p>Divirta-se!</p><h3>Considerações Finais</h3><p>Chegamos ao fim deste guia sobre como utilizar o Linux Ubuntu através do WSL no Windows 10 ou 11. Esperamos que este material tenha facilitado sua jornada e tornado o mundo do Linux mais acessível. Agora, você está pronto para rodar suas aplicações de nodes e explorar as inúmeras possibilidades que o Ubuntu oferece, tudo isso sem sair do conforto do seu sistema Windows.</p><p>Lembre-se de que a prática leva à perfeição. Não hesite em experimentar, errar e aprender com cada passo. Se surgir alguma dúvida ou você quiser compartilhar suas experiências, sinta-se à vontade para fazer parte da nossa comunidade. Juntos, podemos tornar o aprendizado ainda mais rico e colaborativo.</p><p>Obrigado por nos acompanhar, e até a próxima!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82f0bd43c3eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nodes Mais Eficientes com Docker: Um Guia de Operação Containerizada]]></title>
            <link>https://brnodes.medium.com/nodes-mais-eficientes-com-docker-um-guia-de-opera%C3%A7%C3%A3o-containerizada-5c264c67e4ef?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c264c67e4ef</guid>
            <category><![CDATA[node-operators]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Fri, 27 Sep 2024 18:16:12 GMT</pubDate>
            <atom:updated>2025-06-28T21:44:33.906Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sboG4uAS0dYktby5Q6oHjA.jpeg" /></figure><p>Você já se deparou com aquele cenário frustrante em que diferentes nodes em um servidor começam a entrar em conflito? Atualizações que deveriam melhorar o sistema acabam quebrando tudo, e a única saída parece ser formatar e recomeçar do zero. E se você pudesse isolar cada aplicação em seu próprio “campo de força”, protegendo o sistema e permitindo que cada node opere sem interferir nos outros?</p><p>Imagine poder rodar múltiplos nodes na mesma máquina, como se cada um estivesse em sua própria bolha, isolada e segura. Se algo der errado com uma aplicação, você simplesmente remove aquela bolha problemática, sem afetar o restante do ambiente. Isso não só economiza tempo como também recursos, tornando a operação muito mais eficiente.</p><p>Ao utilizar containers como o Docker, você pode encapsular cada node em um ambiente isolado, garantindo que eles coexistam de forma harmoniosa no mesmo servidor ou na sua máquina local. Essa abordagem permite que você gerencie seus nodes com mais tranquilidade, evitando conflitos e facilitando o dia a dia na operação.</p><h3>ALERTA</h3><p>A forma como o guia atual prepara o container docker ainda possui algumas limitações as quais eu não consegui superar, como por exemplo, nodes que que são carregados como serviços por meio do systemd, o que inclui as aplicações baseadas no SDK da Cosmos.</p><p>Em uma versão anterior deste guia, tentei usar o Dockerfile para deixar o container, de certa forma, pronto, mas estou enfrentando problemas com algumas aplicações. Por isso, voltei a uma versão anterior do guia, onde as aplicações precisam ser instaladas manualmente dentro do container.</p><h4>Aplicações que funcionam dentro de containers</h4><p>- Powerloom<br>- Xprotocol<br>- Juneo<br>- Rivalz rClient (rNode)<br>- Rivalz zNode<br>- Unichain (nem sempre funciona, é preciso testar)<br>- Boundless CLI<br>- T3RN</p><h4>Aplicações que NÃO consegui utilizar dentro de um container</h4><p>- Shardeum<br>- Warden (Cosmos SDK)<br>- Mantra (Cosmos SDK)<br>- Dusk Network</p><h3>Disclaimer</h3><p>Este guia está em constante atualização e tem finalidade instrucional e, por vezes, caráter experimental. Apesar dos esforços para garantir a precisão das informações, podem haver erros ou omissões não intencionais. O uso deste guia é por sua conta e risco. Recomenda-se que você faça backups de seus dados e sistemas antes de seguir as instruções e avalie cuidadosamente as etapas antes de aplicá-las ao seu ambiente.<br>Atualizado em 28/06/2025.</p><h3>Comunidade BR Nodes</h3><p>Se você está interessado em aprofundar seus conhecimentos e trocar experiências sobre a operação de nodes, convido você a conhecer a comunidade <strong>BR Nodes</strong>. Somos uma comunidade aberta em língua portuguesa, focada na operação de nodes, onde compartilhamos dicas, resolvemos problemas juntos e aprendemos uns com os outros. Junte-se a nós e faça parte desse grupo colaborativo!</p><ul><li><a href="http://linktr.ee/brnodes">linktr.ee/brnodes</a></li></ul><h3>O que é um Container Docker Rodando Ubuntu: Uma Explicação Mais Técnica</h3><p>Um <strong>container Docker</strong> é uma instância leve, portátil e isolada de um ambiente que permite executar aplicações com todas as suas dependências, bibliotecas e configurações necessárias. O Docker utiliza tecnologias de virtualização a nível de sistema operacional, como namespaces e cgroups do Linux, para isolar processos e gerenciar recursos sem a sobrecarga de uma máquina virtual completa.</p><p>Quando você executa um <strong>container Docker rodando Ubuntu</strong>, está criando um ambiente isolado que replica o sistema operacional Ubuntu dentro do seu host. Este container inclui o sistema de arquivos, bibliotecas e ferramentas do Ubuntu, mas compartilha o kernel do sistema operacional host. Isso significa que, embora o container pareça um sistema separado, ele utiliza o mesmo kernel que o host, economizando recursos e melhorando a eficiência.</p><h4>Componentes Principais</h4><ul><li><strong>Imagem Docker</strong>: É um pacote imutável contendo todas as instruções necessárias para criar um container. No caso do Ubuntu, a imagem inclui o sistema de arquivos raiz do Ubuntu.</li><li><strong>Container Docker</strong>: É uma instância em execução de uma imagem Docker. Quando você inicia um container a partir de uma imagem Ubuntu, o Docker cria um ambiente isolado baseado nessa imagem.</li></ul><h4>Características de um Container Ubuntu no Docker</h4><ul><li><strong>Isolamento de Aplicações</strong>: Cada container opera em seu próprio ambiente, garantindo que bibliotecas e dependências não entrem em conflito com outras aplicações no host ou em outros containers.</li><li><strong>Leveza e Eficiência</strong>: Como os containers compartilham o kernel do host e não precisam de um sistema operacional completo, eles são muito mais leves do que máquinas virtuais.</li><li><strong>Portabilidade</strong>: Imagens Docker podem ser executadas em qualquer máquina que tenha o Docker instalado, garantindo que a aplicação funcione de forma consistente em diferentes ambientes.</li></ul><h3>Criando um Container Ubuntu para Seus Nodes ou Aplicação</h3><p>Neste guia, vamos focar na criação de um <strong>container Ubuntu</strong> que servirá como base para rodar suas aplicações de nodes. Para facilitar esse processo, vamos desenvolver um script que automatiza a criação do container, dando a opção de instalar uma imagem do <strong>Ubuntu 22.04</strong> ou <strong>Ubuntu 24.04</strong>. Você deve escolher a versão que esteja alinhada com a <strong>aplicação </strong>que pretende rodar, garantindo assim maior compatibilidade e estabilidade.</p><p>O script solicitará que você insira um nome para o container via prompt, tornando o processo mais dinâmico e personalizado. Além disso, o script gerará automaticamente um segundo script específico para acessar o container diretamente, no formato ./nome_do_container. Isso simplifica o acesso ao ambiente isolado, permitindo que você entre no container com um único comando.</p><h3>Instalando o Docker via Terminal no seu VPS ou Host Linux</h3><p>Antes de prosseguirmos com a criação dos containers, é fundamental garantir que o Docker esteja instalado e atualizado em seu sistema. O Docker é a plataforma que permitirá a criação e gerenciamento dos containers que utilizaremos para isolar nossos nodes.</p><h4>Verificando se o Docker Está Instalado</h4><p>Para verificar se o Docker já está instalado em seu sistema e qual versão está em uso, abra o terminal e execute o seguinte comando:</p><pre>docker --version</pre><p>Se o Docker estiver instalado, você verá uma saída semelhante a esta:</p><pre>Docker version 20.10.24, build 297e128</pre><h4>Verificando se Você Está na Última Versão</h4><p>É importante utilizar a versão mais recente do Docker para garantir compatibilidade e segurança. Você pode comparar a versão instalada em seu sistema com a versão mais recente disponível na documentação oficial do Docker.</p><p>Se a sua versão for mais antiga do que a versão listada na documentação, é recomendável atualizar o Docker.</p><h4>Instalando o Docker</h4><p>Caso o Docker não esteja instalado ou você precise atualizá-lo, siga as instruções oficiais de instalação. A documentação oficial fornece guias detalhados para diferentes distribuições Linux, garantindo uma instalação correta e segura, no link abaixo você irá encontrar os comandos para instalar o docker em um VPS com o Ubuntu ou em um terminal de uma instalação Ubuntu:</p><ul><li><a href="https://docs.docker.com/engine/install/ubuntu/">Instalação do Docker no Ubuntu</a></li></ul><h4>Testando a Instalação</h4><p>Para confirmar que o Docker está instalado e funcionando corretamente, execute o comando:</p><pre>sudo docker run hello-world</pre><p>Este comando baixa uma imagem de teste e a executa em um container. Se tudo estiver funcionando, você verá a mensagem abaixo de sucesso no terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*Yqx0BgmkDpvCNiCtQeOUXA.png" /></figure><h3>Criando um Script para Automatizar a Criação de Containers Ubuntu</h3><p>Agora que o Docker está instalado e você entende a importância de utilizar containers para isolar suas aplicações de nodes, vamos criar um script que automatiza a criação desses containers Ubuntu 22.04. Este script facilitará o processo, permitindo que você crie novos containers de forma rápida e consistente.</p><h4>Objetivo do Script</h4><ul><li><strong>Solicitar o nome do container</strong>: O script pedirá que você insira um nome para o novo container, facilitando a identificação e gestão dos containers.</li><li><strong>Criar o container</strong>: Usando o nome fornecido, o script criará um container baseado na imagem oficial do Ubuntu 22.04 LTS ou Ubuntu 24.04 LTS.</li><li><strong>Instalar os principais pacotes:</strong> o container Ubuntu vem em uma forma bastante minimalista, com poucas ferramentas instaladas por padrão. Para operar seus nodes será necessário instalar alguns pacotes essenciais (sudo, nano, git, wget, screen, curl, entre outros).</li><li><strong>Modificação do prompt do container:</strong> é altamente recomendável modificar o prompt do terminal para identificar de forma clara em qual container você está trabalhando.</li><li><strong>Gerar um script de acesso rápido</strong>: Para simplificar o acesso ao container, o script criará um segundo script que permite entrar no container com um único comando (./nome_do_container).</li></ul><h4>Passo a Passo para Criar o Script</h4><h4>1. Criar o Arquivo do Script</h4><p>Crie um novo arquivo chamado create_container no diretório de sua preferência:</p><pre>nano create_container#!/bin/bash<br># Updated on June 28, 2025<br>#<br># Description:<br># This script prepares a Docker container by updating the system, installing essential packages,<br># creating a .screenrc file to ensure screen uses bash, and configuring the terminal prompt<br># to display the container name and current working directory with colors, even within screen sessions.<br>#<br># Updates Made:<br># - Added commands for system update and installation of essential packages (sudo, nano, curl, wget, git, jq, screen).<br># - Included a .screenrc file creation to explicitly set bash as the default shell for screen sessions.<br># - Configured the PS1 variable using PROMPT_COMMAND and a function to dynamically update the prompt<br>#   with the container name and current working directory, ensuring it works correctly in screen.<br># - Added ANSI color codes to the PS1 definition for a more visually appealing and standard-looking prompt.<br><br># Update the system and install necessary packages<br>apt update -y &amp;&amp; sudo apt upgrade -y<br>apt install -y sudo nano curl wget git jq screen &amp;&amp; apt clean<br><br># Create or modify the .screenrc file to ensure screen uses bash<br>echo &quot;shell /bin/bash&quot; &gt; /root/.screenrc<br><br># Modify the terminal prompt to display the container name with colors<br>echo &quot;update_prompt() { PS1=\&quot;\[\033[01;32m\]root@container_${CONTAINER_NAME}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \&quot;; }&quot; &gt;&gt; /root/.bashrc<br>echo &quot;PROMPT_COMMAND=update_prompt&quot; &gt;&gt; /root/.bashrc<br><br># Source .bashrc to apply changes immediately in the current shell<br>source /root/.bashrc</pre><h4>2. Adicionar as Instruções ao Script</h4><p>Cole o seguinte conteúdo no arquivo:</p><pre>#!/bin/bash<br># Updated on June 28, 2025<br>#<br># Changes from the previous version:<br># - Added an initial check to ensure no file with the same container name exists in the current directory.<br>#   If a file with the same name is found, the script displays a warning and exits.<br># - Modified the Ubuntu version selection prompt to offer numbered options (1 for 24.04, 2 for 22.04).<br># - Implemented default selection behavior: if the user presses Enter or doesn&#39;t type anything within 30 seconds,<br>#   Ubuntu 24.04 will be automatically selected.<br># - The final output message has been adjusted to reflect the chosen Ubuntu version.<br><br># Prompt the user for the container name<br>echo &quot;Enter the name of the container you want to create:&quot;<br>read CONTAINER_NAME<br><br># Check if the name is not empty<br>if [ -z &quot;$CONTAINER_NAME&quot; ]; then<br>  echo &quot;The container name cannot be empty.&quot;<br>  exit 1<br>fi<br><br># Check if a file with the container name already exists<br>if [ -f &quot;$CONTAINER_NAME&quot; ]; then<br>  echo &quot;Warning: A file with the name &#39;$CONTAINER_NAME&#39; already exists in the current directory.&quot;<br>  echo &quot;Please choose a different container name or remove the existing file.&quot;<br>  exit 1<br>fi<br><br># Prompt the user for the Ubuntu version with options and a timeout<br>echo &quot;Choose the Ubuntu version for your container:&quot;<br>echo &quot;1 - Ubuntu 24.04 (Default)&quot;<br>echo &quot;2 - Ubuntu 22.04&quot;<br>echo &quot;Enter your choice (1 or 2) or press Enter for 24.04 (timeout in 30 seconds):&quot;<br><br># Read user input with a timeout of 30 seconds<br>read -t 30 CHOICE<br><br># Determine the Ubuntu version based on user&#39;s choice or timeout<br>if [ -z &quot;$CHOICE&quot; ]; then<br>  # If input is empty (Enter pressed) or timeout occurred<br>  UBUNTU_VERSION=&quot;24.04&quot;<br>  echo &quot;No input received or Enter pressed. Defaulting to Ubuntu 24.04.&quot;<br>elif [ &quot;$CHOICE&quot; == &quot;1&quot; ]; then<br>  UBUNTU_VERSION=&quot;24.04&quot;<br>  echo &quot;Selected Ubuntu 24.04.&quot;<br>elif [ &quot;$CHOICE&quot; == &quot;2&quot; ]; then<br>  UBUNTU_VERSION=&quot;22.04&quot;<br>  echo &quot;Selected Ubuntu 22.04.&quot;<br>else<br>  echo &quot;Invalid choice. Please enter &#39;1&#39; or &#39;2&#39;.&quot;<br>  exit 1<br>fi<br><br># Create and start the container with privileges, access to docker.sock, and set CONTAINER_NAME as an environment variable<br># The Ubuntu image tag now uses the user-specified version<br>docker run -dit --name &quot;$CONTAINER_NAME&quot; --privileged \<br>  -v /var/run/docker.sock:/var/run/docker.sock \<br>  -v /sys/fs/cgroup:/sys/fs/cgroup:rw \<br>  -e CONTAINER_NAME=&quot;$CONTAINER_NAME&quot; \<br>  ubuntu:&quot;$UBUNTU_VERSION&quot; \<br>  /bin/bash <br><br># Check if the docker run command was successful<br>if [ $? -ne 0 ]; then<br>  echo &quot;Error: Failed to create and start the Docker container.&quot;<br>  exit 1<br>fi<br><br># Create a quick access script for the container<br>ACCESS_SCRIPT=&quot;$CONTAINER_NAME&quot;<br><br>echo &quot;#!/bin/bash&quot; &gt; &quot;$ACCESS_SCRIPT&quot;<br>echo &quot;docker exec -it $CONTAINER_NAME bash&quot; &gt;&gt; &quot;$ACCESS_SCRIPT&quot;<br><br># Make the access script executable<br>chmod +x &quot;$ACCESS_SCRIPT&quot;<br><br>echo &quot;Container &#39;$CONTAINER_NAME&#39; created successfully using Ubuntu $UBUNTU_VERSION.&quot;<br>echo &quot;Access script &#39;$ACCESS_SCRIPT&#39; created successfully.&quot;<br>echo &quot;You can access the container by running ./$ACCESS_SCRIPT&quot;</pre><h4>3. Salvar e Sair</h4><ul><li>Pressione Ctrl + O para salvar o arquivo.</li><li>Pressione Enter para confirmar o nome do arquivo.</li><li>Pressione Ctrl + X para sair do editor.</li></ul><h4>4. Tornar o Script Executável</h4><p>Para executar o script, primeiro é necessário torná-lo executável:</p><pre>chmod +x create_container</pre><h4>5. Executar o Script</h4><p>Agora, execute o script para criar um novo container:</p><pre>./create_container</pre><h4>6. Interagir com o Script</h4><p>Ao executar o script, ele solicitará que você insira o nome do container:</p><pre>Digite o nome do container que deseja criar:</pre><p>Digite um nome significativo, por exemplo, node_tal.</p><p>O script irá:</p><ul><li>Criar um container Ubuntu 22.04 com o nome node_tal.</li><li>Gerar um script de acesso rápido chamado node_tal.</li></ul><h4>7. Acessar o Container</h4><p>Para entrar no container, execute o script de acesso rápido criado:,</p><pre>./nomedocontainer</pre><p>Isso abrirá um terminal bash dentro do container node_app.</p><h4>8. Como Sair do Container sem Encerrá-lo e Implicações</h4><p>Para sair do container sem encerrar sua execução, você pode utilizar o atalho de teclado <strong>Ctrl + P + Q</strong>. Esse atalho permite que o container continue rodando em segundo plano enquanto você sai do terminal.</p><p>Se você usar o comando <strong>exit</strong> ou <strong>Ctrl + D</strong> para sair, o container será encerrado junto com o terminal. Portanto, se o objetivo é manter o container ativo, use o atalho correto para evitar que o processo seja interrompido.</p><h3>Preparando o Container para Operação de Nodes</h3><p>O container possui uma instalação simples do Ubuntu 22.04, sem alguns comandos essenciais para o trabalho com nodes. Para garantir que o ambiente esteja completo e pronto para operar nodes, é necessário instalar alguns pacotes básicos:</p><ul><li>sudo: Permite a execução de comandos com privilégios de superusuário, necessários para várias operações administrativas.</li><li>nano: Editor de texto simples para edição de arquivos de configuração.</li><li>curl e wget: Utilitários para baixar arquivos e acessar conteúdos da web, essenciais para obter scripts e binários de nodes.</li><li>git: Usado para clonar repositórios e acessar o código-fonte de projetos de nodes.</li><li>jq: Ferramenta de linha de comando para manipulação de dados JSON, muito útil para lidar com APIs e respostas JSON em operações de nodes.</li><li>screen: Permite gerenciar sessões de terminal múltiplas, facilitando a execução de nodes em segundo plano.</li></ul><p>Além disso, o container não possui um prompt claro que indique em qual ambiente você está trabalhando. Vamos modificar o prompt para incluir o nome do container, ajudando a identificar onde as operações estão sendo realizadas.</p><h4>Comandos para Preparar o Container</h4><p>Dentro do container, execute os seguintes comandos para instalar os pacotes necessários e ajustar o prompt:</p><pre>#!/bin/bash<br># Updated on June 28, 2025<br>#<br># Description:<br># This script prepares a Docker container by updating the system, installing essential packages,<br># creating a .screenrc file to ensure screen uses bash, and configuring the terminal prompt<br># to display the container name and current working directory with colors, even within screen sessions.<br>#<br># Updates Made:<br># - Added commands for system update and installation of essential packages (sudo, nano, curl, wget, git, jq, screen).<br># - Included a .screenrc file creation to explicitly set bash as the default shell for screen sessions.<br># - Configured the PS1 variable using PROMPT_COMMAND and a function to dynamically update the prompt<br>#   with the container name and current working directory, ensuring it works correctly in screen.<br># - Added ANSI color codes to the PS1 definition for a more visually appealing and standard-looking prompt.<br><br># Update the system and install necessary packages<br>apt update -y &amp;&amp; sudo apt upgrade -y<br>apt install -y sudo nano curl wget git jq screen &amp;&amp; apt clean<br><br># Create or modify the .screenrc file to ensure screen uses bash<br>echo &quot;shell /bin/bash&quot; &gt; /root/.screenrc<br><br># Modify the terminal prompt to display the container name with colors<br>echo &quot;update_prompt() { PS1=\&quot;\[\033[01;32m\]root@container_${CONTAINER_NAME}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \&quot;; }&quot; &gt;&gt; /root/.bashrc<br>echo &quot;PROMPT_COMMAND=update_prompt&quot; &gt;&gt; /root/.bashrc<br><br># Source .bashrc to apply changes immediately in the current shell<br>source /root/.bashrcConsiderações Finais</pre><p>Agora, com o container Ubuntu criado e configurado, você está pronto para rodar suas aplicações de nodes de forma totalmente containerizada. Inclusive, como algumas aplicações de nodes podem precisar de containers para rodar e com este guia você poderá instalar e usar o Docker dentro do próprio container, garantindo uma operação eficiente e isolada.</p><p>Se você encontrar dificuldades ou erros ao seguir este guia, não hesite em compartilhar suas dúvidas e experiências na comunidade <strong>BR Nodes</strong>. Estamos sempre prontos para ajudar e colaborar com outros operadores de nodes!</p><h3>Comandos Úteis para Gerenciamento de Containers Docker</h3><p>Aqui está uma lista de comandos Docker que serão úteis para você gerenciar seus containers:</p><h4>Gerenciamento de Containers:</h4><ul><li><strong>Listar containers em execução:</strong></li></ul><pre>docker ps</pre><ul><li><strong>Listar todos os containers (incluindo os parados):</strong></li></ul><pre>`docker ps -a</pre><ul><li><strong>Iniciar um container parado:</strong></li></ul><pre>docker start &lt;nome_do_container&gt;</pre><ul><li><strong>Parar um container em execução:</strong></li></ul><pre>docker stop &lt;nome_do_container&gt;</pre><ul><li><strong>Remover um container parado:</strong></li></ul><pre>docker rm &lt;nome_do_container&gt;</pre><ul><li><strong>Forçar a remoção de um container em execução:</strong></li></ul><pre>docker rm -f &lt;nome_do_container&gt;</pre><h4>Gerenciamento de Imagens:</h4><ul><li><strong>Listar imagens Docker disponíveis:</strong></li></ul><pre>docker images</pre><ul><li><strong>Remover uma imagem Docker:</strong></li></ul><pre>docker rmi &lt;imagem_id&gt;</pre><h4>Acesso ao Container:</h4><ul><li><strong>Acessar um container em execução (abrir terminal bash):</strong></li></ul><pre>docker exec -it &lt;nome_do_container&gt; bash</pre><ul><li><strong>Sair do container sem encerrá-lo:</strong></li></ul><p>Pressione Ctrl + P + Q</p><h4>Logs e Informações:</h4><ul><li><strong>Ver os logs de um container:</strong></li></ul><pre>docker logs &lt;nome_do_container&gt;</pre><ul><li><strong>Ver informações detalhadas sobre um container:</strong></li></ul><pre>docker inspect &lt;nome_do_container&gt;</pre><h4>Volumes e Dados:</h4><ul><li><strong>Criar um volume para persistência de dados:</strong></li></ul><pre>docker volume create &lt;nome_do_volume&gt;</pre><ul><li><strong>Montar um volume ao criar um container:</strong></li></ul><pre>docker run -dit — name &lt;nome_do_container&gt; -v &lt;nome_do_volume&gt;:/caminho/no/container ubuntu:22.04</pre><h4>Atualizações e Limpeza:</h4><ul><li><strong>Atualizar imagens e containers (remover containers e imagens não utilizados):</strong></li></ul><pre>docker system prune</pre><p>Esses comandos ajudarão a gerenciar seus containers e imagens Docker, facilitando a operação de seus nodes de maneira eficiente e organizada.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c264c67e4ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying the Setup of the Rivalz CLI Node: A Quick Start Guide]]></title>
            <link>https://brnodes.medium.com/simplifying-the-setup-of-the-rivalz-cli-node-a-quick-start-guide-d602cc58177b?source=rss-234229815ab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d602cc58177b</guid>
            <dc:creator><![CDATA[BR Nodes]]></dc:creator>
            <pubDate>Fri, 23 Aug 2024 14:42:28 GMT</pubDate>
            <atom:updated>2024-12-01T00:57:01.435Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up the Rivalz CLI node doesn’t have to be a complex task. This quick guide will walk you through the essential steps to install the necessary prerequisites and get the Rivalz CLI up and running with just a few commands.</p><h3>Introduction</h3><p>The Rivalz CLI node is crucial for participating in the Rivalz testnet. Instead of manually installing each component, we’ll streamline the process by automating the setup of the required environment and providing a single command to install the node.</p><p>Updated in 10/07/2024.</p><h3>Prerequisites</h3><p>Before starting, ensure you have:</p><ol><li><strong>Access to an Ubuntu server</strong> (20.04 or 22.04 is recommended).</li><li><strong>Root or sudo privileges</strong>.</li></ol><h3>Step 1: Installing Prerequisites</h3><p>To begin, we’ll create a script that installs all the necessary prerequisites. If you’re not familiar with using a text editor in the terminal, here’s a quick guide using nano:</p><ol><li><strong>Open a new file with nano</strong>: In your terminal, type the following command to create and edit a new script file:</li></ol><pre>nano rivalz_pre_install</pre><p><strong>2. Copy and paste the script below into nano</strong>: Use Ctrl+Shift+V to paste the content if you&#39;re copying it from another source.</p><pre>#!/bin/bash<br><br># Last Updated: 14 November 2024<br><br># Check if Node.js, npm, and NVM are already installed and up-to-date<br>echo &quot;Checking for existing installations and updates for Node.js, npm, and NVM...&quot;<br>latest_nvm_version=$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r .tag_name)<br>installed_nvm_version=$(nvm --version 2&gt;/dev/null)<br><br>latest_node_version=$(nvm ls-remote --lts | tail -1 | awk &#39;{print $1}&#39;)<br>installed_node_version=$(node -v 2&gt;/dev/null)<br><br># Function to prompt for update confirmation<br>confirm_update() {<br>    read -p &quot;Updates are available. Do you want to proceed? (Y/N): &quot; confirm<br>    if [[ $confirm != [Yy] ]]; then<br>        echo &quot;Update canceled by user.&quot;<br>        exit 0<br>    fi<br>}<br><br># Check if updates are needed<br>update_needed=false<br>if [[ &quot;$installed_nvm_version&quot; != &quot;$latest_nvm_version&quot; ]]; then<br>    echo &quot;NVM update needed.&quot;<br>    update_needed=true<br>fi<br>if [[ &quot;$installed_node_version&quot; != &quot;$latest_node_version&quot; ]]; then<br>    echo &quot;Node.js update needed.&quot;<br>    update_needed=true<br>fi<br><br>if [[ &quot;$update_needed&quot; == false ]]; then<br>    echo &quot;All packages are up-to-date. Exiting script.&quot;<br>    exit 0<br>else<br>    confirm_update<br>fi<br><br># Remove previous installations of Node.js and npm if an update is necessary<br>echo &quot;Removing previous installations of Node.js and npm...&quot;<br>sudo apt remove -y nodejs npm<br><br># Update system package list<br>echo &quot;Updating system package list...&quot;<br>sudo apt update<br><br># Install required dependencies<br>echo &quot;Installing required dependencies...&quot;<br>sudo apt install -y curl jq git screen<br><br># Install NVM<br>echo &quot;Installing the latest version of NVM...&quot;<br>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$latest_nvm_version/install.sh | bash<br><br># Load NVM<br>export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;  # This loads NVM<br>[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;  # This loads NVM bash completion<br><br># Add NVM to the shell configuration file if necessary<br>if ! grep -q &#39;export NVM_DIR=&quot;$HOME/.nvm&quot;&#39; ~/.bashrc; then<br>    echo &#39;export NVM_DIR=&quot;$HOME/.nvm&quot;&#39; &gt;&gt; ~/.bashrc<br>    echo &#39;[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;&#39; &gt;&gt; ~/.bashrc<br>    echo &#39;[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;&#39; &gt;&gt; ~/.bashrc<br>fi<br><br># Install the latest LTS version of Node.js<br>echo &quot;Installing the latest LTS version of Node.js...&quot;<br>nvm install --lts<br><br># Use the installed version<br>nvm use --lts<br><br># Check if npm is installed correctly<br>if command -v npm &amp;&gt; /dev/null; then<br>    echo &quot;npm is installed successfully.&quot;<br>else<br>    echo &quot;npm installation failed.&quot;<br>    exit 1<br>fi<br><br># Display installed versions<br>echo &quot;Node.js version:&quot;<br>node -v<br>echo &quot;NPM version:&quot;<br>npm -v<br><br># Reload the shell configuration to ensure everything is updated<br>source ~/.bashrc<br><br>echo &quot;Prerequisites are successfully installed.&quot;</pre><p><strong>3. Save and exit nano</strong>:</p><ul><li>Press Ctrl+O to save the file.</li><li>Press Enter to confirm the filename.</li><li>Press Ctrl+X to exit nano.</li></ul><p><strong>4. Make the script executable</strong>: Now, you’ll need to give the script permission to run. Use the following command:</p><pre>chmod +x rivalz_pre_install</pre><p><strong>5. Run the script</strong>: Finally, execute the script to install the prerequisites:</p><pre>./rivalz_pre_install</pre><p>Alternatively, you can simply copy the entire bash script and paste it directly into your terminal using Ctrl+Shift+V to execute the commands without creating a script file.</p><h3>Step 2: Installing the Rivalz CLI Node</h3><p>Once the prerequisites are installed, you can proceed to install the Rivalz CLI with a single command:</p><pre>npm install -g rivalz-node-cli</pre><p>If you try to run the command above and the system returns “file not found,” you will need to execute the following command:</p><pre>source ~/.bashrc</pre><p>And now repeat Step 2.</p><h3>Step 3: Running the Rivalz CLI node for the first time</h3><p>If you’re running it in a terminal on your computer, you won’t need to use the Screen command. However, if you’re using a VPS for this, you’ll need Screen. In that case, run the command:</p><pre>screen -S rivalz</pre><p>Now that the node has been installed, you need to run and configure it. You’ll have to provide the wallet you’re using on the Rivalz testnet, then specify the HDD or SSD you’ll be using, and finally indicate the amount of memory you’ll allocate for the node.</p><p>So, before executing the command, copy your wallet address and then run the command:</p><pre>rivalz run</pre><ol><li>Enter the EVM wallet;</li><li>Specify the storage that will be used;</li><li>Indicate how much of the storage will be used (you can set it to maximum);</li></ol><p>The node should start running, and you’ll see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*2vbuBY1x7jdZhisYH0mvCA.png" /></figure><p>If you’re on your computer, just leave the terminal window open. If you’re on a VPS, you can type Ctrl + A and then D. Your VPS will keep the terminal open in the background, and you can close the VPS.</p><h3>Step 4: Restarting the node</h3><p>If your node stops or needs to be restarted on your computer, simply return to the terminal and type rivalz run. If you need to return to the VPS terminal, the screen command is slightly different now:</p><pre>screen -r rivalz</pre><p>and then just repeat the command rivalz run.</p><h3>Final Thoughts</h3><p>By following these simplified steps, you’ll have all the necessary tools to get your Rivalz CLI node up and running in no time. This streamlined approach ensures that you have a consistent environment, making the process more efficient and less error-prone.</p><p>Feel free to share this guide with others in the community who are looking to quickly set up their Rivalz CLI node.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d602cc58177b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>