# HOW-TO Ignition on Ubuntu Server

**URL:** <https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941>\
**Category:** Archived Topics\
**Created:** [June 16, 2010, 6:09pm UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941 "2010-06-16T18:09:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [June 16, 2010, 6:09pm UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/1 "2010-06-16T18:09:40Z")

</div>

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

`sudo apt-get update
sudo apt-get upgrade`

1b. Setup networking

```auto
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
`

Add an unprivileged user to run Ignition

```auto
 sudo useradd -r ignition
```

1. Install the java runtime and the zip utilities

```auto
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:

```auto
wget "http://files.inductiveautomation.com/release/buildxxxx/Ignition-buildxxxx-linux.zip"
```

For 64 Bit:

```auto
wget "http://files.inductiveautomation.com/release/buildxxxx/Ignition-buildxxxx-linux-x64.zip"
```

1. Unzip software to the location of your choosing. I use /opt/ignition. Set permissions

`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

`sudo chmod u+x ignition-gateway ignition.sh
sudo chown -R ignition.ignition .`

Edit ignition.sh to allow unprivileged user to run ignition

```auto
sudo nano ignition.sh
```

Replace line

```auto
PIDDIR="."
```

with

```auto
PIDDIR="/tmp"
```

and line

```auto
#RUN_AS_USER=
```

with

```auto
RUN_AS_USER=ignition
```

1. Symlink the startup script

```auto
sudo ln -s /opt/ignition/ignition.sh /etc/init.d/ignition
```

Enable startup script

```auto
sudo update-rc.d ignition defaults
```

6.Startup the service. For Ubuntu 9.10+, use the following command

```auto
sudo service ignition start
```

For 9.04 and before, use

```auto
sudo /etc/init.d/ignition start
```

1. 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.

---

<div class="post-metadata">

**Author:** ![jim\_lapratt](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jim\_lapratt](https://forum.inductiveautomation.com/u/jim_lapratt)\
**Post date:** [June 16, 2010, 7:01pm UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/2 "2010-06-16T19:01:56Z")

</div>

Kyle,

Have you used “tasksel” should work good for Mysql install.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [June 16, 2010, 8:17pm UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/3 "2010-06-16T20:17:09Z")

</div>

Yes,either tasksel or apt-get install mysql-5.1-server should work, but I prefer to install from MySQL binaries.

---

<div class="post-metadata">

**Author:** ![jim\_lapratt](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jim\_lapratt](https://forum.inductiveautomation.com/u/jim_lapratt)\
**Post date:** [June 17, 2010, 12:58pm UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/4 "2010-06-17T12:58:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [June 18, 2010, 8:59am UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/5 "2010-06-18T08:59:17Z")

</div>

I prefer the CLI.

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

---

<div class="post-metadata">

**Author:** ![jim\_lapratt](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jim\_lapratt](https://forum.inductiveautomation.com/u/jim_lapratt)\
**Post date:** [June 21, 2010, 2:17pm UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/6 "2010-06-21T14:17:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 22, 2010, 2:55am UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/7 "2010-06-22T02:55:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wolfberrytech](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@wolfberrytech](https://forum.inductiveautomation.com/u/wolfberrytech)\
**Post date:** [March 3, 2011, 4:09am UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/8 "2011-03-03T04:09:26Z")

</div>

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

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/b978d37196cc3eeece1baa0210c81939404fa8b6.png)

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [March 4, 2011, 2:01pm UTC](https://forum.inductiveautomation.com/t/how-to-ignition-on-ubuntu-server/1941/9 "2011-03-04T14:01:46Z")

</div>

I think something may have gone wrong with the creation of the symbolic link.

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