Skip to content

Instantly share code, notes, and snippets.

@qdzlug
Forked from pborenstein/mantwin.md
Created May 8, 2014 16:18
Show Gist options
  • Save qdzlug/0ea55b9af67f3c3eacc9 to your computer and use it in GitHub Desktop.
Save qdzlug/0ea55b9af67f3c3eacc9 to your computer and use it in GitHub Desktop.

Running Manta on Windows

(extracted from https://github.com/benzenwen/win-manta)

  1. Download and Install Node.js as all of the client tools are built on Node.js. http://nodejs.org/download/

  2. Run this in a Powershell propmt. It installes the Node Package called "manta": npm install -g manta

  3. Create a Joyent Cloud account at http://joyent.com

  4. Create a private / public ssh key pair using the Joyent web console (you should be prompted as you sign up to create and download a key. Note that some versions of IE may not work properly here).

  5. Put the private key in your Windows home directory in a folder called ".ssh", for example "/User/benwen/.ssh/ (the key file should be called simply "id_rsa" in that directory.

  6. Do the same with the public key, except it's named "id_rsa.pub". Note that DSA keys don't work yet with Manta (as of 2013-Oct).

  7. Create these three environment variables:

    $env:MANTA_USER = "benwen20131018"
    $env:MANTA_URL = "https://us-east.manta.joyent.com"
    $env:MANTA_KEY_ID = "11:de:e4:68:f1:b9:3c:1b:9a:9d:01:f5:8c:eb:b7:7c"
    

    (substituting your Joyent username for benwen20131018, and your key fingerprint (the 11:de:e4...) which can be found in the Joyent web console in the same place. Click on the generated key to expand the field to show both the fingerprint and public key)

  8. Run this command to test that Manta is working: "mls". If you don't get an error message you're good to go. Visit: http://apidocs.joyent.com/manta for more information.

  9. To make -m MD5 work, install OpenSSL http://slproweb.com/download/Win64OpenSSL-1_0_1e.exe and add the directory for openssl.exe to your PATH

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