Category

Crypto Mining

Install Berkeley 4.8 db libs on Ubuntu 16.04

By | Crypto Mining, Linux | No Comments

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

OR

wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
make install

OR


BITCOIN_ROOT=$(pwd)

# Pick some path to install BDB to, here we create a directory within the bitcoin directory
BDB_PREFIX="${BITCOIN_ROOT}/db4"
mkdir -p $BDB_PREFIX

# Fetch the source and verify that it is not tampered with
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
# -> db-4.8.30.NC.tar.gz: OK
tar -xzvf db-4.8.30.NC.tar.gz

# Build the library and install to our prefix
cd db-4.8.30.NC/build_unix/
# Note: Do a static build so that it can be embedded into the executable, instead of having to find a .so at runtime
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
make install

# Configure Bitcoin Core to use our own-built instance of BDB
cd $BITCOIN_ROOT
./autogen.sh
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" # (other args...)

Also commonly fixes :
libdb_cxx headers missing ubuntu
found berkeley db other than 4.8, required for portable wallets
berkeley db 4.8 ubuntu

Quickstart Guide Install MPOS on Ubuntu 16.04 – Mining Portal Open Source

By | Crypto Mining | 2 Comments

Quickstart Guide Install MPOS on Ubuntu 16.04 – Mining Portal Open Source
Simply set your MYSQL password and let the installer do the rest. When done, update you config file with new MYSQL password.

#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install -y git
sudo apt-get install -y build-essential libboost-all-dev libcurl4-openssl-dev libdb5.3-dev libdb5.3++-dev mysql-server python-twisted python-mysqldb python-dev python-setuptools python-memcache python-simplejson python-pip make autoconf libtool g++ build-essential pkg-config unzip libboost-all-dev apache2 memcached php7.0-mysqlnd php7.0-curl php7.0-json php7.0-curl libapache2-mod-php7.0 build-essential make automake gcc php-memcached
wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
make install
cd ..
echo "Berkeley libs installed"
cd ~
pip install --upgrade pip
easy_install -U distribute
pip install autobahn
git clone https://github.com/Tydus/litecoin_scrypt.git
git clone https://github.com/ahmedbodi/stratum-mining.git
git clone https://github.com/ahmedbodi/stratum.git
cd stratum-mining
git submodule init
git submodule update
cd externals/litecoin_scrypt
python setup.py install
cd ~
cd /root/stratum-mining/externals/stratum
echo "Now update and remove setup tools and fixes RuntimeError: maximum recursion depth exceeded /root/stratum-mining/externals/stratum/distribute-0.6.28-py2.7.egg"
cat <<EOF > setup.py
#!/usr/bin/env python
#from distribute_setup import use_setuptools
#use_setuptools()
#python setup.py sdist upload
from setuptools import setup
from stratum import version
setup(name='stratum',
      version=version.VERSION,
      description='Stratum server implementation based on Twisted',
      author='slush',
      author_email='info@bitcion.cz',
      url='http://blog.bitcoin.cz/stratum',
      packages=['stratum',],
      py_modules=['distribute_setup',],
      zip_safe=False,
      install_requires=['twisted', 'ecdsa', 'pyopenssl', 'autobahn',]
     )
EOF
python setup.py install
cd ~
cp stratum-mining/conf/config_sample.py stratum-mining/conf/config.py
cd /var/www/html
git clone https://github.com/MPOS/php-mpos.git MPOS
cd MPOS
git checkout master
echo "Enter your MYSQL password you just set"
mysql -u root -p -e "create database mpos"
echo "Again"
mysql -u root -p mpos < sql/000_base_structure.sql
sudo chown -R www-data templates/compile templates/cache
sudo cp include/config/global.inc.dist.php include/config/global.inc.php
cat <<EOF > /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/public/MPOS>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
EOF
apache2ctl -k stop; sleep 2; sudo apache2ctl -k start
echo "Not using a mysql password, now finish setup here: /var/www/html/MPOS/include/config/global.inc.php"
echo "Then check your server"

Now go ahead and install your coins and connect your RPC daemons.

Install ccminer sp-hash fork Ubuntu 16.04

By | ccminer, Crypto Mining, NVIDIA | No Comments

This guide will teach you how to install ccminer sp-hash on Ubuntu 16.04

You must first run Install NVIDIA Driver and CUDA on Ubuntu 16.04 before proceeding.

#!/bin/bash
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib
export PATH=$PATH:/usr/local/cuda-8.0/bin
echo 'export PATH=/usr/local/cuda-8.0/bin:$PATH' >> ~/.bashrc
mkdir sphash
cd sphash
git clone https://github.com/sp-hash/ccminer.git
cd ccminer/
./autogen.sh
./configure CFLAGS="-O3 -Wall -march=native"
make

To buy a pre-compiled Dockerfile with this image check my selection of miner friendly Dockerfiles at https://docker.cryptoandcoffee.com

sp-hash
1 repositories, 28 followers.

Install ccminer tpruvot fork Ubuntu 16.04

By | ccminer, Crypto Mining, NVIDIA | One Comment

This guide will teach you how to install ccminer tpruvot on Ubuntu 16.04

You must first run Install NVIDIA Driver and CUDA on Ubuntu 16.04 before proceeding.

#!/bin/bash
mkdir tpruvot
cd tpruvot
git clone https://github.com/tpruvot/ccminer.git
cd ccminer/
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib
export PATH=$PATH:/usr/local/cuda-8.0/bin
echo 'export PATH=/usr/local/cuda-8.0/bin:$PATH' >> ~/.bashrc
./autogen.sh
./configure
make
echo "Finished"

To buy a pre-compiled Dockerfile with this image check my selection of miner friendly Dockerfiles at https://docker.cryptoandcoffee.com

tpruvot
152 repositories, 372 followers.

Install ccminer alexis78 fork Ubuntu 16.04

By | ccminer, Crypto Mining, NVIDIA | No Comments

This guide will teach you how to install ccminer alexis78 on Ubuntu 16.04

You must first run Install NVIDIA Driver and CUDA on Ubuntu 16.04 before proceeding.

mkdir alexis78
cd alexis78
git clone https://github.com/alexis78/ccminer.git
cd ccminer/
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib
export PATH=$PATH:/usr/local/cuda-8.0/bin
./autogen.sh
./configure
make
echo "Finished"
exit

To buy a pre-compiled Dockerfile with this image check my selection of miner friendly Dockerfiles at https://docker.cryptoandcoffee.com

alexis78
2 repositories, 19 followers.

Install Claymore Dual Miner Ethereum Decred Siacoin Lbry Pascal on Ubuntu 16.04

By | Crypto Mining | No Comments

mkdir claymore
cd claymore
wget https://github.com/nanopool/Claymore-Dual-Miner/releases/download/v9.5/Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal.AMD.NVIDIA.GPU.Miner.v9.5.-.LINUX.tar.gz
tar -zxvf Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal.AMD.NVIDIA.GPU.Miner.v9.5.-.LINUX.tar.gz

To buy a pre-compiled Dockerfile with this image check my selection of miner friendly Dockerfiles at https://docker.cryptoandcoffee.com

Claymore's Dual Ethereum+Decred_Siacoin_Lbry AMD+NVIDIA GPU Miner
https://github.com/nanopool/Claymore-Dual-Miner
92 forks.
440 stars.
98 open issues.
Recent commits:

Install Litceoin Wallet Ubuntu 16.04 Command Line

By | Crypto Mining | No Comments

#!/bin/bash
mkdir Github && cd Github
sudo apt-get install -y git
git clone https://github.com/litecoin-project/litecoin.git
cd litecoin
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev 
sudo apt-get install -y bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev
sudo apt-get install -y libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev 
sudo apt-get install -y libqrencode-dev protobuf-compiler miniupnpc
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get update -y 
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
./autogen.sh
./configure
make
make install

Thanks be to https://litecointalk.io/t/litecoin-compilation-guide/3039

Install ccminer klaust fork Ubuntu 16.04

By | ccminer, Crypto Mining, NVIDIA | No Comments

The fastest algorithm to mine on NVIDIA is by far Skein.  This fork of ccminer from Klaust is definitely the fastest build of ccminer I have found to mine Skein on NVIDIA CUDA.

The build attached here is pre-compiled to work with the Install NVIDIA Driver and CUDA on Ubuntu 16.04

#!/bin/bash
mkdir klaust
cd klaust
wget https://github.com/KlausT/ccminer/archive/8.09.zip
apt-get install -y unzip
unzip 8.09.zip
cd ccminer-8.09
apt-get install -y python3-dev
echo 'add_compile_options(-std=c++11)' >> ./CMakeLists.txt
./autogen.sh
./configure
make
echo "Finished"
exit

To buy a pre-compiled Dockerfile with this image check my selection of miner friendly Dockerfiles at https://docker.cryptoandcoffee.com

Install NVIDIA Driver and CUDA on Ubuntu 16.04

By | Crypto Mining, NVIDIA | 6 Comments

These instructions are to Install NVIDIA Driver and CUDA on Ubuntu 16.04.

Part 1: Install NVIDIA Driver


echo "NVIDIA Driver Install Starting to Deploy"
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
apt-get update -y
apt-get dist-upgrade -y
sudo apt-get install -y build-essential ufw fail2ban htop nano unzip git libcurl4-openssl-dev git automake pkg-config software-properties-common libssl-dev
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.66/NVIDIA-Linux-x86_64-375.66.run
chmod +x NVIDIA-Linux-x86_64-375.66.run
sh NVIDIA-Linux-x86_64-375.66.run -q -a -n -X -s

REBOOT

Part 2 : Install CUDA


wget -4 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
apt-get update
apt-get install -y cuda

Fixes:
install cuda ubuntu 16
cuda installation
cuda installer ubuntu
apt install cuda
ubuntu 16 cuda installation
ubuntu 16.04 cuda 8
cuda 8