Last active
August 8, 2022 23:24
-
-
Save lattice0/f4c99fd4f9f0f6877c707b74a078385a to your computer and use it in GitHub Desktop.
packer
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
# Asks for sudo password early | |
sudo touch a | |
# sudo apt update && sudo apt-get install -y wget curl git | |
# Installs vagrant | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /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 | |
sudo apt update && sudo apt install vagrant | |
# Installs packer | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /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 | |
sudo apt update && sudo apt install packer | |
# Installs virtualbox | |
wget -O virtualbox.deb https://download.virtualbox.org/virtualbox/6.1.36/virtualbox-6.1_6.1.36-152435~Ubuntu~jammy_amd64.deb | |
sudo apt install -y ./virtualbox.deb | |
# Installs RDP client | |
sudo apt-get -y install freerdp2-x11 | |
git clone https://github.com/chef/bento && cd bento/packer_templates/windows/ && packer build -only=virtualbox-iso windows-10.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment