Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # setting up the environment
- apt-get update
- apt-get upgrade
- apt-get install install git build-essential memcached libmemcached-dev mysql-client python-twisted python-mysqldb python-dev python-setuptools python-memcache python-simplejson python-setuptools postfix
- easy_install -U distribute
- # get stratum-mining source code and build (start in home)
- cd ~
- # get stratum-mining source
- git clone https://github.com/peconi/stratum-mining-maxcoin.git
- cd stratum-mining-maxcoin
- git submodule init
- git submodule update
- git submodule foreach git pull origin master
- cd externals/maxcoin-hash/
- python setup.py install
- cd ../python-sha3
- git clone https://github.com/peconi/python-sha3.git . ## <— note a . at the end
- python setup.py install
- cd ../stratum
- git clone https://github.com/peconi/stratum.git . ## <— note a . at the end
- python setup.py install
- cd ../../ # <— exit back to stratum-mining-maxcoin path
- cp conf/config_sample.py conf/config.py
- # edit the config file and change some settings
- nano conf/config.py
- CENTRAL_WALLET = ‘<your wallet id>’
- COINDAEMON_TRUSTED_HOST = ’<your maxcoind host>’
- COINDAEMON_TRUSTED_PORT = 8669
- COINDAEMON_TRUSTED_USER = ‘maxcoinrpc’
- COINDAEMON_TRUSTED_PASSWORD = ‘<your rpc password>’
- COINDAEMON_ALGO = 'keccak'
- COINDAEMON_TX = 'no'
- HOSTNAME = '<or ip address of this host?'
- PASSWORD_SALT = ‘<password salt>’
- DB_MYSQL_HOST = '<your db host>'
- DB_MYSQL_DBNAME = 'pooldb'
- DB_MYSQL_USER = 'pooldb'
- DB_MYSQL_PASS = '<your db pass>'
- POOL_TARGET = 16
- SOLUTION_BLOCK_HASH = True
- # Recommended to set as well
- NOTIFY_EMAIL_TO = '' # Where to send Start/Found block notifications
- NOTIFY_EMAIL_TO_DEADMINER = '' # Where to send dead miner notifications
- NOTIFY_EMAIL_FROM = 'root@localhost' # Sender address
- NOTIFY_EMAIL_SERVER = 'localhost' # E-Mail Sender
- NOTIFY_EMAIL_USERNAME = '' # E-Mail server SMTP Logon
- NOTIFY_EMAIL_PASSWORD = ''
- NOTIFY_EMAIL_USETLS = False # Change to true if not local server
- # install pylib
- easy_install pylibmc
- # edit python file
- nano /usr/local/lib/python2.7/dist-packages/stratum-*-py2.7.egg/stratum/websocket_transport.py
- # replace: from autobahn.websocket import WebSocketServerProtocol, WebSocketServerFactory
- # with: from autobahn.twisted.websocket import WebSocketServerProtocol, WebSocketServerFactory
- # if found!
- TODO: fix this db thing
- # import this stratum DB structure
- # found at https://github.com/peconi/stratum-mining-litecoin/blob/master/sql/stratum_default_layout.sql
- mysql -h <db host> -upooldb pooldb < [sql file you got on the link above] -p
- # make sure you’re in stratum-mining-maxcoin folder and run the stratum
- twistd -ny launcher.tac # <— if debugging
- or
- twistd -y launcher.tac # <— if demonized (production)
Advertisement
Add Comment
Please, Sign In to add comment