Skip to main content
100%

Gist 0711211684d6b9f38dc69fe06a29d844

✓ Published0🌍 Public
PPeleke
Last edited Feb 22, 2020
Created on Feb 22, 2020

This example shows a shell script that automates the setup of a Linux scavenger hunt lab environment by downloading a deploy key, cloning a GitLab repository, and running Vagrant to provision the machine. The script uses `curl` to fetch an SSH key, `git clone` with submodules to pull the lab definitions, and `vagrant up` to launch the virtual machine. It then extracts the SSH hostname and port from `vagrant ssh-config` using `grep` and `awk`, printing connection instructions for the student user.

AI-generated description

Similar vizzes