These instructions are targeted for Debian.
The marketing box needs to two NICs. One should be one the Competition Network and one on your HQ network.
In order to each the SCADA devices you will need to add some static routes.
ip route add 192.168.2.0/24 via 192.168.1.1 dev eth1
ip route add 192.168.3.0/24 via 192.168.1.1 dev eth1
You might need to change eth1
to something depending on how you setup your NICs.
To keep the routes persistent you need to add some lines to your /etc/network/interfaces
post-up ip route add 192.168.2.0/24 via 192.168.1.1
post-up ip route add 192.168.3.0/24 via 192.168.1.1
- Check the setup documents for more details
Makes managing the VM easier
- Install the package
open-vm-tools
Git will used for installing rbenv
- Install the package
git
- Due to odd issue you need add a to line to bottom of
/usr/include/python2.7/pyconfig.h
#define HAVE_MEMMOVE 1
- Download PyXML
- Extract the archive
- Run
python setup.py install
inside the extract directory as root
- Download
ZSI-2.0-rc3.tar.gz
- Extract the archive
- Run
python setup.py install
inside the extract directory as root
- Download PyOPC
- Extract the archive
- Copy the
PyOPC
directory from the zip into/usr/local/lib/python2.7/dist-packages/
- Install the packages
sqlite3
andlibsqlite3-dev
.
The simplest way is to clone the git repo into the machine. Other methods for getting the code on the server are exercises left to the reader.
- The application needs direct access to SCADA machines in order to collect stats.
Find the line for your operating system and install the packages on ruby-build wiki.
- Install rbenv.
- Be sure to install the ruby-build plugin.
- Install Ruby
gem install bundler --no-document
- Run from inside the Marketing App
bundle install
- Run from inside the Marketing App
rake db:setup
- Run from inside the Marketing App
rackup
The site will hosted on localhost:9292
- You can switch out the database. Check the docs for ActiveRecord and sinatra-activerecord for more details.