Last active
April 25, 2019 16:23
-
-
Save ImaginaryDevelopment/30959f86125160e4859856ccfdf98ca0 to your computer and use it in GitHub Desktop.
virtual box setup part deux
This file contains hidden or 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
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" | |
| exit 1 | |
| fi | |
| #apt edit-sources | |
| echo preprending sources list | |
| # would be nice if we ensure this doesn't run multiple times | |
| echo -e " deb http://deb.debian.org/debian stretch main\n deb-src http://deb.debian.org/debian stretch main\n\ndeb http://deb.debian.org/debian stretch-updates main\ndeb-src http://deb.debian.org/debian stretch-updates main\n\n$(cat /etc/sources.list)" > /etc/sources.list | |
| if [ ! -f /usr/sbin/VBoxService ]; then | |
| echo "preparing to setup virtualbox additions" | |
| apt-get update && apt-get upgrade | |
| apt-get -y install build-essential module-assistant | |
| m-a prepare | |
| sh /media/cdrom/VBoxLinuxAdditions.run | |
| shutdown -r now | |
| else | |
| echo "virtual box additions already installed" | |
| fi | |
| curl -sL https://deb.nodesource.com/setup_10.x | bash - | |
| apt-get install -y nodejs |
This file contains hidden or 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
| # https://www.mono-project.com/download/stable/#download-lin-debian | |
| sudo apt install -y apt-transport-https dirmngr gnupg ca-certificates | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
| echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list | |
| sudo apt update | |
| sudo apt install -y mono-devel | |
| wget -nv -O- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg | |
| sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | |
| wget -nv https://packages.microsoft.com/config/debian/9/prod.list | |
| sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | |
| sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg | |
| sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list | |
| sudo apt install -y dotnet-sdk-2.1 | |
| sudo apt install -y dotnet-sdk-2.2 | |
| ## To install the Yarn package manager, run: | |
| curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
| echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
| sudo apt update | |
| # add the add-apt-repository command | |
| sudo apt-get install -y software-properties-common | |
| sudo apt-get update && sudo apt-get install yarn | |
| sudo apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg2 \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
| sudo add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/debian \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| sudo apt-get update | |
| sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
| sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| sudo apt-get install -y xclip | |
| echo ssh-keygen -o -t rsa -b 4096 -C "email@example.com" | |
| echo xclip -sel clip < ~/.ssh/id_rsa.pub | |
| echo may need to change /etc/nsswitch.conf s/return/continue/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment