How to download your DreamCompute openrc file

Overview

An openrc file is a small bash script that sets environment variables so that OpenStack command line tools know how to communicate with DreamCompute. 

How do I download my openrc file?

You can find your openrc file in the DreamCompute Dashboard.

  1. Open the DreamCompute Dashboard.
  2. Navigate to the Compute > API Access section.
  3. To the right, click the Download OpenStack RC File button.

How do I use my openrc file?

The instructions in this article on how to source the openrc.sh file are for Mac OS X and Linux only. For help using your openrc.sh file in a Windows environment, see this article:

If you downloaded the openrcfile.sh file from the Dashboard without specifying a destination location, it was most likely downloaded into your computer's /Downloads directory. On a Mac it would be:

/Users/username/Downloads

This file you downloaded is named something like dhc123456-openrc.sh. You can rename this to something like openrc.sh if you like.

[user@localhost]$ mv ~/Downloads/dhc-123456-openrc.sh ~/Downloads/openrc.sh

Use the source command to run this file. This example shows how to run it from a Mac's /Downloads directory:

[user@localhost]$ source ~/Downloads/openrc.sh

Your terminal will prompt you to enter a password. This is your DreamCompute dashboard password, the same one you use to log into the DreamCompute dashboard at DreamCompute.

After entering the password, all necessary environmental variables should be set. You can now run a command line client like the OpenStack CLI

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?