Last active
October 21, 2016 00:09
-
-
Save ryanmaclean/40e22a1724ccf9436198e182ca42d89e to your computer and use it in GitHub Desktop.
Download Joyent Triton SDC USB Image
This file contains hidden or 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/env bash | |
# A script to quickly download the latest image of Open Source Joyent Triton SDC for USB "DC on a stick" servers | |
# Check if aria2 is installed, otherwise, install it | |
command -v aria2c >/dev/null 2>&1 || { sudo apt install -y aria2; exit 1; } | |
# Download 5 streams of the file at once | |
# I found 5 to be the maximum, each topping out around 300kb/s | |
aria2c -x 5 https://us-east.manta.joyent.com/Joyent_Dev/public/SmartDataCenter/usb-latest.tgz --async-dns=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment