Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 2.2 KB

INSTALL.md

File metadata and controls

66 lines (40 loc) · 2.2 KB

Installation Instructions

The installation is pretty easy, but there are some depenencies for stratum-mining. Below we refer to the coin daemon as litecoind, but more coins will work. Please see the README.md for a list of tested coins.

Install Requirements

sudo apt-get install git mysql-server python python-twisted python-mysqldb

Install the Software

  1. Setup and configure the litecoind instance, noting the rpcuser and rpcpass for use later. NOTE: Make sure to use a strong username and password for the coin daemon. Make sure to backup the wallet

  2. Clone the newest copy of stratum-mining-litecoin

    git clone https://github.com/moopless/stratum-mining-litecoin.git

  3. Update submodules This should pull new changes for stratum and litecoin_scrypt

    ./update_submodules

  4. Install stratum core. The can be acomplished by using easy_install or installing from git. a. Install from with easy_install

    sudo easy_install stratum

    b. Install from git

    git pull https://github.com/slush0/stratum.git sudo python stratum/setup.py install

  5. Install Litecoin_scrypt from git

    git pull https://github.com/Tydus/litecoin_scrypt.git sudo python litecoin_scrypt/setup.py install

  6. Configuration of stratum-mining-litecoin First copy the sample configuration.

    cp conf/config_sample.py conf/config.py

Now edit config/config.py and make the changes for your environment. NOTE: Future updates to stratum-mining-litecoin may introduce new configuration options, so check the git log on updates.

  1. Set up the database stratum-mining-litecoin requires MySQL. First make sure the database has been created and you have a user with the correct permissions. Next, either install the databse from mmcfe, mmcfe-ng, or stratum-mining-litecoin. See the sql/README for more information about the stratum-mining-litecoin database

    mysql -u user -p database < sql/stratum_default_layout.sql

  2. Start stratum-mining-litecoin

    twistd -ny launcher.tac -l log/debug.log

You can now set the URL on your stratum miner:

stratum+tcp://YOURHOSTNAME:3333
  1. Additional Steps Increase the ulimit:

For the session ulimit -n 10240

Persitantly sysctl -w fs.file-max=10240