Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------1--------
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- --------2--------
- rustup target add riscv32i-unknown-none-elf
- ----------3----------
- PROTOC_VERSION=21.12
- ARCH=linux-x86_64
- PROTOC_ZIP=protoc-$PROTOC_VERSION-$ARCH.zip
- # Download and extract
- curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP
- sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
- sudo unzip -o $PROTOC_ZIP -d /usr/local include/*
- rm -f $PROTOC_ZIP
- ------4-------
- echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
- source ~/.bashrc
- ------5-------
- sudo fallocate -l 8G /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
- echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
- swapon --show
- free -h
- cat /proc/swaps
- -------6-------
- screen -S nexus
- ------7-------
- curl https://cli.nexus.xyz/ | sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement