代码拉取完成,页面将自动刷新
#!/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 \
curl \
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 4133 and 3033"
echo " are enabled on your local network."
echo ""
echo " Cloud Providers - Enable ports 4133 and 3033"
echo " in your network firewall"
echo ""
echo " Home Users - Enable port forwarding or NAT rules"
echo " for 4133 and 3033 on your router."
echo "=================================================="
# Open ports on system
ufw allow 4133/tcp
ufw allow 3033/tcp
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。