Lasso 9 On Ubuntu 9.10 (Karmic Koala) Guide

Direction to get Lasso 9 up and running on Ubuntu Server Edition 9.10

Below is a setup guide to get Lasso 9 running on the latest version of Ubuntu Server (9.10 - Karmic Koala) It assumes you are starting from scratch with just a default installation of the Server OS.

Two things to note


Install Packages

  1. Login as root
$> sudo su -

  1. Update all existing packages
#> apt-get update
#> apt-get upgrade

  1. Install Java
#> apt-get install openjdk-6-jre-headless

  1. Install Mysql
#> apt-get install mysql-server mysql-client

  1. Install Apache and mod_fastcgi
#> apt-get install apache2 libapache2-mod-fastcgi

  1. Install Subversion to get Lasso
#> apt-get install subversion

  1. Additional required libraries
#> apt-get install libcurl3 libxslt1.1


Create Symbolic Links

This is controversial - it got lasso to work for me, but i'm not sure it didn't introduce bugs to point to newer / possibly different libraries

     $> sudo su -
     #> ln -s /lib/libcrypto.so.0.9.8 /lib/libcrypto.so.6
     #> ln -s /lib/libssl.so.0.9.8 /lib/libssl.so.6
     #> ln -s /usr/lib/libldap-2.4.so.2 /usr/lib/libldap-2.3.so.0


Install Lasso

  1. If you are currently root, exit to your normal admin shell.
#> exit

  1. Download Lasso 9 via SVN
$> sudo svn co http://download.lassosoft.com/svn/lasso/lasso9_beta_linux/trunk/ /usr/local/lasso9

  1. Configure shell environment
  1. Edit ~/.profile adding the following two lines
export LASSO9_HOME="/usr/local/lasso9"

export LD_LIBRARY_PATH="/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:$LD_LIBRARY_PATH"

  1. Get the changes made:
$> source ~/.profile
  1. Run installation script
$> cd "$LASSO9_HOME"/Installers
$> sudo chmod +x install_lasso9
$> sudo -E ./install_lasso9
  1. Change permissions on the lasso9 home directory
$> sudo chgrp -R admin "$LASSO9_HOME"
$> sudo chmod -R g+w "$LASSO9_HOME"

  1. Start lassoserver to verify all is well
$> env LASSO9_PRINT_FAILURES=1 lassoserver
(This use control-C to stop it)


Configure Apache

  1. Edit /etc/apache2/httpd.conf
<IfModule fastcgi_module>
   FastCgiExternalServer /lasso9       -host localhost:8999 -pass-header Authorization
   FastCgiExternalServer /lasso9direct -host localhost:8999 -pass-header Authorization

   ScriptAliasMatch  ^/lasso9/(.*)$   /lasso9/$1
   ScriptAliasMatch  ^(.*\.lasso9?)$  /lasso9direct$1
</IfModule>

# disable mod_deflate for lassoapps
# (Keeps admin running quickly. Thanks to Jason Huck!)
<Location /lasso9>
	RemoveOutputFilter DEFLATE
	SetEnvIfNoCase Request_URI .*$ no-gzip dont-vary
</Location>

  1. Restart apache
$> sudo /etc/init.d/apache2 restart

  1. If you get the "FastCgiExternalServer /lasso9: failed to resolve "localhost" to exactly one IP address" error, then edit /etc/hosts
#::1     localhost ip6-localhost ip6-loopback
#::1     ip6-localhost ip6-loopback


Configure MySQL Socket

(For some reason with localhost, this is where Lasso wants the socket and it won't connect via port)

  1. Stop MySQL
$> sudo /etc/init.d/mysql stop
  1. Edit /etc/mysql/my.cnf
  1. Edit /etc/mysql/debian.cnf
  1. Restart MySQL
$> sudo /etc/init.d/mysql start


Now you should be done / ready to go - starting lassoserver manually.