Skip to content

Instantly share code, notes, and snippets.

@mohe2015
Last active December 18, 2023 16:46
Show Gist options
  • Save mohe2015/076133b807fa3deec47bc18214b973aa to your computer and use it in GitHub Desktop.
Save mohe2015/076133b807fa3deec47bc18214b973aa to your computer and use it in GitHub Desktop.
build rust
rent server at hetzner, nürnberg, fedora, dedicated, ccx43 (DONT FORGET TO CANCEL)
ssh [email protected]
dnf update
useradd -m -G wheel moritz
passwd moritz
sudo mkdir -p /home/moritz/.ssh
sudo chmod 700 /home/moritz/.ssh
sudo cp /root/.ssh/authorized_keys /home/moritz/.ssh/authorized_keys
sudo chown -R moritz:moritz /home/moritz/.ssh
sudo chmod 600 /home/moritz/.ssh/authorized_keys
exit
ssh [email protected]
sudo dnf -y install tmux git gcc g++ cmake ninja-build openssl-devel htop rustup
tmux
git clone --branch async-gen-abi https://github.com/compiler-errors/rust.git
cd rust
./x setup # choose compile rust from source
./x dist
mkdir -p build/manifest
cargo +nightly run --release -p build-manifest build/dist build/manifest 2023-12-18 file:///home/moritz/Downloads/rustup nightly
sha256sum build/manifest/channel-rust-nightly.toml > build/manifest/channel-rust-nightly.toml.sha256
exit
mkdir -p ~/Downloads/rustup/dist
rsync -rlptv -e ssh [email protected]:~/rust/build/dist/ /home/moritz/Downloads/rustup/2023-12-18/
rsync -rlptv -e ssh [email protected]:~/rust/build/manifest/ /home/moritz/Downloads/rustup/dist/
RUSTUP_DIST_SERVER=file:///home/moritz/Downloads/rustup rustup --verbose toolchain install nightly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment