Created
December 19, 2016 00:21
-
-
Save josue/9dd3ceacc261183893df1289a12bf182 to your computer and use it in GitHub Desktop.
MinocaOS - Download and convert the latest (PC) IMG file to VDI (VirtualBox)
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup script to download and convert the latest MinocaOS (PC) version:
Open VirtualBox and create new VM:
Before running VM, change the VM settings:
Finally, run the MinocaOS VM 🖥️
* Note: The setup above was done using a Macbook Pro (macOS Sierra) with VirtualBox 5.1.10