Skip to content

Instantly share code, notes, and snippets.

@shigahi
Forked from Sulejman/PrepareRaiden.sh
Last active March 23, 2018 22:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shigahi/8fdef65efc5fd27242338a7109586567 to your computer and use it in GitHub Desktop.
Save shigahi/8fdef65efc5fd27242338a7109586567 to your computer and use it in GitHub Desktop.
Install environment for Raiden on Ubuntu on AWS
#!/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