Skip to content

Instantly share code, notes, and snippets.

@ryanmaclean
Last active October 21, 2016 00:09
Show Gist options
  • Save ryanmaclean/40e22a1724ccf9436198e182ca42d89e to your computer and use it in GitHub Desktop.
Save ryanmaclean/40e22a1724ccf9436198e182ca42d89e to your computer and use it in GitHub Desktop.
Download Joyent Triton SDC USB Image
#!/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