Ubuntu Linux Environment
Ubuntu Linux Environment
HackerOps labs require a Unix/Linux environment. Ubuntu is recommended for its compatibility with all tools and extensive documentation. You have several options for running Ubuntu.
Tip
Quickest Option: Download our pre-configured VMs with Terraform, Ansible, and other tools already installed.
Option 1: Pre-configured VMs (Recommended)
Info
Whatβs Included: Ubuntu 20.04 with Terraform, Ansible, AWS CLI, Azure CLI, and VS Code extensions pre-installed.
VirtualBox VM (Free)
- Download VirtualBox VM
- Size: 846MB
- Requires: VirtualBox (free)
VMware VM
- Download VMware VM
- Size: 969MB
- Requires: VMware Workstation/Fusion
Tip
Recommendation: Use VirtualBox - itβs free and works perfectly for all HackerOps labs.
Installing Virtualization Software
VirtualBox Installation (Free)
Download: VirtualBox Downloads
Windows:
# Using Chocolateychoco install virtualbox
# Or download installer from website
macOS:
# Using Homebrewbrew install --cask virtualbox
# Or download installer from website
Linux (Ubuntu/Debian):
sudo apt updatesudo apt install virtualbox virtualbox-ext-pack
VMware Installation (Optional)
Windows/Linux: VMware Workstation Pro macOS: VMware Fusion
# Windows (Chocolatey)choco install vmwareworkstation
# macOS (Homebrew)brew install --cask vmware-fusion
Using Pre-configured VMs
VMware Setup
-
Extract the VM:
Terminal window # Windowstar xf ubuntu2004-vmware-0.1.2.tar.gz# macOS/Linuxtar -zxf ubuntu2004-vmware-0.1.2.tar.gz -
Start the VM:
- Double-click the
.vmx
file - Use default settings (no need to increase RAM/CPU)
- Double-click the
-
Login:
Username: vagrantPassword: vagrant -
Get IP Address:
Terminal window ip address showNote the IP address for SSH connections.
VirtualBox Setup
-
Extract the VM:
Terminal window # Windowstar xf ubuntu2004-virtualbox-0.1.2.tar.gz# macOS/Linuxtar -zxf ubuntu2004-virtualbox-0.1.2.tar.gz -
Import the VM:
- Double-click the
.ovf
file - Keep default settings
- Double-click the
-
Configure Network:
- VM Settings β Network
- Change Adapter to βBridged Adapterβ
-
Login and Get IP:
Username: vagrantPassword: vagrantTerminal window ip address show
Info
Next Step: Use this IP address to connect from VS Code via SSH. See the VS Code Setup Guide for SSH configuration.
Option 2: Windows Subsystem for Linux (WSL)
Info
Alternative for Windows Users: If you prefer not to use VMs, WSL provides a native Linux environment on Windows.
Modern WSL Installation (Windows 10/11)
Quick Install:
# Run in PowerShell as Administratorwsl --install Ubuntu-20.04
This single command:
- Enables WSL and Virtual Machine Platform
- Downloads and installs Ubuntu 20.04
- Sets WSL 2 as default
Manual Installation (if needed)
-
Enable WSL Features:
Terminal window # Run as Administratordism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart -
Set WSL 2 as Default:
Terminal window wsl --set-default-version 2 -
Install Ubuntu:
- Open Microsoft Store
- Search for βUbuntu 20.04 LTSβ
- Click βGetβ to install
-
Initial Setup:
- Launch Ubuntu from Start Menu
- Create your username and password
- Update packages:
Terminal window sudo apt update && sudo apt upgrade -y
Installing Tools in WSL
After setting up WSL, youβll need to install the lab tools:
# Install essential toolssudo apt updatesudo apt install -y curl wget git
# Follow individual guides for:# - Terraform: /docs/getting-started/terraform# - Ansible: /docs/getting-started/ansible# - Cloud CLIs: See respective cloud setup guides
Caution
Note: With WSL, youβll need to install Terraform, Ansible, and cloud CLIs manually. The pre-configured VMs already include these tools.
Which Option to Choose?
Option | Pros | Cons |
---|---|---|
Pre-configured VM | Tools pre-installed, isolated environment | Uses more resources |
WSL | Native Windows integration, lightweight | Manual tool installation required |
Tip
Recommendation: If youβre new to Linux or want to get started quickly, use the pre-configured VirtualBox VM. If youβre comfortable with Linux and want better Windows integration, use WSL.