Install zogminer Zcash Miner on Ubuntu 16.04

By | Crypto Mining | No Comments

apt-get install libdb++-dev
apt-get install libboost1.58-all-dev libboost-all-dev
apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake opencl-headers Mesa-common-dev
git clone https://github.com/nginnever/zogminer.git
cd zogminer/
./zcutil/fetch-params.sh
./zcutil/build.sh -j$(nproc)

Run GPU test miner


./src/zcash-miner -G

Run Python with Forever

By | Linux | No Comments

It is easy to use Python with forever.js:


forever start -c python python_script.py

To use it with virtualenv is a little bit more complicated, I did it using a bash script (call it python_virtualenv):


#!/bin/bash
# Script to run a Python file using the local virtualenv
source bin/activate
bin/python $@

Now use that script with forever:


forever start -c ./python_virtualenv python_script.py

php7.0 debian jessie docker install

By | Linux | No Comments

RUN apt-get update -y
RUN apt-get install -y libgmp-dev re2c libmhash-dev libmcrypt-dev file
RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/local/include/
RUN docker-php-ext-configure gmp 
RUN docker-php-ext-install gmp
RUN docker-php-ext-configure mcrypt
RUN docker-php-ext-install mcrypt

RUN echo extension=gmp.so > $PHP_INI_DIR/conf.d/gmp.ini
RUN echo extension=mcrypt.so > $PHP_INI_DIR/conf.d/mcrypt.ini

Change Docker Default Location

By | Docker | No Comments

The most recent method to change the default data directory location is edit

/lib/systemd/system/docker.service

Replace the ExecStart value with the following:

ExecStart=/usr/bin/dockerd --graph="/mnt/blockstorage/" -H fd://

Replace graph=”” with the location of your new storage.

or

Edit /etc/docker/daemon.json

{
“graph”: “/mnt/blockstorage”
}

 

Crypto Picks December 2017

By | Crypto Mining | No Comments

These are my top crypto picks for December 2017.

XVG – Verge
MONA – Monacoin
GRS – Groestlcoin
DGB – Digibyte
XMR – Monero
XLM – Stellar
NEO – Neo
LBC – Lbry Credits
ERC20 – EtherDelta
ALTCOM – Altcommunity coin
BAT – Basic Attention Token
QRL – Quantam Resistance Ledger
OMG – OmiseGo
DASH – Dash

Learn more about how to mine these coins at https://cryptoandcoffee.com

cuda 9.1 install ubuntu 16.04 apt-get

By | Linux | No Comments

Install CUDA 9.0 on Ubuntu 16.04 using apt-get – easiest method

First install and switch default gcc to gcc 7.1

sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install -y g++-7 gcc-7 && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
sudo update-alternatives --config gcc

Now setup

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
sudo apt-get update
sudo apt-get install -y cuda-9-1

Reboot!

enable swap ubuntu

By | Linux | No Comments

Easily enable swap on Ubuntu 16.04 with this easy to use one-liner.

sudo fallocate -l 16G /swapfile 
sudo chmod 600 /swapfile 
sudo mkswap /swapfile 
sudo swapon /swapfile 
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab 
echo 'vm.swappiness = 10' | sudo tee -a /etc/sysctl.conf 
echo 'vm.vfs_cache_pressure=50' | sudo tee -a /etc/sysctl.conf 
echo "Swap enabled"