contribute notes for Raspberry Pi and Ubuntu 16.04 deployment
This commit is contained in:
parent
9c6d2f5764
commit
730fd56386
9
contrib/README.md
Normal file
9
contrib/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
Installation Guides
|
||||
-------------------
|
||||
|
||||
### [Ubuntu 16.04](/contrib/ubuntu1604deploy) ###
|
||||
Scripts and notes for deployment under Ubuntu 16.04.
|
||||
|
||||
### [Raspberry Pi 3](/contrib/raspberrypi3deploy) ###
|
||||
Scripts and notes for deployment on Raspberry Pi 3.
|
||||
|
||||
24
contrib/raspberrypi3deploy/install_electrumx.sh
Normal file
24
contrib/raspberrypi3deploy/install_electrumx.sh
Normal file
@ -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
|
||||
|
||||
38
contrib/raspberrypi3deploy/run_electrumx.sh
Normal file
38
contrib/raspberrypi3deploy/run_electrumx.sh
Normal file
@ -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
|
||||
|
||||
|
||||
11
contrib/ubuntu1604deploy/python-3.6.sh
Normal file
11
contrib/ubuntu1604deploy/python-3.6.sh
Normal file
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user