Last active
March 11, 2024 01:36
-
-
Save willjasen/210be429d680c15d48296a92702f7751 to your computer and use it in GitHub Desktop.
setup chocolatey test 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
# Allow this user to not require sudo password | |
#USER_TO_ALLOW=choco-test; SUDO_FILE=/etc/sudoers.d/no-password-$USER_TO_ALLOW; test -f $SUDO_FILE || echo "$USER_TO_ALLOW ALL=(ALL) NOPASSWD:ALL" | sudo tee $SUDO_FILE; sudo chmod 440 $SUDO_FILE; sudo visudo -c; | |
# Install git | |
#sudo apt update; | |
#sudo apt install -y git; | |
# Install Vagrant | |
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg; | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list; | |
# Install Virtualbox | |
grep -qxF 'deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] \ | |
https://download.virtualbox.org/virtualbox/debian bullseye contrib' /etc/apt/sources.list \ | |
|| echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian bullseye contrib' | sudo tee -a /etc/apt/sources.list; | |
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor; | |
sudo apt-get update; | |
sudo apt-get install -y openssl libvpx-dev libsdl2-ttf-dev; | |
sudo apt-get install -y virtualbox-7.0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment