Skip to content

Instantly share code, notes, and snippets.

@josue
Created December 19, 2016 00:21
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 josue/9dd3ceacc261183893df1289a12bf182 to your computer and use it in GitHub Desktop.
Save josue/9dd3ceacc261183893df1289a12bf182 to your computer and use it in GitHub Desktop.
MinocaOS - Download and convert the latest (PC) IMG file to VDI (VirtualBox)
#!/bin/bash
URL="http://www.minocacorp.com/download/"
VERSION=`curl -s ${URL} | egrep '/download/Minoca-pc-[0-9]+\.zip' | sed -E 's/.+\/download\/(.*-pc-[0-9]+)\.zip.+/\1/g'`
ZIP="${VERSION}.zip"
echo "- Downloading version: $VERSION"
curl --progress-bar -o /tmp/$ZIP "$URL/$ZIP"
unzip -oq /tmp/$ZIP -d /tmp/$VERSION
rm -rf $HOME/Desktop/${VERSION}.vdi
VBoxManage convertfromraw --format VDI /tmp/${VERSION}/pc.img $HOME/Desktop/${VERSION}.vdi
@josue
Copy link
Author

josue commented Dec 19, 2016

Setup script to download and convert the latest MinocaOS (PC) version:

curl -O https://gist.githubusercontent.com/josue/9dd3ceacc261183893df1289a12bf182/raw/MinocaOS.sh && \
chmod a+x MinocaOS.sh

./MinocaOS.sh

script-download

Open VirtualBox and create new VM:

  1. Name = MinocaOS (or anything else you want)
  2. Type = "Other"
  3. Version = "Other/Unknown"
  4. Choose "Use an existing virtual hard disk file", and browse to your Desktop to find the Minoca-pc-XXXX.vdi and select it.

create-vm

Before running VM, change the VM settings:

  1. Select the MinocOS vm and right-click then select "Settings" (or via the menu bar).
  2. Choose "System", then change:
    1. Chipset to "ICH9"
    2. Via "Extended Features", check "Enable I/O APIC"

change-settings

Finally, run the MinocaOS VM 🖥️

preview-running


* Note: The setup above was done using a Macbook Pro (macOS Sierra) with VirtualBox 5.1.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment