Last active
August 27, 2017 00:20
-
-
Save dasjestyr/ad8c472c35927a32b80846a903b665e0 to your computer and use it in GitHub Desktop.
Install Ubuntu .Net development environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GATHER KEYS AND REPOS | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg; | |
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg; | |
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-zesty-prod zesty main" > /etc/apt/sources.list.d/dotnetdev.list'; | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg; | |
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg; | |
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'; | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF; | |
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list; | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -; | |
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'; | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
curl -sL https://deb.nodesource.com/setup_8.x | -E bash -; | |
apt-get update; | |
# RUN APT INSTALLS | |
apt-get install -y \ | |
dotnet-sdk-2.0.0 \ | |
code \ | |
google-chrome-stable \ | |
openssh-server \ | |
npm \ | |
git \ | |
nodejs \ | |
mono-devel \ | |
sublime-text; | |
# GRAB DEBIAN PACKAGES | |
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb; | |
wget "https://downloads.slack-edge.com/linux_releases/slack-desktop-2.7.1-amd64.deb"; | |
# RUN DEBIAN INSTALLS | |
dpkg -i gitkraken-amd64.deb; | |
dpkg -i slack-desktop-2.7.1-amd64.deb; | |
apt-get install -yf; | |
rm gitkraken-amd64.deb slack-desktop-2.7.1-amd64.deb; | |
# SETUP | |
npm install; | |
/etc/init.d/ssh start; | |
update-rc.d ssh defaults; | |
# add this to the bash config so that the variable is always available in each session | |
# I'd love to find a better way to do this | |
echo "export NUGET_FEED='/home/$USER/Documents/Nuget'" >> ~/.bashrc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment