Skip to content

Instantly share code, notes, and snippets.

@TheAngryByrd
Last active November 16, 2016 20:04
Show Gist options
  • Save TheAngryByrd/43039b1dae48d7a72e02 to your computer and use it in GitHub Desktop.
Save TheAngryByrd/43039b1dae48d7a72e02 to your computer and use it in GitHub Desktop.
GetMonoOnDebianFast.sh
#!/bin/bash
set -ex
echo "*****Installing Depedencies*****"
apt-get update
apt-get install -y curl libunwind8 gettext
echo "*****Finished Installing Depedencies*****"
echo "*****Downloading Dotnet*****"
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=835021
echo "*****Finished Downloading Dotnet*****"
echo "*****Extracting Dotnet*****"
mkdir -p /opt/dotnet && tar zxf dotnet.tar.gz -C /opt/dotnet
ln -s /opt/dotnet/dotnet /usr/local/bin
rm dotnet.tar.gz
echo "*****Finished Extracting Dotnet*****"
#!/bin/bash
#(if you don’t use sudo, be sure to switch to root
set -ex
#Add the Mono Project GPG signing key
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
#mit keyserver for backup
#apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
#Debian, Ubuntu, and derivatives
#MAIN SOURCE
echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
#Alpha channel
#echo "deb http://download.mono-project.com/repo/debian alpha main" | tee /etc/apt/sources.list.d/mono-xamarin-alpha.list
#Beta channel
#echo "deb http://download.mono-project.com/repo/debian beta main" | tee /etc/apt/sources.list.d/mono-xamarin-beta.list
#mod_mono (Ubuntu 13.10 and later, Debian 8.0 and later)
#**IN ADDITION TO THE MAIN SOURCE**
#echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list
#libgdiplus (Debian 8.0 and later, NOT Ubuntu)
#**IN ADDITION TO THE MAIN SOURCE**
#echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list
#Older Ubuntu releases (Ubuntu 12.10 and 12.04)
#**IN ADDITION TO THE MAIN SOURCE**
#echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list
apt-get update
apt-get install -y mono-complete fsharp nuget referenceassemblies-pcl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment