/ build_ubuntu.sh
build_ubuntu.sh
1 #!/bin/bash 2 echo "================================================" 3 echo " Attention - Building snarkOS from source code." 4 echo " This will request root permissions with sudo." 5 echo "================================================" 6 7 # Install Ubuntu dependencies 8 9 sudo apt-get update 10 sudo apt-get install -y \ 11 build-essential \ 12 curl \ 13 clang \ 14 gcc \ 15 libssl-dev \ 16 llvm \ 17 lld \ 18 make \ 19 pkg-config \ 20 tmux \ 21 xz-utils \ 22 ufw 23 24 25 # Install Rust 26 27 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 28 source $HOME/.cargo/env 29 30 # Install snarkOS 31 # cargo clean 32 cargo install --locked --path . 33 34 echo "==================================================" 35 echo " Attention - Please ensure ports 4130 and 3030" 36 echo " are enabled on your local network." 37 echo "" 38 echo " Cloud Providers - Enable ports 4130 and 3030" 39 echo " in your network firewall" 40 echo "" 41 echo " Home Users - Enable port forwarding or NAT rules" 42 echo " for 4130 and 3030 on your router." 43 echo "=================================================="