
HOW-TO Ignition on Ubuntu Server
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.
1. This step updates all packages currently installed on the server
Code:
sudo apt-get update
sudo apt-get upgrade
1b. Setup networking
Code:
sudo nano /etc/network/interfaces
for dhcp, keep the interface set as follows. Replace eth0 with the desired interface identifier.
Code:
# The primary network interface
auto eth0
iface eth0 inet dhcp
For Static Ip mapping
Code:
# 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
Add an unprivileged user to run Ignition
Code:
sudo useradd -r ignition
2. Install the java runtime and the zip utilities
Code:
sudo apt-get install sun-java6-jre zip unzip
3.download the Ignition executable stack. Replace xxxx with the build number you would like to use
For 32 Bit:
Code:
wget "http://files.inductiveautomation.com/release/buildxxxx/Ignition-buildxxxx-linux.zip"
For 64 Bit:
Code:
wget "http://files.inductiveautomation.com/release/buildxxxx/Ignition-buildxxxx-linux-x64.zip"
4. Unzip software to the location of your choosing. I use /opt/ignition. Set permissions
Code:
sudo mkdir /opt/ignition
sudo cp Ignition-buildxxxx-linux(-x64).zip /opt/ignition/
cd /opt/ignition/
sudo unzip Ignition-buildxxxx-linux-(x64).zip
Set permissions
Code:
sudo chmod u+x ignition-gateway ignition.sh
sudo chown -R ignition.ignition .
Edit ignition.sh to allow unprivileged user to run ignition
Code:
sudo nano ignition.sh
Replace line
with
and line
with
Code:
RUN_AS_USER=ignition
5. Symlink the startup script
Code:
sudo ln -s /opt/ignition/ignition.sh /etc/init.d/ignition
Enable startup script
Code:
sudo update-rc.d ignition defaults
6.Startup the service. For Ubuntu 9.10+, use the following command
Code:
sudo service ignition start
For 9.04 and before, use
Code:
sudo /etc/init.d/ignition start
7. Browse to http://
ipaddress:8088
That should be everything you need to get a working copy of Ignition 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.