Ok, this is my attempt at a how to. No pictures… yet. I am assuming you already have Ubuntu server installed. The commands will look a little different for previous version of Ubuntu server, and I will fill in those gaps at a later time.
- This step updates all packages currently installed on the server
sudo apt-get update
sudo apt-get upgrade
1b. Setup networking
sudo nano /etc/network/interfaces
for dhcp, keep the interface set as follows. Replace eth0 with the desired interface identifier.
# The primary network interface
auto eth0
iface eth0 inet dhcp
For Static Ip mapping
# The primary network interface
auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
gateway x.x.x.x
- Install the java runtime
sudo apt-get install sun-java6-jre
3.download the factoryPMI executable stack.
wget "http://www.inductiveautomation.com/downloads/products/?id=16&type=5"
- Unzip software to the location of your choosing. I use /opt/factorypmi. Set permissions
sudo mkdir /opt/factorypmi
sudo mv FactoryPMI_3.3.3-b3269.tar.gz /opt/factorypmi/
cd /opt/factorypmi/
sudo tar xzf FactoryPMI_3.3.3-b3269.tar.gz
sudo chown -R root.root .
sudo chmod -R 755 .
- Setup the startup script
sudo ln -s /opt/ignition/startGateway.sh /etc/init.d/factorypmi
Open the script for editing
sudo nano /opt/ignition/ignition.sh
Modify the last line of code scroll all the way to the end and add a space and &. The end of the line should look as follows
.gateway.Service &
install the script and delete the calls to shutdown factorypmi, as this code has not been added yet. Set permissions
sudo update-rc.d factorypmi defaults
sudo rm /etc/rc0.d/K20factorypmi
sudo rm /etc/rc1.d/K20factorypmi
sudo rm /etc/rc6.d/K20factorypmi
sudo chmod 755 factorypmi
6.Startup the service. For Ubuntu 9.10+, use the following command
sudo service factorypmi start
For 9.04 and before, use
sudo /etc/init.d/factorypmi start
- Browse to http://ipaddress:8080
That should be everything you need to get a working copy of FPMI working. I will add to this walkthough soon on how to install MySQl either from the repositories or from tar.gz. Also, I am looking a modifying the startup script to allow shutdown of the service, and running it as a different user.