Skip to content

Instantly share code, notes, and snippets.

@EgorBo
Last active September 3, 2024 23:56
Show Gist options
  • Save EgorBo/20f3f7405f2dd455718b78ae1f1d1984 to your computer and use it in GitHub Desktop.
Save EgorBo/20f3f7405f2dd455718b78ae1f1d1984 to your computer and use it in GitHub Desktop.
InstallDotnetLinux.sh
wget https://dot.net/v1/dotnet-install.sh -O ~/dotnet-install.sh
chmod +x ~/dotnet-install.sh
~/./dotnet-install.sh -Channel "8.0" -InstallDir ~/dotnet
~/./dotnet-install.sh -Channel "9.0" -InstallDir ~/dotnet
echo -e '\nexport DOTNET_ROOT=~/dotnet\nexport PATH=$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH' >> ~/.bashrc
export DOTNET_ROOT=~/dotnet
export PATH=$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH
mkdir ~/crank_dotnethome
mkdir ~/crank_buildpath
mkdir ~/crank_logs
~/.dotnet/tools/crank-agent --url http://*:5001 --build-path ~/crank_buildpath --dotnethome ~/crank_dotnethome --log-path ~/crank_logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment