{"id":467,"date":"2024-01-04T17:42:59","date_gmt":"2024-01-04T17:42:59","guid":{"rendered":"https:\/\/swampcoin.club\/?page_id=467"},"modified":"2025-10-15T05:33:31","modified_gmt":"2025-10-15T05:33:31","slug":"master-nodes-install-manual","status":"publish","type":"page","link":"https:\/\/swampcoin.club\/?page_id=467","title":{"rendered":"Node Install Manual Ubuntu 18-20.04"},"content":{"rendered":"\n<p>At the beginning  need to rent a vps\/vds server, for a masternode the configuration : ( 1 CPU 1 GHz \/ 512 mb RAM \/ 7 GB diskspace ) will be enough.<\/p>\n\n\n\n<p>You also need to have 20 000 coins on your wallet balance.<\/p>\n\n\n\n<p>I\u2019ll make it clear in advance for understanding: <span style=\"color:#7ef580\" class=\"has-inline-color\">don\u2019t worry, the coins will always be in your local wallet under your total control !<\/span> , with the condition that you will not move it from a specific address, but details about this are written below\u2026<\/p>\n\n\n\n<p>Then need to install <strong><span style=\"color:#f99979\" class=\"has-inline-color\">*Ubuntu 18.04<\/span><\/strong>, if this cannot be done automatically using the dashboard in the hosting account, then ask the hosting administrator to install this OS version<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-extra-small-font-size\"><strong><span style=\"color:#f99979\" class=\"has-inline-color\">(*Also possible to use versions Ubuntu 19.04, 20.04, for this better use <\/span><span style=\"color:#caf6a1\" class=\"has-inline-color\">swamp-v2.0.0.3-ubuntu-20.04-64-bit<\/span><span style=\"color:#f99979\" class=\"has-inline-color\">  version of program. About install\/setup written below )<\/span><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>after installation the hosting will give you the server&#8217;s IP address, login and password.<\/p>\n\n\n\n<p>Next step is enter to the server using any SSH-client ,  recommend <a rel=\"noreferrer noopener\" href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\"><span style=\"color:#f1e23d\" class=\"has-inline-color\">PuTTY<\/span><\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-extra-small-font-size\"><a href=\"https:\/\/github.com\/swampcoin\/swamp\/blob\/master\/doc\/masternode-setup.md\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#f1ac17\" class=\"has-inline-color\">Original link GitHub <\/span><br>https:\/\/github.com\/swampcoin\/swamp\/blob\/master\/doc\/masternode-setup.md<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Installing Dependeincies for swamp Coin on Your VPS<\/strong><\/p>\n\n\n\n<p>Before you can run a masternode you have to be able to run the Swamp Coin daemon\/wallet. This requires the installation of several dependenicies. To install these run the following commands on your VPS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils\n\nsudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev\n\nsudo add-apt-repository ppa:bitcoin\/bitcoin\nsudo apt-get update\nsudo apt-get install libdb4.8-dev libdb4.8++-dev\n\nsudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler\nsudo apt-get install libqrencode4 libminiupnpc10<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Preparing Collateral in Local Wallet<\/strong><\/p>\n\n\n\n<p>Create an address in your local wallet by:<br>a. QT\/GUI Wallet: selecting the Recieve tab, entering a label (name) and pressing the &#8220;Request Payment&#8221; button<br><br>b. Command line: entering command .\/swamp-cli getnewaddress<br><br>The address will be presented back to you, copy it for use in the next steps<\/p>\n\n\n\n<p>Send your local wallet 20000 SWAMP by:<br><br>a. QT\/GUI Wallet: selecting the Send tab, entering the address obtained from step 1 in the &#8220;Pay To:&#8221; field and entering &#8220;20000&#8221; in the &#8220;Amount&#8221; field. Make sure the &#8220;Subtract fee from amount&#8221; check box is <strong>NOT<\/strong> checked. You will see the transaction on the screen in the Overview and Transactions tab<br><br>b. Command line: entering command .\/swamp-cli sendtoaddress &#8220;address from step 1&#8221; 20000. The system will give you the TransID as confirmation<\/p>\n\n\n\n<p>Now wait for your transaction to have 15 confirmations so the network has been properly updated. Do this by: a. QT\/GUI Wallet: Hovering your mouse over the transaction which will be called &#8220;payment to yourself&#8221;. Don&#8217;t worry, it won&#8217;t show 20000 Swamp coin, only the fee. The wallet will pop up a message such as (6 confirmations, will be available after 10). You are wating on this to reach 15 confirmations.<br><br>b. Command line: entering command .\/swamp-cli listtransactions. The system will give an output similar to the below, you are waiting on the confirmations to reach 15.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>         \"account\": \"\",\n             \"address\": \"WXQ2sBjp1bNEqrtiCG934Cd2ES5Egtgf4J\",\n             \"category\": \"received\",\n             \"amount\": 20000.00000000,\n             \"vout\": 1,\n             \"fee\": -0.00020582,\n             &lt;b&gt;\"confirmations\": 6,&lt;\/b&gt;\n             \"instantlock\": false,\n             \"blockhash\": \"000004d63c47db2ded3ae015e9e267b28dc64aab48beb768f28c1cb78884dbcd\",\n             \"blockindex\": 1,\n             \"blocktime\": 1581371506,\n             \"txid\": \"ddd852619c0a0146da4cb3179d6c1181a7a198ef268051680616f532c997fd05\",\n             \"walletconflicts\": &#91;\n             ],\n             \"time\": 1581371506,\n             \"timereceived\": 1582910655,\n             \"bip125-replaceable\": \"no\",\n             \"abandoned\": false\n           }<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Obtaining Keys in Local Wallet<\/strong><\/p>\n\n\n\n<p>Running a masternode requires 2 keys, an output and a private key to identify the node on the network. Both are obtained from the local wallet by:<br><\/p>\n\n\n\n<p>a. QT\/GUI Wallet: Open the debig console by clicking &#8220;Tools&#8221; then clicking &#8220;Debug Console&#8221;. In the ext entry space on the bottom of the popup windows enter the following 2 commands and save the long string the system will give you for use them in steps:<br><br>masternode outputs<br>masternode genkey<br><\/p>\n\n\n\n<p>Now remove the quotes and the colon from the result of the masternode outputs command for use in the next steps. The end result is a long string and number at the end. The number will be a 1 or 0<br><br>b. Command line: enter the following 2 commands and save the long string the system will give you for use them in steps:<br>.\/swamp-cli masternode outputs<br>.\/swamp-cli masternode genkey<br><\/p>\n\n\n\n<p>Now remove the quotes and the colon from the result of the masternode outputs command for use in the next steps. The end result is a long string and number at the end. The number will be a 1 or 0<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Opening the proper Port on Firewall<\/strong><\/p>\n\n\n\n<p>It is necessary for other clients to talk to your masternode for it to be rewarded and cosidered Enabled.<br>Open the firewall on your VPS by entering command:<\/p>\n\n\n\n<p>ufw allow 33333<br><br>If you have your linux server behind a router you will have to forward port 33333 to your linux server<br><\/p>\n\n\n\n<p><strong>Gathering Additional Information Needed for .conf Files<\/strong><br><br>You will need to obtain you public IP address as well as decide on a user name and password for your masternode. Accomplish this by:<br><br>a. Access your VPS and type command<br><br>ip addr<br><br>You will receive an output similar to the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        ens3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000\n            link\/ether 56:00:02:31:fa:7c brd ff:ff:ff:ff:ff:ff\n            inet &lt;b&gt;49.12.117.64&lt;\/b&gt;\/22 brd 45.32.219.255 scope global ens3&lt;br&gt;\n               valid_lft forever preferred_lft forever\n            inet6 fe80::5400:2ff:fe31:fa7c\/64 scope link\n               valid_lft forever preferred_lft forever<\/code><\/pre>\n\n\n\n<p>The bold area is your ip address. Save it somewhere for use in the next steps<\/p>\n\n\n\n<p>Next you need to think of a rpcuser (user name) and rpcpassword (password) to use. these can be anything, just save them off for the next steps. Good examples are:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpcuser=swampcoinawesomeuser123123\nrpcpassword=878765ghjhg675ytfytufgklhlk<\/code><\/pre>\n\n\n\n<p><strong>Preparing the conf Files<\/strong><\/p>\n\n\n\n<p>Now you are going to update 2 files ending in .conf on your local machine that you sent the 20000 swamp to as well as create 2 .conf files on the VPS\/Linux Server. These are located in the data directory your wallet is using. When installing the wallet you would have chosen the location but can also access the files by using the buttons in the GUI\/QT wallet by:<br><\/p>\n\n\n\n<p>a. QT\/GUI Wallet: Click the Tools menu then click &#8220;Open Masternode Configuration File&#8221; which will open a text file. In the text file you will paste in the following configuration substituting in the information captured in previous steps.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mn your_ip_address:33333 your_masternode_genkey your_masternode_output<\/code><\/pre>\n\n\n\n<p>This will look similar to the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mn 49.12.117.64:33333 7Wowe2ZWhjddh1FXxi5UqBqSvGNkx3NsYKY4NLnhStZEJYmMyqg  7422b6e19b55ae41cb153b9be83d50721dfg6fd78a365763a7d35d2840967d54 0 <\/code><\/pre>\n\n\n\n<p>b. VPS via Command line: In the termial of your VPS create the folder and the file with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir ~\/.swampcore &amp;&amp; nano ~\/.swampcore\/masternode.conf<\/code><\/pre>\n\n\n\n<p>Now paste in the following configuration substituting in the information captured in previous steps. It may be easier to do this in a text editor on your local machine so you can paste it all in at once.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mn your_ip_address:33333 your_masternode_genkey your_masternode_output<\/code><\/pre>\n\n\n\n<p>This will look similar to the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mn 49.12.117.64:33333 7Wowe2ZWhjddh1FXxi5UqBqSvGNkx3NsYKY4NLnhStZEJYmMyqg  7422b6e19b55ae41cb153b9be83d50721dfg6fd78a365763a7d35d2840967d54 0 <\/code><\/pre>\n\n\n\n<p>Save your file. To save in nano press control and x at the same time, press y to confirm, press enter save<br><\/p>\n\n\n\n<p>The second file you will create is named swamp.conf and will only be done on the VPS. Create the file in nano by entering the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> nano ~\/.swampcore\/swamp.conf<\/code><\/pre>\n\n\n\n<p>Add the following substituting in the info you gathered above<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>listen=1\nserver=1\ndaemon=1\nrpcuser=your_rpc_user\nrpcpassword=your_rpcpassword\nrpcallowip=127.0.0.1\nrpcport=33334\nmasternode=1\nmasternodeprivkey=your_masternode_genkey\nexternalip=your_ip_address:33333<\/code><\/pre>\n\n\n\n<p>Save your file. To save in nano press control and x at the same time, press y to confirm, press enter save<\/p>\n\n\n\n<p>It is now time to download and install the Swamp Coin daemon to run on your VPS\/Linux Server. enter the following commands to download and extract the daemon on your VPS. If you decide to do this in a different folder other than your home folder you need to kconsider that when starting it alter. This guide assumes you are putting in in your home folder and running as the root user that most VPS providers give you. First navigate to the Swamp Coin github at <a href=\"https:\/\/github.com\/swampcoin\/swamp\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/swampcoin\/swamp\/release<\/a><a href=\"https:\/\/github.com\/swampcoin\/swamp\/releases\">s<\/a> and find the release that matches the VPS operating system you arerunning. This guide is running it on ubuntu 18.04 so substitute in the url that best matching your system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/swampcoin\/swamp\/releases\/download\/v2.0.0.2\/swamp-v2002-ubuntu18-64.zip\nunzip swamp-v2002-ubuntu18-64.zip\nchmod swampd swamp-cli swamp-tx 755<\/code><\/pre>\n\n\n\n<p><span style=\"color:#d8ea4a\" class=\"has-inline-color\">** shown here using the example of installing swamp-v2002-ubuntu18-64.zip, but these can also be newer <\/span><strong><a href=\"https:\/\/github.com\/swampcoin\/swamp\/releases\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#469e1c\" class=\"has-inline-color\">releases<\/span><\/a><\/strong><span style=\"color:#8cee5e\" class=\"has-inline-color\"> <\/span><span style=\"color:#d8ea4a\" class=\"has-inline-color\">of the program, the installation process is similar.<\/span><\/p>\n\n\n\n<p>Now its time to start the daemon up, do this by entering the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/swampd <\/code><\/pre>\n\n\n\n<p>When you start the daemon you must wait until it&#8217;s fully in sync by entering command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/swamp-cli mnsync status<\/code><\/pre>\n\n\n\n<p>The output will look similar to the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"AssetID\": 999,\n\"AssetName\": \"MASTERNODE_SYNC_FINISHED\",\n\"AssetStartTime\": 1722306115,\n\"Attempt\": 0,\n\"IsBlockchainSynced\": true,\n\"IsMasternodeListSynced\": true,\n\"IsWinnersListSynced\": true,\n\"IsSynced\": true,\n\"IsFailed\": false<\/code><\/pre>\n\n\n\n<p>When the &#8220;IsSynced&#8221; row say true you are ready to start the node up by using command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/swamp-cli masternode start-alias mn<\/code><\/pre>\n\n\n\n<p>The &#8220;mn&#8221; in the command is the name you gave your node. Feel free to call it anything you like.<\/p>\n\n\n\n<p>You can check status of your masternode by using command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/swamp-cli masternode status<\/code><\/pre>\n\n\n\n<p>If you did everything right you will see &#8220;Successfully Started&#8221; in the message given.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Now its time to set up Sentinel to keep things running smoothly and avoid WATCHDOG_EXPIRED status.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>Swamp Sentinel<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/swampcoin\/sentinel\/blob\/master\/README.md\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#f39e1d\" class=\"has-inline-color\">Original Link Github<\/span><br>https:\/\/github.com\/swampcoin\/sentinel\/blob\/master\/README.md<\/a><\/p>\n\n\n\n<p>An all-powerful toolset for Swamp.<\/p>\n\n\n\n<p>Sentinel is an autonomous agent for persisting, processing and automating Swamp V1.1 governance objects and tasks.<\/p>\n\n\n\n<p>Sentinel is implemented as a Python application that binds to a local version 1.1 swampd instance on each Swamp V1.1 Masternode.<\/p>\n\n\n\n<p>This guide covers installing Sentinel onto an existing 1.1 Masternode in Ubuntu Linux.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Installation<\/strong><\/p>\n\n\n\n<h3 class=\"has-normal-font-size\">1. Install Prerequisites<\/h3>\n\n\n\n<p class=\"has-normal-font-size\">Make sure Python version 2.7.x or above is installed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python --version<\/code><\/pre>\n\n\n\n<p>Update system packages and ensure virtualenv is installed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\nsudo apt-get -y install python-virtualenv\nsudo apt install virtualenv\nsudo apt install git<\/code><\/pre>\n\n\n\n<p>Make sure the local Swamp daemon running is at least version 1.1 (1010000)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>swamp-cli getinfo | grep version<\/code><\/pre>\n\n\n\n<p>2. Install Sentinel<\/p>\n\n\n\n<p>Clone the Sentinel repo and install Python dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo git clone https:\/\/github.com\/swampcoin\/sentinel.git &amp;&amp; cd sentinel\nsudo virtualenv .\/venv\n.\/venv\/bin\/pip install -r requirements.txt<\/code><\/pre>\n\n\n\n<p>3. Set up Cron<\/p>\n\n\n\n<p>Set up a crontab entry to call Sentinel every minute:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>crontab -e<\/code><\/pre>\n\n\n\n<p>In the crontab editor, add the lines below, replacing &#8216;~\/sentinel&#8217; to the path where you cloned sentinel to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>* * * * * cd ~\/sentinel &amp;&amp; .\/venv\/bin\/python bin\/sentinel.py &gt;\/dev\/null 2&gt;&amp;1<\/code><\/pre>\n\n\n\n<p>4. Test the Configuration<\/p>\n\n\n\n<p>Test the config by runnings all tests from the sentinel folder you cloned into<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/venv\/bin\/py.test .\/test<\/code><\/pre>\n\n\n\n<p>With all tests passing and crontab setup, Sentinel will stay in sync with swampd and the installation is complete<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>Configuration<\/strong><\/p>\n\n\n\n<p>An alternative (non-default) path to the <code>swamp.conf<\/code> file can be specified in <code>sentinel.conf<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>swamp_conf=\/path\/to\/swamp.conf<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>Troubleshooting<\/strong><\/p>\n\n\n\n<p>To view debug output, set the <code>SENTINEL_DEBUG<\/code> environment variable to anything non-zero, then run the script manually:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SENTINEL_DEBUG=1 .\/venv\/bin\/python bin\/sentinel.py<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>P.S.<\/p>\n\n\n\n<p class=\"has-small-font-size\">For support on installing nodes, ask in <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/discord.gg\/PxwMzE2\" target=\"_blank\"><span style=\"color:#8d75f1\" class=\"has-inline-color\">Discord<\/span><\/a><\/strong> or other <strong><a href=\"https:\/\/swampcoin.club\/?page_id=613\"><span style=\"color:#63f6d4\" class=\"has-inline-color\">Swampcoin public resources<\/span><\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-text-align-center has-normal-font-size\"><strong><span style=\"color:#f4a646\" class=\"has-inline-color\">Links to useful guides :<\/span><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-small-font-size\"><strong><a href=\"https:\/\/swampcoin.club\/?page_id=2367\"><span style=\"color:#f0ee42\" class=\"has-inline-color\">Node Install\/Setup Manuals<\/span><\/a><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-small-font-size\"> <strong><a href=\"https:\/\/swampcoin.club\/?page_id=772\"><span style=\"color:#f0ee42\" class=\"has-inline-color\">Wallet App Install Manual<\/span><\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the beginning need to rent a vps\/vds server, for a masternode the configuration : ( 1 CPU 1 GHz \/ 512 mb RAM \/ 7 GB diskspace ) will be enough. You also need to have 20 000 coins on your wallet balance. I\u2019ll make it clear in advance for understanding: don\u2019t worry, the&hellip; <a class=\"more-link\" href=\"https:\/\/swampcoin.club\/?page_id=467\">Continue reading <span class=\"screen-reader-text\">Node Install Manual Ubuntu 18-20.04<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/swampcoin.club\/index.php?rest_route=\/wp\/v2\/pages\/467"}],"collection":[{"href":"https:\/\/swampcoin.club\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/swampcoin.club\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/swampcoin.club\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swampcoin.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467"}],"version-history":[{"count":97,"href":"https:\/\/swampcoin.club\/index.php?rest_route=\/wp\/v2\/pages\/467\/revisions"}],"predecessor-version":[{"id":3375,"href":"https:\/\/swampcoin.club\/index.php?rest_route=\/wp\/v2\/pages\/467\/revisions\/3375"}],"wp:attachment":[{"href":"https:\/\/swampcoin.club\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}