<?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 philipp on Medium]]></title>
        <description><![CDATA[Stories by philipp on Medium]]></description>
        <link>https://medium.com/@mail_96533?source=rss-b5953d7658c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by philipp on Medium</title>
            <link>https://medium.com/@mail_96533?source=rss-b5953d7658c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:32:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mail_96533/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[Compile and run XSN Masternode on ARM server for Oracle Lifetime Free Tier]]></title>
            <link>https://medium.com/@mail_96533/compile-and-run-xsn-masternode-on-arm-server-358fdf83feb6?source=rss-b5953d7658c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/358fdf83feb6</guid>
            <category><![CDATA[masternodes]]></category>
            <category><![CDATA[xsn]]></category>
            <category><![CDATA[stakenet]]></category>
            <dc:creator><![CDATA[philipp]]></dc:creator>
            <pubDate>Tue, 21 Dec 2021 18:00:57 GMT</pubDate>
            <atom:updated>2022-02-09T17:04:48.909Z</atom:updated>
            <content:encoded><![CDATA[<p>This is guide will teach you how to operate a XSN masternode on ARM based servers. In combination with the Oracle Cloud Free-Tier you can host your own XSN masternode without any costs.</p><p>The ARM CPU architecture is becoming more and more popular and servers are already available at most major cloud providers.</p><p>Since there is no ARM release for XSNd yet, you will find the step-by-step instructions on how to compile xsnd on your ARM server, which could also be a Raspberry PI for example.</p><p>Oracle is currently offering 4 ARM vCPUs and 24GB of memory in their lifetime free tier (creditcard required for registration).</p><p><a href="https://www.oracle.com/cloud/free/#always-free">Access Cloud Services for Free</a></p><h3>1. Create Oracle VM instance</h3><p>After you have completed your registration, login to the Oracle Cloud dashboard and create a new VM instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*pdBqa3Aio-Civ9NmGkt9kA.png" /><figcaption>create new VM instance</figcaption></figure><p>First you select the “shape” of your instance, which is Oracle´s term for server type. Here you want to select the “Ampere” series and then “VM.Standard.A1.Flex”. Make sure its “Always Free-eligible”.</p><p>You can assign up to 4 CPUs and 24GB memory for one instance or create up to 4 instance and distribute the resources according to your wishes.</p><p>If you assign more than 4 CPUs and 24GB memory in summary, you will have to pay for the extend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wi8lqx-NwEzfJ4aZTsPF5Q.png" /></figure><p>Next select an Image. For the instructions in this guide we will use Ubuntu 20.04, but you can choose any other ARM compatible distribution, if you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMJI7Yg1WBlsOPjrvU6PrQ.png" /></figure><p>Create a new SSH key pair or upload your existing public, which you will later use to authenticate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W58FTZfskNZyqccmyqqoaQ.png" /></figure><p>Choose your preferred location and leave everything else regarding Networking and Fault/Availability-Domain according to defaults and create the instance.</p><h3><strong>UPDATE 09.02.2022</strong></h3><p>For the Masternode to work, you need to open an additional firewall port via the Oracle Cloud Console.</p><p>Go to your instance and click on the Subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XcSmWpBUlz6h9gSsRASomg.png" /></figure><p>Click on the Default Security List.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_zyWSvowjit_4K67BF4OOg.png" /></figure><p>Add a new “Ingress Rule”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b2-_Hfm0JCUQ45QbXWDCpQ.png" /></figure><h3>2. Access your VM instance via ssh</h3><p>Go to the Oracle Cloud dashboard -&gt; Compute -&gt; Instances and select your newly created instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LK3RxObGQKboBV07zsbow.png" /></figure><p>Find and copy the Public IP address and the username, which should be “ubuntu”.</p><p>Now you can login with your preferred ssh client and the private key, that you have created or configured in Step 1.</p><pre>ssh -i .ssh/your-prive-key ubuntu@your-public-ip-address</pre><p>Update your operating system to the latest version, server will reboot after its done.</p><pre><strong>ubuntu@arm-01</strong>:<strong>~</strong>$ sudo apt-get update &amp;&amp; sudo apt-get upgrade -y &amp;&amp; sudo reboot</pre><p>Wait for your server to come back online, then login again.</p><h3>3. Install build dependencies for XSNd</h3><p>In this step you will install all the tools you need to compile the xsnd for your arm based operating system. This step will be obsolete, once there is an official arm release of xsn.</p><pre>sudo apt-get install -y libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev g++ pkg-config libtool autoconf gcc make git libdb++-dev</pre><h3>4. Checkout the XSN Github repository</h3><p>Next you have to checkout the source code, that can be found here <a href="https://github.com/X9Developers/XSN">https://github.com/X9Developers/XSN</a>.</p><p>All command entered from here on should be made under the user “ubuntu” and will include “sudo” if necessary.</p><pre>git clone <a href="https://github.com/X9Developers/XSN.git">https://github.com/X9Developers/XSN.git</a></pre><p>Change directory to the just cloned repository</p><pre>cd XSN </pre><p>Checkout the v1.0.28 tag, so you do not build from the potentially unstable master branch.</p><pre>git checkout v1.0.28</pre><p>Run ./autogen.sh script.</p><pre>./autogen.sh</pre><p>Next run “configure”.</p><p>Note that Ubuntu 20.04 comes with BerkelyDB v5.3 (libdb++-dev package from step 3) while XSN wants v4.8. We will ignore this warning with the parameter “with-incompatible-bdb”, since v5.3 will also work.</p><p>Note: This will break wallet compatibility, which is irrelevant for masternodes.</p><pre>./configure --with-incompatible-bdb --without-gui --without-miniupnpc</pre><p>If configure completes without errors, the output should be something like this:</p><pre>Options used to compile and link:</pre><pre>with wallet   = yes</pre><pre>with gui / qt = no</pre><pre>with zmq      = no</pre><pre>with test     = yes</pre><p>After this run “make” to compile the project. This will create the required binaries for running a XSN masternode.</p><p>It will take some time to compile, depending on the power of your machine. On my Oracle instance with 4 cores it took around 10 minutes.</p><pre>make -j 4</pre><p>There will be some warnings, which can be ignored. If the build is successful you should see this.</p><pre>make[2]: Leaving directory ‘/home/ubuntu/XSN/src’</pre><pre>make[1]: Leaving directory ‘/home/ubuntu/XSN/src’</pre><pre>Making all in doc/man</pre><pre>make[1]: Entering directory ‘/home/ubuntu/XSN/doc/man’</pre><pre>make[1]: Nothing to be done for ‘all’.</pre><pre>make[1]: Leaving directory ‘/home/ubuntu/XSN/doc/man’</pre><pre>make[1]: Entering directory ‘/home/ubuntu/XSN’</pre><pre>make[1]: Nothing to be done for ‘all-am’.</pre><pre>make[1]: Leaving directory ‘/home/ubuntu/XSN’</pre><p>Now that we are done compiling, we can install the binaries. Sudo is required.</p><pre>sudo make install </pre><p>Now we can confirm, that we can find the binaries at the expected directories.</p><pre><strong>ubuntu@arm-01</strong>:<strong>~/XSN</strong>$ which xsnd</pre><pre>/usr/local/bin/xsnd</pre><p>Do not start xsnd at this stage. If you accidentally started xsnd, stop it and delete the .xsncore directory in your home folder by executing this.</p><pre>killall xsnd<br>rm -rf /home/ubuntu/.xsncore</pre><h3>5. Local wallet configuration</h3><p>In your local XSN wallet go to “Tools”, open the “debug console” and enter the following command to create a legacy address, that will be used for your masternode.</p><p>Replace the alias with a name you can identify your masternode with e.g VM instance name. Note your <strong>ALIAS</strong> for later.</p><pre>getnewaddress “alias” legacy</pre><p>The command will return an address starting with a “x”.</p><p>Send <em>EXACTLY</em> 15000 XSN to this address in <em>EXACTLY</em> one single transaction. You can send it from the same wallet, that you created the address with.</p><p>Enable CoinControl and the Masternode tab in the wallet by going to Settings -&gt; Options -&gt; Wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*m2W649hg--GCnAD9lFaOaw.png" /></figure><p>Open your debug console again and create the masternode private key. This can only be used for one masternode at a time.</p><pre>masternode genkey</pre><p>Note your <strong>MASTERNODE-PRIVATE-KEY.</strong></p><p>Enter the following command to get your <strong>MASTERNODE OUTPUT</strong>. Save the output for the next step.</p><pre>masternode outputs</pre><p>In your local wallet go to Tools -&gt; Open Masternode Configuration. This will open your local wallets masternode configuration.</p><p>Enter the following in one line.</p><pre><strong>ALIAS</strong> <strong>publicIP</strong>:62583 <strong>MASTERNODE-PRIVATE-KEY MASTERNODE-OUTPUT-1 MASTERNODE-OUTPUT-2</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5QbZhRyxL64Tsl0r0_k9g.png" /></figure><p>Save the file, close your local wallet and open it again.</p><h3>6. Prepare masternode configuration</h3><p>Go back to your VM instance´s shell.</p><p>Still as ubuntu user change to your home directory.</p><pre>cd /home/ubuntu</pre><p>Create a hidden directory for your configuration and change into that directory.</p><pre>mkdir .xsncore &amp;&amp; cd .xsncore</pre><p>Inside this directory create a “xsn.conf” file with your preferred editor like vi or nano.</p><p>Replace the rpcuser and rpcpassword at will.</p><p>Replace publicIP with your VM´s public IP address, which is the same that you use to login to your server.</p><p>Replace the masternode-private-key with the private key from the previous step.</p><pre>vi xsn.conf</pre><pre><em>rpcuser=</em><strong><em>randomuser</em></strong><em><br>rpcpassword=</em><strong><em>randompassword</em></strong><em><br>rpcallowip=127.0.0.1<br>listen=1<br>server=1<br>daemon=1<br>maxconnections=264<br>masternode=1<br>masternodeprivkey=</em><strong><em>masternode-private-key<br></em></strong><em>externalip=</em><strong><em>publicIP</em></strong><em>:62583</em></pre><h3>7. Create a systemd service for the masternode</h3><p>Now that you&#39;re done with your configuration, we need to setup a configuration, that will automatically start the masternode process, even when the server reboots.</p><p>Create a systemd service and paste the following content</p><pre>sudo vi /etc/systemd/system/xsn-masternode.service<br></pre><pre>[Unit]</pre><pre>Description=xsn-masternode</pre><pre>After=network.target</pre><pre>[Service]</pre><pre>User=ubuntu</pre><pre>Group=ubuntu</pre><pre>Type=simple</pre><pre>ExecStart=/usr/local/bin/xsnd --daemon</pre><pre>TimeoutStopSec=20</pre><pre>KillMode=process</pre><pre>Restart=on-failure</pre><pre>[Install]</pre><pre>WantedBy=multi-user.target</pre><p>Reload systemd services.</p><pre>sudo systemctl daemon-reload</pre><p>Enable autostart of the xsn-masternode service.</p><pre>sudo systemctl enable xsn-masternode</pre><p>Start the xsn-masternode service. Only execute this if you have finalized your xsn.conf in step 6.</p><pre>sudo systemctl start xsn-masternode</pre><p>Now your masternode will initialise, which will take quite some time.</p><p>You can follow the progress by checking the logs.</p><pre>tail -f /home/ubuntu/.xsncore/debug.log</pre><p>Your mastermode will be ready, when all blocks are synced. You can check this with xsn-cli. When the number of blocks equals the number of headers, its done.</p><pre><strong>ubuntu@arm-01</strong>:<strong>~/.xsncore</strong>$ xsn-cli getblockchaininfo |grep -E &#39;blocks|header&#39;</pre><pre>&quot;<strong>blocks</strong>&quot;: 4686,</pre><pre>&quot;<strong>header</strong>s&quot;: 1017998,</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=358fdf83feb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>