-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDAO_installation.sh
44 lines (31 loc) · 1.18 KB
/
DAO_installation.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
# Update the system
sudo apt-get update
sudo apt-get upgrade -y
# Install curl
sudo apt-get install -y curl
# Install git
sudo apt-get install -y git
# Install Rust and Cargo (Rust's package manager)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
# Install required dependencies for Substrate
sudo apt-get install -y cmake pkg-config libssl-dev git clang libclang-dev
# Install wasm compiler for Rust
rustup target add wasm32-unknown-unknown
# Install other useful tools for Substrate development
cargo install cargo-contract
cargo install canvas-node --git https://github.com/paritytech/canvas-node.git --tag v0.1.6 --force --locked
# Install Node.js and npm for running scripts and tests
sudo apt-get install -y nodejs npm
# Install Truffle for smart contract development and testing
sudo npm install -g truffle
# Install Web3.js for interacting with Ethereum
sudo npm install web3
# Install IPFS
wget https://dist.ipfs.io/go-ipfs/v0.9.1/go-ipfs_v0.9.1_linux-amd64.tar.gz
tar xvfz go-ipfs_v0.9.1_linux-amd64.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs
# Cleanup
rm -rf go-ipfs go-ipfs_v0.9.1_linux-amd64.tar.gz
echo "Setup Complete"