Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Unix Installation Help

In this page you'll find all the necessary software you need to install LAMS 2.0 using the unix installer.

If you want to build LAMS from source, you can follow the instructions in Building LAMS.

Before You Run the Installer...

Make sure you have the software LAMS needs! If you are unsure of what software is needed to run LAMS, go to the Development Environmentpage.

MySQL Database Server

See the Installing MySQL page.

Java SE Development Kit (JDK)

Sun JAVA JDK is available from the Sun Java site. 5.0 or 6.0 will work, you can get the one that says:

JDK 5.0 Update 9

The Java SE Development Kit (JDK) includes:

  • the Java Runtime Environment (JRE)
  • command-line development tools, such as compilers and debuggers, that are necessary or useful for developing applets and applications

This is about 50 MB. See the installation instructions.

Note: Java 1.4.x won't work.

Wildfire Jabber Server

For our Chat tool, we use the Wildfire Jabber Server. See the Installing Wildfire page.

 Check  that you have the latest LAMS 2 Unix installer

See the downloads page.

Running the installer

Once you have your installer, extract it into any desired location eg: /usr/local. 

Editing the lams.properties File

The lams.properties file outlines where and how you will install LAMS 2.0, It  also configures some of the settings you want for the install. Most of the defualt configurations can be left, but you wiil need to change some to suit the setup of your personal machine. The lams.properties file comes with directions on what you need to alter and what needs to be left unchanged. Pay particular attention to "Essential Settings" section because LAMS 2.0 will not install or run properly if these are incorrect. Below is the skeleton for the lams.properties file.

#Copyright (C) 2005 LAMS Foundation ([http://lamsfoundation.org])
# License Information: [http://lamsfoundation.org/licensing/lams/2.0/]
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.0
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
# USA
#
# [http://www.gnu.org/licenses/gpl.txt]
#
# Author: Luke Foxton

#########################################################################################
# Installation Options
#########################################################################################

# The lamshome directory, will contain repository, temp and dump files
# Make sure this location has suffiecient disk space as several files will be stored
# here during run time
LAMS_DIR=/var/opt/lams

# Username and password for the system admin for LAMS
LAMS_USER=sysadmin
LAMS_PASS=sysadmin

# Default language locale and text direction for LAMS, see section 3 of the readme
LOCALE=en_AU
LOCALE_DIRECTION=LTR

# Yes if you wish to include the jsMath in your install, no otherwise
# jsMath is a project used for displaying mathematical symbols on a webpage
# See [http://wiki.lamsfoundation.org/display/lamsdocs/jsMath] for details on jsMath
INCLUDE_JSMATH=no

# Database name, username and password for your LAMS database
DB_NAME=lams2
DB_USER=lams2
DB_PASS=lamsdemo

# Wildfire configuration, used for chat tools. see the documentation under
# "Configuring the Chat Server" at:
# [http://wiki.lamsfoundation.org/display/lams/Building+LAMS]
WILDFIRE_DOMAIN=localhost
WILDFIRE_CONFERENCE=conference.localhost
WILDFIRE_USER=admin
WILDFIRE_PASS=

# Choose yes if you wish to install LAMS 2.0 as a Service
# You need to also put in your architecture type which you can find by typing
# >$ arch \-k         or
# >$ uname \-m
# In your console, your architecture type should be either 'i386', 'PPC' or 'IA64'
INSTALL_SERVICE=no
ARCH_TYPE=i386

#########################################################################################

#########################################################################################
# Essential Settings
# These setting must be correct in order for the install to complete successfully
#########################################################################################

# The port through which you want jboss to run
LAMS_PORT=8080

# The url you intend to use to run LAMS
# NOTE: Make sure the URL ends with a "/" or you will have problems running LAMS
SERVER_URL=[http://localhost:8080/lams/]

# The home directory of jboss-4.0.2
JBOSS_DIR=/usr/local/jboss-4.0.2

# The directory that contains your JDK. (Must be 1.5 or higher)
JDK_DIR=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06

# The location of your mysql executable (Must be 5.0 or higher)
SQL_DIR=/usr/bin

# The URL that you jdbc driver will be running through
SQL_URL=jdbc:mysql://localhost/${DB_NAME}?characterEncoding=utf8
# The default character encoding for your database. LAMS languages require utf8
SQL_ENCODING=utf8

# The root password for MySql
DB_ROOT_PASSWORD=

#########################################################################################

#########################################################################################
# Installation Settings - DO NOT CHANGE
# DO NOT CHANGE unless you require more disk space for repository, temp or dump dir
#########################################################################################

# Locations of the repository, temporary, and dump directories
# Used as storage locations for LAMS files
REPOSITORY_DIR=${LAMS_DIR}/repository
TEMP_DIR=${LAMS_DIR}/temp
DUMP_DIR=${LAMS_DIR}/dump

# Execution directiories, must be within the jboss-4.0.2 directory structure
BINDIR=${JBOSS_DIR}/bin
TOMCATDIR=${DEPLOY_DIR}/jbossweb-tomcat55.sar
DEPLOY_DIR=${JBOSS_DIR}/server/default/deploy
SERVER_DIR=${JBOSS_DIR}/server
DEFAULT_DIR=${JBOSS_DIR}/server/default
EAR_DIR=${DEPLOY_DIR}/lams.ear
# Location of installation files within the package
LAMS_BUILD=${basedir}/lams_build
CONF_DIR=${basedir}/conf/unix
JBOSS_CONF=${CONF_DIR}/jboss
AUTH_CONF=${CONF_DIR}/authentication

# Drivers for MySql during installation
SQL_DRIVER=com.mysql.jdbc.Driver
SQL_JAR=mysql-connector-java-3.1.12-bin.jar

#########################################################################################

Setting up the Language Locale

You will see about a quarter of the way through the lams.properties file there is a line that says: 

LOCALE=en_AU
LOCALE_DIRECTION=LTR

In LAMS 2.0 you can set the defualt language of your server to be one of many languages, and more to come, see the internationalization page. Look out for unix language packs to add to your list of language locales.

For the 2.0 installer, the following default languages are available. The locale options for LAMS-2.0 available are listed below, simply put in your lams.properties file (under Installation Options):

LOCALE - (locale)
LOCALE_DIRECTION - (locale direction)

Language               Locale    Locale-Direction
------------------------------------------
English(Australia)    en_AU    LTR
Español                  es_ES     LTR
Deutsch                 de_DE     LTR
????                  zn_CN    LTR
Français                 fr_FR      LTR
Italiano                  it_IT       LTR
Norsk                    no_NO     LTR
???                    ko_KR     LTR
Polski                    pl_PL       LTR
Português (Brasil)  pr_BR      LTR
????????               el_GR      LTR
????(Arabic)            ar_JO      RTL
Ti?ng Vi?t              vi_VN      LTR
Chinese (Taiwan)    zh_TW    LTR

Running the Ant script 

Once you have updated the lams.properties file (located in the root directory of the extracted package), then installation is easy. Run the installation ant script by typing:
>$ sudo ant/bin/ant install

Running Lams

If you chose to install LAMS 2.0 without the wrapper, you should be able to run LAMS 2.0 by simply going into the <jboss-4.0.2 dir>/bin and typing:

>$ ./run.sh &

 It will take a few minutes for jboss to start, then you can access LAMS using the server url you put into you lams.properties file.

Using the Java Wrapper

If you chose to install the java wrapper, then you should have a few extra files in your <jboss-4.0.2 dir>/bin, namely "lams-2.0.sh" and "wrapper". Make these executable by typing:

>$ chmod a+x *

If you wish to make LAMS a service that starts every time your machine starts up, you need to copy the init.d script (lams-2.0.sh) into the /etc/init.d folder. For more inforamtion about setting up a service, see  the web tutorial

  • No labels