Ubuntu 12.10 Install from scratch, for Linux beginners!

For some reason I struggled installing Ignition on Ubuntu 12.10 using the instructions from the main website. I did manage to get it going using bits of info from various other places including this excellent forum. Once I finished I thought I’d re-contribute and give a step by step of installing the Ignition gateway on 12.10, just so all the info is in one place. I’m not saying this is the most secure or efficient way of doing things. This is just for a test install in a virtual machine, but if you want to have a play with the demo then it should work for you.

If I’m doing anything totally wrong, please let me know! I used the 64bit Desktop version for this (ubuntu-12.10-desktop-amd64.iso)

These are the steps I took:
[li]Install Ubuntu[/li]
[li]Update Ubuntu[/li]
[li]Install VMWare Tools(if required)[/li]
[li]Install OpenSSH (not required but useful)[/li]
[li]Install MySQL/PHP/PHPMyAdmin [/li]
[li]Install Java[/li]
[li]Install Ignition[/li][/ol]

Create image from downloaded Ubuntu ISO and insert disk (or just select ISO for VM install). Boot up and select Install Ubuntu.

If internet connection is available, select download updates while installing.

Select Erase Disk and Install Ubuntu then continue.

Select Timezone/Keyboard Layout

Set username and password, select automatically login.

When Ubuntu has finished installing restart when prompted.

Ubuntu should now boot up to the desktop. The first task is to update everything to the latest version, go to Dash Home which is the top left hand icon and search for update. Then select the Software Updater application.

Select Install Now, you will be prompted for your password and then the download/upgrades should begin. You will probably need to restart when this is finished.

If you are running this in a virtual machine, you now want to install VMware tools.
Select Install VMWare tools from your VMWare Virtual Machine menu, this should mount the VMWare Tools cdrom.
We will do the rest from the terminal. To access the terminal goto Dash Home and type terminal then select the terminal icon.

Now we should should have the command prompt in the terminal window.

Issue the following commands, substitute ignition for the username you created earlier.

cd /media
cd ignition
cd VMware\ Tools/
sudo CP VM*.tar.gz /tmp
sudo apt-get install linux-headers-server build-essential
cd /tmp
sudo tar xzvf VM*.tar.gz
cd vmware-tools-distrib
sudo mkdir /usr/lib64
sudo ./vmware-install.pl -d
sudo reboot

Your machine should reboot back to the desktop.

Next task - Install OpenSSH, this we will do from the terminal. To access the terminal goto Dash Home and type terminal then select the terminal icon.
Issue the following command to install openssh:

sudo apt-get install openssh-server

Now we will change a couple of the options to give a little more security to the SSH server.
Edit the SSH config file using the following command.

sudo nano -w /etc/ssh/sshd_config

Use arrow keys to get around and find

PermitRootLogin yes

change the yes to a no.

PermitRootLogin no

Under that line add the following: (substitute ignition for the user you created earlier)

AllowUsers ignition[/code]
Press CTRL-X followed by Y and then enter to save the file.
Enter the following command:
service ssh restart

Now lets install LAMP to get Apache web server MySQL and PHP on the server, we will install PHPMyAdmin at the same time to give us a web based MySQL database manager.
In the terminal type:
sudo apt-get  install lamp-server^ phpmyadmin
Set the MySQL root password when asked, keep a note of this and do not forget it!
Select Apache2 as the web server to run PHPMyAdmin
Configure PHPMyAdmin with the root password.

Create a phpinfo page to test the web server and check PHP/MySQL is installed.
In the terminal:
sudo nano -w /var/www/info.php
This is creating a new file called info.php, please enter the following code into it
Then hit CTRL-X then Y and enter to save the file.

Restart the apache webserver with the following command:
sudo /etc/init.d/apache2 restart

Open firefox and type the following into the address bar to check everything is all OK:

You should get the PHP info page which lets you know lots of good stuff!

Try PHPMyAdmin in firefox

Install Java, Lets use OpenJDK7 as there seems to be utter confusion about which version to use, but this works for me!
Back to the terminal window:
sudo apt-get install openjdk-7-jre
Install JavaWS, this enables your browser to launch java files..
sudo apt-get install icedtea-netx

Install the Ignition gateway:
Back to the terminal
wget http://archive.inductiveautomation.com/ia.public.keysudo apt-key add ia.public.key
sudo apt-key add ia.public.key
sudo nano /etc/apt/sources.list
Add the following lines to the bottom of the file:
[code]deb http://archive.inductiveautomation.com/apt ignition non-free
deb http://archive.inductiveautomation.com/apt ignition-beta non-free

CTRL-X then Y to save

Do the actual install:

sudo apt-get update
sudo apt-get install ignition

OK, should be done now go to firefox and type localhost:8088 into the address bar.

Awesome! Thanks for your contribution. I’ll have to give it a try in a VM.

Very nice! Just to add, you can also install Ignition by downloading a Linux .run file from the IA website and executing from the command line. You can install with or without a graphical environment. Works well for people that don’t have Debian-based systems like Ubuntu, or if you box isn’t connected to the Internet.

As for the Java version, Open or Sun version 7.x should be fine. unless you want the mobile module, then you will require the Sun version 6.x.

It is possible to run the gateway on 7 and the mobile module on 6. See this thread for more info.

Nice howto :thumb_right:

accyroy, thanks for a great guide. I followed it and now have a working Ignition Gateway.

There were a couple of places I got hung up, so I thought I should post these for others who may follow. Note, I’m using 12.04 LTS desktop.

  1. phpmyadmin did not get intalled in /var/www, so it would not load. I copied it from /usr/share. This may not have been the most elegant approach to solving this one.
    2.There is a typo in the code to install ignition gateway on the first line. “sudo apt-key add ia.public.key” should be deleted from the end of the line.
  2. There is a bug in the install routines for version 7.6.2. After a successful install, the gateway does not start correctly. See viewtopic.php?f=72&t=10463&hilit=ignition%2Ftemp for discussion of the problem. There is a temp folder that needs to be added before the gateway will start. In my case, I added /var/lib/ignition/temp/.
  3. Lastly, there is a problem with the install of Icedtea. This causes Launch of Designer to fail. See bugs.launchpad.net/ubuntu/+sour … bug/969520 for details. /usr/bin/javaws needs to be edited to reference java-7-openjdk.

Nice guide,

I am also using Ubuntu 12.10 but am not using PHPMyadmin, just installed LAMP as shown.

I recommend installing MYSQL-workbench, makes administering your DBs much easier.

Also I’m using xrdp for my remote desktop access.