It is currently Thu Apr 24, 2014 5:12 am




Post new topic Reply to topic  [ 9 posts ] 
 HOW-TO Ignition on Ubuntu Server 
Author Message
Online
General
General

Joined: Sun Feb 25, 2007 2:54 pm
Posts: 546
Post 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
Code:
PIDDIR="."

with
Code:
PIDDIR="/tmp"


and line
Code:
#RUN_AS_USER=

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.


Wed Jun 16, 2010 10:09 am
Profile WWW
Online
General
General

Joined: Wed Mar 10, 2010 6:30 am
Posts: 249
Location: Michigan
Post Re: HOW-TO Ignition on Ubuntu Server
Kyle,

Have you used "tasksel" should work good for Mysql install.

_________________
Blue Diamond Steel Castings
Huron Casting Inc.

http://www.huroncasting.com/


Wed Jun 16, 2010 11:01 am
Profile
Online
General
General

Joined: Sun Feb 25, 2007 2:54 pm
Posts: 546
Post Re: HOW-TO Ignition on Ubuntu Server
Yes,either tasksel or apt-get install mysql-5.1-server should work, but I prefer to install from MySQL binaries.


Wed Jun 16, 2010 12:17 pm
Profile WWW
Online
General
General

Joined: Wed Mar 10, 2010 6:30 am
Posts: 249
Location: Michigan
Post Re: HOW-TO Ignition on Ubuntu Server
Kyle,

Another thing I like to install on a Linux server is Webmin, just a preference of mine.

I always wanted to make a script file that could be copied to and ran from the CLI on a base install to build it just the way the last one was. Just not enough time...

Jim

_________________
Blue Diamond Steel Castings
Huron Casting Inc.

http://www.huroncasting.com/


Thu Jun 17, 2010 4:58 am
Profile
Online
General
General

Joined: Sun Feb 25, 2007 2:54 pm
Posts: 546
Post Re: HOW-TO Ignition on Ubuntu Server
I prefer the CLI.

As for the script, why not just image the drive and restore as need be?


Fri Jun 18, 2010 12:59 am
Profile WWW
Online
General
General

Joined: Wed Mar 10, 2010 6:30 am
Posts: 249
Location: Michigan
Post Re: HOW-TO Ignition on Ubuntu Server
Kyle,

I think I have taken this to far off topic, I am sorry. If the mods want to remove post's not pertaining to your initial topic it is fine with me. We could then start another topic maybe on Linux tweaks for ignition.

Jim

_________________
Blue Diamond Steel Castings
Huron Casting Inc.

http://www.huroncasting.com/


Mon Jun 21, 2010 6:17 am
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 4016
Location: Sacramento, CA
Post Re: HOW-TO Ignition on Ubuntu Server
Not a bad idea, Jim. Our linux install/upgrade/uninstall paradigms are pretty simplistic and I'm sure they would make any seasoned linux admin squirm. We certainly would like to work on this aspect: improving the experience and getting more in line with normal linux package management paradigms. Any suggestions, comments, hacks, and experience running on linux is useful feedback for us.

_________________
Carl Gould
Software Development
Inductive Automation


Mon Jun 21, 2010 6:55 pm
Profile WWW
Cadet
Cadet

Joined: Wed Mar 02, 2011 8:03 pm
Posts: 1
Post Re: HOW-TO Ignition on Ubuntu Server
Hi,

I got problem installing ignition on ubuntu after following the steps listed in the this thread. We were stuck on:

Enable startup script

Code:
sudo update-rc.d ignition defaults


Where my server respond with File does not exist error.

I've attached a print screen, hope anyone can help on this.

Cheers,
support


Attachments:
Screenshot.png
Screenshot.png [ 339.61 KiB | Viewed 3227 times ]
Wed Mar 02, 2011 8:09 pm
Profile
General
General

Joined: Fri Aug 03, 2007 11:39 am
Posts: 625
Location: Devon, England
Post Re: HOW-TO Ignition on Ubuntu Server
I think something may have gone wrong with the creation of the symbolic link.

Could you post the output of the following commands:
Code:
ls -l /opt/ignition
and
Code:
ls -l /etc/init.d/ignition

_________________
Al
DataCapture Ltd.

www.datacap.co.uk


Fri Mar 04, 2011 6:01 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: