Neil Booth
8 years ago
14 changed files with 99 additions and 4 deletions
@ -0,0 +1,11 @@ |
|||
Installation of Python 3.6 |
|||
-------------------------- |
|||
|
|||
sudo add-apt-repository ppa:jonathonf/python-3.6 |
|||
sudo apt-get update && sudo apt-get install python3.6 python3.6-dev |
|||
|
|||
cd /home/username |
|||
git clone https://github.com/kyuupichan/electrumx.git |
|||
cd electrumx |
|||
sudo python3.6 setup.py install |
|||
|
@ -0,0 +1,24 @@ |
|||
################### |
|||
# install electrumx |
|||
################### |
|||
|
|||
# upgrade raspbian to 'stretch' distribution for python 3.5 support |
|||
sudo echo 'deb http://mirrordirector.raspbian.org/raspbian/ testing main contrib non-free rpi' > /etc/apt/sources.list.d/stretch.list |
|||
sudo apt-get update |
|||
sudo apt-get dist-upgrade |
|||
sudo apt-get autoremove |
|||
|
|||
# install electrumx dependencies |
|||
sudo apt-get install python3-pip |
|||
sudo apt-get install build-essential libc6-dev |
|||
sudo apt-get install libncurses5-dev libncursesw5-dev libreadline6-dev |
|||
sudo apt-get install libleveldb-dev |
|||
sudo apt-get install git |
|||
sudo pip3 install plyvel |
|||
sudo pip3 install irc |
|||
|
|||
# install electrumx |
|||
git clone https://github.com/kyuupichan/electrumx.git |
|||
cd electrumx |
|||
sudo python3 setup.py install |
|||
|
@ -0,0 +1,38 @@ |
|||
############### |
|||
# run_electrumx |
|||
############### |
|||
|
|||
# configure electrumx |
|||
export COIN=Bitcoin |
|||
export DAEMON_URL=http://rpcuser:rpcpassword@127.0.0.1 |
|||
export NETWORK=mainnet |
|||
export CACHE_MB=400 |
|||
export DB_DIRECTORY=/home/username/.electrumx/db |
|||
export SSL_CERTFILE=/home/username/.electrumx/certfile.crt |
|||
export SSL_KEYFILE=/home/username/.electrumx/keyfile.key |
|||
export BANNER_FILE=/home/username/.electrumx/banner |
|||
export DONATION_ADDRESS=your-donation-address |
|||
|
|||
# connectivity |
|||
export HOST= |
|||
export TCP_PORT=50001 |
|||
export SSL_PORT=50002 |
|||
|
|||
# visibility |
|||
export IRC= |
|||
export IRC_NICK=hostname |
|||
export REPORT_HOST=hostname.com |
|||
export RPC_PORT=8000 |
|||
|
|||
# run electrumx |
|||
ulimit -n 10000 |
|||
/usr/local/bin/electrumx_server.py 2>> /home/username/.electrumx/electrumx.log >> /home/username/.electrumx/electrumx.log & |
|||
|
|||
###################### |
|||
# auto-start electrumx |
|||
###################### |
|||
|
|||
# add this line to crontab -e |
|||
# @reboot /path/to/run_electrumx.sh |
|||
|
|||
|
Loading…
Reference in new issue