-
-
Save shigahi/8fdef65efc5fd27242338a7109586567 to your computer and use it in GitHub Desktop.
Install environment for Raiden on Ubuntu on AWS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get update | |
# install dependencies and npm 依存パッケージとnpmのインストール | |
sudo apt-get install build-essential automake pkg-config libtool libffi-dev libgmp-dev libwww-perl nodejs npm python3-pip python-pip -y | |
sudo npm install -g n | |
sudo n latest | |
sudo npm i npm@4 -g | |
# install solidity compiler solidityコンパイラのインストール | |
sudo snap install solc | |
# install parity and run ropsten node as service parityのインストールとropstenのサービス化実行 | |
curl https://get.parity.io -kL | |
# bash <(curl https://get.parity.io -kL) instead if execute by line コマンドラインで実行する場合はこれで実行 | |
mkdir ~/.local/share/io.parity.ethereum/ | |
wget https://gist.githubusercontent.com/shigahi/62c1a55139ae684edea237c00668e085/raw/cc1ad09b42986bec73148802205641d11b19b58f/config.toml -O ~/.local/share/io.parity.ethereum/config.toml | |
sudo wget https://gist.githubusercontent.com/shigahi/e2a0eb5845dec1727dd886f4fcdda1e1/raw/930809db37652dcac7de1ef3ddae480d9b85eeaa/ropsten.service -O /etc/systemd/system/ropsten.service | |
sudo chmod +x /etc/systemd/system/ropsten.service | |
sudo systemctl enable ropsten | |
sudo systemctl start ropsten | |
# install raiden from source raidenのソースインストール | |
git clone https://github.com/raiden-network/raiden.git | |
cd raiden | |
sudo -H pip3 install --upgrade pip | |
sudo -H pip3 install --upgrade -r requirements.txt | |
sudo python3 setup.py develop | |
sudo python3 setup.py compile_webui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment