Skip to content
Reece Mathews edited this page Jun 30, 2021 · 32 revisions

Install Oracle VirtualBox

Install Oracle VirtualBox if you do not already have it

Download VirtualBox Image

  1. Download CentOS CentOS 7.8.2003 - Graphical Desktop Installation (about 3 GB uncompressed). https://www.linuxvmimages.com/images/centos-7/
  2. After download, unzip the VirtualBox Image
  3. Later, you will need the password which you can then change. The VBox's username and password is centos
  4. The VBox's default IP address is 10.0.2.15
  5. The VBox host only adapter IP address is usually 192.168.?.?

Import Appliance

  1. Run Oracle VirtualBox
  2. Consider adjusting CPU and memory to a larger amount than the default. More is better, but needs to be balanced with your available system resources.

Settings for VirtualBox

Set NAT adapter (port forward TCP 192.168.111.222:80 to 10.0.2.15:80) (port forwarding appears to be unnecessary) and host-only adapter

Set 192.168.111.222 to be the IP address that you want the web server to listen to/appear on (since it will be the address that is forwarded to the virtualbox).

Recommend setting General>Advanced>Shared Clipboard to Bidirectional

Increasing CPU cores and memory is recommended

VirtualBox Setup

Common error that occurs when trying to run yum:

Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 160 M RSS (577 MB VSZ) Started: Sat Feb 20 18:16:15 2021 - 04:40 ago State : Sleeping, pid: 3151

[root@centos7 ~]# ps -ef | grep PackageKit root 32179 18507 0 18:23 pts/1 00:00:00 grep --color=auto PackageKit [root@centos7 ~]# kill 18507

Started 5:15, done by 5:45

Right click on desktop and choose "Open terminal". In the terminal in the box:

sudo -i
yum install -y git
git clone https://github.com/cresis/ops.git /opt/ops
cd /opt/ops
git checkout reece/centos7
sh conf/provisions.sh
# Answer no to bulkload and yes to sample dataset
# Just press enter and accept defaults for:
#Database User (default=admin): 
#Database Password (default=pubAdmin): 
#Everything else is straight forward...

Allow the box to reboot and then rerun the script to finish after-boot steps:

sudo -i
cd /opt/ops
sh conf/provisions.sh

Add Vbox's internal 192... IPv4 to settings.py ALLOWED_HOSTS
Add host-only adapter's IP (visible from host computer) to authip.py's AUTHORIZED_IPS
OPS is then accessible from outside the box at the VBox's internal 192... IPv4 address
From within the box, it should be accessible at 10.0.2.15

Root password is pubMaster