forked from CryptoManiac/stratum-mining-proxy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
auto_install.sh
executable file
·44 lines (33 loc) · 1001 Bytes
/
auto_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
set -e
# stratum-proxy auto-install
# Must be root
if [[ `whoami` != 'root' ]]
then
echo 'You must be root to continue the installation'
exit 1
fi
# Only works on debian systems
if [[ ! -f '/etc/debian_version' ]]
then
echo 'Auto-install is for debian/ubuntu only'
exit 1
fi
# Python development package is required
sudo apt-get install -y git-core python-dev
git clone https://github.com/CryptoManiac/stratum-mining-proxy.git
# This will upgrade setuptools package
cd stratum-mining-proxy
sudo python distribute_setup.py
# Build and install LTC scrypt extension
cd litecoin_scrypt
sudo python setup.py install
cd ..
# This will install required dependencies (namely Twisted and Stratum libraries), but don't install the package into the system.
sudo python setup.py develop
cat <<'FINISHED'
Installation successful!
To begin mining, simply type in:
./mining_proxy.py -pa scrypt -o <your pool> -p 3333
And then connect your miners to this host on port 8332.
FINISHED