Skip to content

Instantly share code, notes, and snippets.

@cruepprich
Created October 15, 2021 16:29
Show Gist options
  • Save cruepprich/a566837549cf23be0398575f2f08a70e to your computer and use it in GitHub Desktop.
Save cruepprich/a566837549cf23be0398575f2f08a70e to your computer and use it in GitHub Desktop.
[Configure Yum on OCI Compute Insance] #linux

In the user-managed OCI compartments, the compute instances are behind a proxy. To use the proxy, set the following environment variables:

export http_proxy=www-proxy-ash7.us.oracle.com:80
export https_proxy=www-proxy-ash7.us.oracle.com:80

or

export http_proxy=www-proxy-adcq7.us.oracle.com:80
export https_proxy=www-proxy-adcq7.us.oracle.com:80

or

export http_proxy=$(curl -s http://wpad.us.oracle.com/wpad.dat | grep "proxies =" |  sed 's/PROXY/\n/g' | grep "www*" | sed 's/;.*$//g' | sed 's/^ //' | awk 'NR==1')

Disable the oracle-cloud-agent and leave it off:

systemctl stop oracle-cloud-agent.service
systemctl disable oracle-cloud-agent.service

The yum repos may have been renamed in /etc/yum.repos.d/ to *.osms-backup. To rename them back to their proper names use:

rename -v repo.osms-backup repo *.osms-backup

Make sure the repo list shows up:

yum repolist

Wget may not work to install a repo, so scp it from your laptop.

SQLcl fails on GPG key check. Try:

sudo yum install -y --nogpgcheck sqlcl

Node.js

yum install nodejs

If problems occur, try NVM

Install nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
exit #exit and re-enter terminal

Install node:

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