How to download your DreamCompute openrc file

The instructions in this article on how to 'source' the openrc.sh file are for Mac OS X and Linux only.

What is an openrc file?

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. Navigate to (Compute > Access & Security).
  2. Click the 'API Access' tab.
  3. To the right, click the Download OpenStack RC File button.

How do I use my openrc file?

If you downloaded the openrcfile.sh file from the panel, it was downloaded into your computer's /Download 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 /Download directory:

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

Your terminal will prompt you to enter a password. This is your DreamCompute Dashboard Panel password, the same one you use to log into the DreamCompute panel at (Panel > 'Cloud Services' > 'DreamCompute').

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

 

Did this article answer your questions?

Article last updated .