Install guide for Ubuntu 9.10

79 views
Skip to first unread message

subcritical

unread,
Mar 6, 2010, 5:37:19 PM3/6/10
to its-electric-software
In case anyone is having trouble.... this worked for me. Modify
slightly for upgrades.

/john

1. Initial install required me to install some dependancies. Warning…
this will take a while. While I’m at it, I needed unzip also (YMMV).

apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts sun-
java6-jdk

apt-get install unzip


2. Now create the directory that its-electric will go into, and then
navigate to it.

mkdir /usr/share/its-electric

mkdir /usr/share/its-electric/site

cd /usr/share/its-electric


3. Download and unzip the latest its-electric distribution. (I could
not get this to work from the google groups site, so I’m using the
link directly on Roberts site.

wget http://tupelo-schneck.org/its-electric-1.2.zip

unzip its-electric-1.2.zip


4. Move the gif, html, and js files to /usr/share/its-electric/site

mv *.gif /usr/share/its-electric/site/*.gif

mv *.html /usr/share/its-electric/site/*.html

mv *.js /usr/share/its-electric/site/*.js


5. Modifiy /etc/apache2/conf.d/its-electric.conf file to the
following:
Alias /its-electric /usr/share/its-electric/site

<DirectoryMatch /usr/share/its-electric/site>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all

DirectoryIndex its-electric.html
</DirectoryMatch>


6. In /usr/share/its-electric/site/its-electric.html, change the
following;

var itsElectric = new ItsElectric('http://your-ip-address:your-port-
number',


7. Create the file /etc/init.d/start-its-electric and setup to launch
at system startup

cd /etc/init.d
nano start-its-electric


add the following code (the line starting with java continues until
the &f). Substitute your server ip / port and port number from the
internet (most isp’s block port 80).
#!/bin/sh

cd /usr/share/its-electric/
java -jar its-electric-1.2.jar --gateway-url http://your-server-ip-address:your
-server-port-number --port {your-port-number-from-the-internet} /var/
server/Data/its-electric/ &f


8. Make the file executable

chmod 755 ./start-its-electric


9. Make start-its-electric start during boot

update-rc.d –f start-its-electric defaults

Reply all
Reply to author
Forward
0 new messages