forked from AleoNet/snarkOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testnet1_ubuntu.sh
executable file
·47 lines (39 loc) · 1.13 KB
/
testnet1_ubuntu.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
45
46
47
#!/bin/bash
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "Aborting: run as root user!"
exit 1
fi
echo "================================================"
echo " Attention - Building snarkOS from source code."
echo "================================================"
# Install Ubuntu dependencies
apt-get update
apt-get install -y \
build-essential \
clang \
gcc \
libssl-dev \
llvm \
make \
pkg-config \
tmux \
xz-utils
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
# Install snarkOS
# cargo clean
cargo install --path .
echo "=================================================="
echo " Attention - Please ensure ports 4131 and 3030"
echo " are enabled on your local network."
echo ""
echo " Cloud Providers - Enable ports 4131 and 3030"
echo " in your network firewall"
echo ""
echo " Home Users - Enable port forwarding or NAT rules"
echo " for 4131 and 3030 on your router."
echo "=================================================="
# Open ports on system
ufw allow 4131/tcp
ufw allow 3030/tcp