The lazy programmer scripts
scripts that work

Lazy mine webdollar in terminal GitHub

Mining webdollar the lazy way, automated.

Webdollar is a cryptocurrency, which has its own blockchain. More info at http://webdollar.io.

The script must be run under user root and I suggest you to run it in a screen session.

This script has been tested on Ubuntu 16.04 LTS.

#!/bin/bash
set -xe

# update env and install minimum required dependencies
sudo apt update
sudo apt upgrade -y
sudo apt install git python build-essential -y

# install nvm
wget -qO- \
    https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash

# export nvm required env
export NVM_DIR="${HOME}/.nvm"
# this loads nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

# install node long term version
nvm install --lts

# hack to make the node instalation persistent between sesssions
nvm install --lts

git clone https://github.com/WebDollar/Node-WebDollar
cd Node-WebDollar/
npm install
npm run commands
# and press number 8 to mine
# or number 1 to see your addresses

# or you can start mining directly,
# but you cannot check your balance from the same console
# npm run start_mining

That's all, folks!

Written by kami on Tuesday April 17, 2018
Permalink - Tags: linux, github, webdollar, networking, crypto

Leave a comment

comments powered by Disqus

« Lazy create sudo user - Lazy configure Ubuntu minimal desktop and VNC »