Lemon Installation for GT Virtual Testbed

Server installation

A SLC4 64 virtual machine has been created using vNode: vtb-generic-45.cern.ch, with:
# cat /etc/redhat-release 
Scientific Linux CERN SLC release 4.8 (Beryllium)
# uname -a
Linux vtb-generic-45.cern.ch 2.6.9-78.0.13.EL.cernxenU #1 SMP Mon Jan 19 14:11:02 CET 2009 x86_64 x86_64 x86_64 GNU/Linux

The documentation for installing Lemon is here. The instructions for a flat file based server installation have been followed. A client installation will been done on the same host in order to do some preliminary tests.

The following repo file have been created:

[root@vtb-generic-19 yum.repos.d]# cat lemon.repo 
[lemon]
name=Lemon
baseurl=http://linuxsoft.cern.ch/lemon/linux/RPMS/x86_64/sl4/stable/
enabled=1
gpgcheck=1
gpgkey=http://linuxsoft/lemon/RPM-GPG-KEY-lemon

[root@vtb-generic-19 yum.repos.d]# cat lemon-server.repo 
[lemon-servers]
name=Lemon Servers
baseurl=http://linuxsoft.cern.ch/lemon/cern/
enabled=1
gpgcheck=1
gpgkey=http://linuxsoft/lemon/RPM-GPG-KEY-lemon
In order to solve some dependencies issues, some additional rpms have been downloaded directly from the repository http://linuxsoft.cern.ch/lemon/linux/RPMS/x86_64/sl4/stable/:
# wget http://linuxsoft.cern.ch/lemon/linux/RPMS/x86_64/sl4/stable/apr-1.2.9-1.x86_64.rpm
# wget http://linuxsoft.cern.ch/lemon/linux/RPMS/x86_64/sl4/stable/apr-util-1.2.8-1.x86_64.rpm

# rpm -ivh apr-1.2.9-1.x86_64.rpm
# yum install postgresql-libs
# rpm -ivh apr-util-1.2.8-1.x86_64.rpm

# yum install lemon-server
# yum install lemon-admin

Pysqlite2 needs to be installed as well if you plan to use an sqlite db:

#  wget http://pysqlite.googlecode.com/files/pysqlite-2.6.0.tar.gz
# tar -xvzf pysqlite-2.6.0.tar.gz
# cd pysqlite-2.6.0
# python setup.py build_static install

Server Configuration

# ls -l /etc/lemon-server-metadata.conf
-rw-r--r--  1 root root 174730 Aug 12  2008 /etc/lemon-server-metadata.conf
# usermod -a -G root lemon
# id lemon
uid=100(lemon) gid=103(lemon) groups=103(lemon),0(root)
# lemon-admin --backend=sqlite --create-schema
        Creating metadata structure.
                Processing file: flat/metric_tables.sql
                DDL successfull


# lemon-admin --backend=sqlite --create-schema > lemon-admin --backend=sqlite --all --file=/etc/lemon-server-metadata.conf
At this point the lemon database should be present in /var/lib/lemon-server/lemon.db

REVIEW SERVER CONFIGURATION

# /etc/init.d/lemon-server start Starting lemon-server: [ OK ]

Lemon-web installation

PHP version 5 needs to be installed as well in order to install lemon-web. The repository can be take from here:
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 php                     x86_64     5.2.11-jason.1   utterramblings    3.9 M
Installing for dependencies:
 apr-util-ldap           x86_64     1.3.9-1.jason.1  utterramblings     19 k
 php-cli                 x86_64     5.2.11-jason.1   utterramblings    2.6 M
 php-common              x86_64     5.2.11-jason.1   utterramblings    515 k
Updating for dependencies:
 apr-util                x86_64     1.3.9-1.jason.1  utterramblings    206 k
 httpd                   x86_64     2.2.14-jason.1   utterramblings    3.1 M
 subversion              x86_64     1.4.6-jason.1    utterramblings    4.4 M

After this the lemon-web installation should work:

# yum install lemon-web
[...]
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 lemon-web               noarch     1.0.1-2          lemon             2.7 M
Installing for dependencies:
 lemon-web-libs          noarch     1.0.2-1          lemon              22 k

-- GianniPucciani - 05-May-2010

Edit | Attach | Watch | Print version | History: r8 | r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2010-05-06 - GianniPucciani
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback