How to setup Linda for staking on Ubuntu 16 Linux
lindacoin·@auspex·
0.000 HBDHow to setup Linda for staking on Ubuntu 16 Linux
<html> <p>https://steemitimages.com/DQmeWrfspVVyMVaJ7G1ZjSHqddYZKX8qznXHeymGCQNConw/Linda_DD15a0a1-1-1.jpg</p> <h1>LINDA - Staking coins in Ubuntu 16</h1> <hr /> <p>Bitcointalk - <a href="https://bitcointalk.org/index.php?topic=2002111.0">https://bitcointalk.org/index.php?topic=2002111.0</a><br> Website - <a href="http://lindacoin.com/">http://lindacoin.com/</a><br> Github - <a href="https://github.com/Lindacoin/Linda">https://github.com/Lindacoin/Linda</a><br> Explorer - <a href="http://lindachain.com/">http://lindachain.com/</a></p> <p><br></p> <p>Linda is a new hybrid masternode coin that promises a great ROI, and supports PoW(Proof of Work) and PoS(Proof of Stake). If you'd like to learn how to setup a Linda masternode in Ubuntu 16 linux, I wrote a similar guide to this <a href="https://steemit.com/lindacoin/@auspex/how-to-setup-a-linda-masternode-on-ubuntu-16-linux">here</a>. Since many of us can't afford a full Linda masternode yet, the next best thing to do is earn some interest on your coins by staking them. This guide will cover how to stake your Linda coins with the <code>Lindad</code> Ubuntu command line daemon. </p> <p><br></p> <p><strong>1. Install dependencies:</strong></p> <pre><code>sudo apt-get install build-essential libtool automake autotools-dev autoconf pkg-config libssl-dev libgmp3-dev libevent-dev bsdmainutils sudo apt-get install libboost-all-dev sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install libdb4.8-dev libdb4.8++-dev</code></pre> <p><br></p> <p><strong>2. Create a swapfile:</strong></p> <p>Since we will be compiling the <code>Lindad</code> command line daemon, we will need a swapfile, or the compile process will run out of memory. This example will create a 2G sized swapfile which is optimal for a 1G VPS, but will also work for a 512MB VPS as well. This is how we create one:</p> <pre><code>sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile</code></pre><br> <p>Now let's make this permanent so that if your VPS restarts, the swap will turn on automatically:</p> <pre><code>echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab</code></pre> <p><br></p> <p><strong>3. Now let's get the Linda source and compile:</strong></p> <pre><code>cd ~/ git clone https://github.com/Lindacoin/Linda cd Linda/src make -f makefile.unix cp Lindad /usr/local/bin</code></pre> <p><br></p> <p><strong>4. Now that we have Lindad compiled, start it up and let it sync:</strong></p> <pre><code>Lindad -daemon</code></pre> <p><br></p> <p>This will take 2-6 hours to sync depending on your connection and proximity to other peers.</p> <p>You can check on the progress of it by typing:</p> <pre><code>Lindad getinfo</code></pre> <p><br></p> <p>And look for the "blocks" line. The latest block at the time of writing this was:</p> <pre><code>"blocks" : 84569, </code></pre> <p><br></p> <p><strong>5. While your wallet is syncing, let's create a new account address for address 0, and make a note of it:</strong></p> <pre><code>Lindad getaccountaddress 0</code></pre> <p><br></p> <p><strong>6. Now send your Linda coins to the address you just created.</strong></p> <p>You can check to make sure your transaction made it your your new wallet by running:</p> <pre><code>Lindad listtransactions</code></pre> <p><br></p> <p>It is important to remember that in order for your coins to stake, they will need to mature in your wallet for 24 hours after they have arrived.</p> <p>Once your coins have made it to your new wallet, let's secure your wallet in the next step.</p> <p><br></p> <p><strong>7. Encrypt your wallet:</strong></p> <pre><code>Lindad encryptwallet "your password"</code></pre> <br> <p>***DO NOT FORGET THIS PASSWORD***</p> <p><strong>8. Now stop Linda so you can modify the config.</strong></p> <pre><code>Lindad stop</code></pre> <p><br></p> <p><strong>9. Edit your config which you will find here:</strong></p> <pre><code>~/.Linda/Linda.conf</code></pre> <p><br></p> <p>Your config should be edited to look like this:</p> <pre><code>rpcuser=put-your-rpc-user-here rpcpassword=put-your-rpc-password-here rpcport=33821 rpcallowip=127.0.0.1 daemon=1 server=1 staking=1 listenonion=0 addnode=104.238.159.161 addnode=45.32.77.164</code></pre> <p><br></p> <p><strong>10. Start Linda again:</strong></p> <pre><code>Lindad -daemon</code></pre> <p><br></p> <p><strong>11. Unencrypt your wallet:</strong></p> <pre><code>Lindad walletpassphrase "the password you set above" 999999999</code></pre> <p><br></p> <p><strong>12. Now, you can check on your staking status :</strong></p> <pre><code>Lindad getstakinginfo</code></pre> <p><br></p> <p>Here's some example output:</p> <pre><code>{ "enabled" : true, "staking" : true, "errors" : "", "currentblocksize" : 1000, "currentblocktx" : 0, "pooledtx" : 0, "difficulty" : 445441827.37744325, "search-interval" : 16, "weight" : 65268187776766, "netstakeweight" : 199352904154774688, "expectedtime" : 274892 }</code></pre> <p><br></p> <p> If you see <code>"enabled":true</code>, then your wallet is staking. You will need to wait 24 hours before you see <code>"staking":true</code>. You can estimate your next payout time by looking at <code>"expectedtime"</code>, but keep in mind it is just an estimate, and is not a guaranteed time.</p> <p><br></p> <p>And there you have it, you're successfully staking Linda on Ubuntu 16 Linux. </p> <p><br></p> <p>Congrats!</p> <p><strong>13. BONUS STEP: Backup your wallet before you log out of your VPS.</strong></p> <p>Use any SFTP or SCP program to connect to your VPS, and backup your <code>wallet.dat</code> file to your local desktop or laptop. That file is located here:<p> <p><code>~/.Linda/wallet.dat</code></p> <p><br></p> <hr /> <p>If you feel like you got any value from this, support my efforts:<br><br></p> <p>LINDA: LW6e6Tfda7vEgiwU7cBV4kPYiAyUaJwkiX </p> <br><br> <p>Thank you!</p> </html>
👍 brucelim, ubg, dhirajgupta, jimmco, nrg, cazimi, magayogini, card1001, kevindixon, crypto.aladdin, amphlux, pqbd, natsirtdm, darjust,