AnsweredAssumed Answered

How to install Activiti 5.4 Demo on Ubuntu 10.04 LTS

Question asked by winko on Apr 5, 2011
Hi,

This is an update for the Activiti 5.4 release!

This installation procedure is based on Ubuntu 10.04 LTS and Activiti 5.4 using the terminal.

Before you begin make sure your Ubuntu installation is up to date by using the update manager.

Install JDK, JRE, Ant and Eclipse all at once as you can combine the separate installations, open a terminal window (Applications \ Accessories \ Terminal):
# sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" && sudo apt-get update
# sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-fonts ant eclipse
# export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.24

Download Activiti
# wget http://activiti.org/downloads/activiti-5.4.zip
# unzip activiti-5.4.zip

Install the Demo
# cd activiti-5.4/setup
# ant demo.start

Open your browser and go to the following URL's:
http://localhost:8080/activiti-explorer/
http://localhost:8080/activiti-probe/
http://localhost:8080/activiti-modeler/
http://localhost:8080/activiti-cycle/
http://localhost:8080/activiti-kickstart/
http://localhost:8080/activiti-administrator/

If needed you can login using the following users:
kermit (pw: kermit)
fozzie (pw: fozzie)
gonzo (pw: gonzo)


Make Activiti start automatically after a shutdown or a reboot of your system…
# sudo gedit /etc/init.d/activiti

Next copy the the next lines of code in the new file and save it
— Start copying the lines of code below —
#! /bin/sh

ACTIVITIPATH=/home/activiti/activiti-5.4/setup

case "$1" in
start)
echo "Starting Activiti from $ACTIVITIPATH"
cd /home/activiti/activiti-5.4/setup && ant h2.start tomcat.start

;;
restart)
$0 stop
$0 start
;;
stop)
echo "Stoping Activiti from $ACTIVITIPATH"
cd /home/activiti/activiti-5.4/setup && ant h2.stop tomcat.stop
;;
*)
echo $"usage: $0 {start|stop|restart}"
exit 3
;;
esac
:
— Stop copying the lines of code above —

Now we'll make the init script executable
# sudo chmod a+x /etc/init.d/activiti

And finally we'll make the script start at boot time
# sudo update-rc.d activiti defaults 90 10

Ready for happily using Actviti
# exit

Enjoy your Activiti 5.4 installation on Ubuntu 10.04 LTS !!!

Outcomes