Skip to content

Instantly share code, notes, and snippets.

@lattice0
Last active August 8, 2022 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lattice0/f4c99fd4f9f0f6877c707b74a078385a to your computer and use it in GitHub Desktop.
Save lattice0/f4c99fd4f9f0f6877c707b74a078385a to your computer and use it in GitHub Desktop.
packer
# 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