Running Your Own Decred PoS (Proof of Stake) Wallet

Running Your Own Decred PoS (Proof of Stake) Wallet

If you have hundreds or thousands of DCR (or just want to experiment), you may consider running your own Decred PoS Wallet.

Summary of things to consider:

  • Each ticket costs a certain amount of DCR to purchase.
  • Your DCR funds may be locked for an average of 1 month and up to 4 months.
  • You have a 99% chance that you will earn a reward before the 4 month expiration.
  • If your ticket gets picked, you will get the reward, plus the cost of the ticket, minus the transaction fee.
  • If your ticket does NOT get picked or if it gets picked while your wallet is offline or locked, you will get the cost of the ticket back minus the transaction fee.

More detailed info will follow, but let’s start with how to enable your current wallet to start Decred PoS mining.

Here is a standard enablestaking command:

dcrwallet -u YourUserName -P YourUserPassword --enablestakemining --ticketmaxprice=10

A good place to check what you should set the ticketmaxprice would be at: https://dcrstats.com/

Now unlock your wallet without a time limit:

dcrctl -u YourUserName -P YourUserPassword --wallet walletpassphrase "Your TOP SECRET Passphrase Here" 0

To see your current stake info:

dcrctl -u YourUserName -P YourUserPassword --wallet getstakeinfo

Here you will also see the difficulty, which is how many DCR each ticket currently costs.

Using cgminer with Bitmain Antminer U3 on Ubuntu

I decided to move my USB Antminer U3’s to an old laptop, to free up my windows machine for important stuff like games.

First make sure you have the necessary libraries:

sudo apt-get install build-essential autoconf automake 
sudo apt-get install libtool pkg-config libcurl3-dev libudev-dev
sudo apt-get install libc6 libcurl3-gnutls libjansson4
sudo apt-get install libncurses-dev

Download the latest cgminer:

mkdir ~/source
cd ~/source
git clone https://github.com/ckolivas/cgminer.git
cd cgminer
./autogen.sh
CFLAGS="-O2 -Wall -march=native" ./configure --enable-icarus
make

Since cgminer needs access to the usb ports, you need to run it as root:

sudo ~/source/cgminer/cgminer --au3-volt 800 --au3-freq 237.50 -o stratum+tcp://hashpower.co:3333 -u YOUR_USERNAME_HERE_OR_BTC_ADDRESS -p c=BTC

Overclocking the R9 280x on Ubuntu

Well, I thought I would run some tests to see if I could get more performance from this card.

First of all DO THIS AT YOUR OWN RISK, you have been warned…

My Test Scenario:
—-
AMD Radeo R9 200 Series
Specifically: R9 280x
OS: Ubuntu 14.04 LTS
cgminer version 3.7.2
cgminer intensity: 5
—-

How to update your clock and memory:

Enable overdrive, and set the clock.

aticonfig --od-enable
aticonfig --odsc=1000,1500

Where 1000 is the spot for you clock, and 1500 is the spot for your memory. These are the default settings for the R9 280x.

To check your current settings and temperature:

aticonfig --odgc
aticonfig --odgt

Here is how my test went:

Core Memory GH/s  Temp     Notes
---- ------ ----  ----     -----
1000 1500   1.127 69.00 C  Default Core/Memory
1000 500    1.127 71.00 C  Underclocked Memory
1050 500    1.183 71.00 C
1100 500    1.255 72.00 C
1150 500    1.300 73.00 C
1200 500    1.345 74.00 C  Last stable core clock
1250 500    ????? ???????  Slowed down, then GPU shut down

Now that I have a stable core clock of 1200, I will experiment with the
cgminer intensity. I would let it run for about 30 minutes or more to
make sure it really is stable.

Then save the settings:

aticonfig --odsc=1200,500
aticonfig --odcc

Here are my results when messing with cgminer intensity:

Core Memory GH/s Temp Load Intensity Notes
---- ------ ---- ---- ---- --------- -----
1200 500 1.514 77.00 C 95% d Dynamic intensity is the safest and where I keep it.
1200 500 1.412 76.00 C 90% 6
1200 500 1.487 76.00 C 94% 7
1200 500 1.512 77.00 C 95% 8
1200 500 1.545 77.00 C 97% 9
1200 500 1.565 77.00 C 98% 10
1200 500 1.576 77.00 C 99% 11
1200 500 1.582 77.00 C 99% 12
1200 500 1.585 77.00 C 99% 13
1200 500 1.587 77.00 C 99% 14 Fastest, but desktop may become sluggish.

So for me, I keep it at 1200 core clock, 500 memory clock, and intensity d. There are diminishing returns for increasing the intensity, but may be worth it for some people.

Install opencl and drivers for Radeon R9 280x on Ubuntu

Find the drivers on the official AMD website:
http://support.amd.com/en-us/download/linux

Click on your version of Ubuntu (ex: Ubuntu 14.04 LTS 64-bit)

Download all the fglrx files for your version. There should be 4 of them.

Get to your download directory and copy them somewhere safe like:

mkdir ~/AMD_Driver_packages
cd ~/Downloads
cp *.deb ~/AMD_Driver_packages
cd ~/AMD_Driver_packages

I had to make sure my system had the dependencies

sudo apt-get -f install

Now that you are in the folder you will be doing all your installing from, go ahead and install:

sudo dpkg -i fglrx-core_15.302-0ubuntu1_amd64_ub_14.01.deb
sudo dpkg -i fglrx_15.302-0ubuntu1_amd64_ub_14.01.deb
sudo dpkg -i fglrx-dev_15.302-0ubuntu1_amd64_ub_14.01.deb
sudo dpkg -i fglrx-amdcccle_15.302-0ubuntu1_amd64_ub_14.01.deb

Now reboot

sudo reboot

Check that everything is installed correctly:

sudo dpkg -l fglrx fglrx-core fglrx-amdcccle fglrx-dev

Now run clinfo:

clinfo

You should see your version of opencl:

Device OpenCL C version: OpenCL C 1.2

Now go ahead and set up cgminer, instructions are here:
http://www.reynoldtech.com/mining-decred-on-ubuntu-with-cgminer/

Configuring a fresh Ubuntu server

Ok, so you’ve installed Ubuntu on a new machine. Now there are a few things you can do to make your life more comfortable after getting your OS installed, and connected to wifi (which is beyond the scope of this post).

You’ll want to first have ssh set up so you can remote in, even if your graphic driver is not configured.

ssh:

sudo apt-get install openssh-server

Give your yourself super user access by adding a line to your sudousers file. Then you won’t have to type in your password every time you use sudo.

sudo:

sudo nano /etc/sudoers

Add this line to the end of the file:

yourusername ALL=(ALL) NOPASSWD:ALL

Next, you’ll want to set up VNC, so you can put that computer in another room if you want. This way you can be in front of your favorite big monitor or TV and access your Ubuntu box. For this, you will need to install x11vnc on Ubuntu. If you are accessing from Windows, I found that the tightvnc viewer works best with x11vnc.

x11vnc:

sudo apt-get install x11vnc

Save password:

sudo x11vnc –storepasswd /etc/x11vnc.pass

Create a startup file:

sudo nano /etc/init/x11vnc.conf

Put this in your x11vnc.conf file:

start on login-session-start
script
/usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -overlay -cursor -noshared -forever -bg -rfbport 5900 -o /var/log/x11vnc.log
end script

Now, you can reboot Ubuntu and x11vnc will always start up. But if you want to stop/start it manually, you can do this via ssh. This is also handy if your vnc session crashes for some reason or gets stuck.

sudo pkill -f x11vnc
sudo start x11vnc

If you don’t want to deal with sending error reports to Ubuntu by being prompted to send them, then edit this file and set enable=0

sudo nano /etc/default/apport

Mining Decred on Ubuntu with cgminer

First create your account and worker on the pool you want to join.

If you need to install git:

sudo apt-get update
sudo apt-get install git

Download, compile, install from source code:

mkdir ~/source
cd ~/source
git clone https://github.com/decred/cgminer.git

If you need to install some extra libraries, here is what I used:

sudo apt-get install autoconf
sudo apt-get install libc-bin
sudo apt-get install libtool
sudo apt-get install libncurses-dev
sudo apt-get install curl
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install opencl-headers
sudo apt-get install ocl-icd-opencl-dev

At this point you should have a newly created folder “cgminer”

cd cgminer
./autogen.sh --enable-opencl
make
sudo make install

Test cgminer (hit “q” when your done testing):

/usr/local/bin/cgminer --blake256 --benchmark

Start mining:

/usr/local/bin/cgminer --blake256 --intensity d -o http://dcr.suprnova.cc:9110 -u YourPoolUser.YourPoolWorker -p YourPoolPassword -o http://dcr.pool.mn:4722 -u YourPoolUser.YourPoolWorker -p YourPoolPassword

How to Start Earning Bitcoins with Cloud Mining

So you’ve done your research and are ready to start earning some money with Bitcoins. Here are the two steps you will need in summary, details will be below.


Summary:

First Step: (If you don’t have a Bitcoin wallet)
Create a Coinbase Account

Second Step: (This is where you make money)
Create a HashOcean Account


Details:

  • What is CoinBase?
    • CoinBase is your link from Bitcoin to USD
    • It ties to your Bank account and lets you convert your Dollars to Bitcoins and vice versa.
  • What is HashOcean?
    • HashOcean is a Cloud Mining service that let’s you earn Bitcoins daily.
    • The Bitcoins are earned and deposited into your CoinBase account or any other Bitcoin address you prefer.
    • Your earnings depend on how much power you purchase from HashOcean and they will take care of the rest.
    • You don’t need to set up your own mining rig, or have any technical knowledge about Bitcoins.

Frequently Asked Questions (FAQ):

  • What is my initial investment?
    • As of the writing of this document $6.20
    • If you use the link to sign up, you will have 15 power free which is about $0.06/day
    • Then purchase 20 power for a total of 35 power, so your earnings will be about $0.10/day
  • What is “power“?
    • Power is just the term used by HashOcean to keep track of your investment amount.  The more “power“, the more bitcoins you earn which you can convert to dollars when you use CoinBase to send money back to your bank account.
  • How long will I keep my “power” and earning potential?
    • Indefinitely, even after your investment has paid you back.
    • However if you do not purchase 20 more power in 30 days, you will lose your free 15 power.
  • Is this safe?
    • As with any investment, I suggest you start small and see if it works for you.  Watch the money trickle in and see how it goes.
  • Can I get my money back?
    • Yes
      • You can get all your money back paid out in Bitcoin at any time in 72 hours and your power will stop producing Bitcoin.
      • Or you can get all your investment back by getting the graphic cards that were used for mining after 180 days.
  • I don’t understand Bitcoin, can I still invest?
    • Yes, you do not need to understand all the workings of an engine to know it takes you from point A to point B.
    • Go to Amazon Prime or Netflix and watch some documentaries by searching for “bitcoin“.
    • Read about it on the web.
    • Ask family or friends (That’s Me)
  • Is there a limit to how much I can invest?
    • Yes
      • HashOcean has data centers all over the world, but when they get filled you will have to wait until another one is built or they expand.
      • But like I said before, please start small to make sure it it working for you.
  • Is CoinBase safe?
    • I have been using CoinBase for a long time, and I’ve had no trouble.
    • It is a service like PayPal, regulated by the government laws that ties in to bank accounts.
  • How do I get started?
    • There are 2 steps, go back to the top and read the summary, then you are on your way.

 

Bug Shooting Installation and Setup

Bug Shooting Installation and Setup

Bug Shooting is and awesome screen capture and annotation utility. You can get a free license for personal use:

http://www.bugshooting.com/

Download
Then get free license

You will need Microsoft .NET Framework 4.5.2
https://www.microsoft.com/en-us/download/details.aspx?id=42643

File save options
In Settings (Right click icon)
File name type: Date and Time format
yyyy-MM-dd-HH-mm-ss-fff