Disclaimer: this is an unsupported software, which was written to ease some pain with userspace installation. It is designed solely for developer testing.

Introduction

See ChrootEnvs on how to use this tool!

How to create chroot environments

Note: you do not need to create new environments for SLC3 and SLC4.

You might have a look at rpmstrap or other bootstrapping methods, however I have simply used a free VMware server to create the initial image.

SLC3

    
    booting from SCL3-i386-boot.iso
    default install
        Text based Internet
        Development Tools
        System Tools
        hostname: slc3-chroot
    root password is 'root'
    # installing some extra packages:
    cd /etc/apt/sources.list.d
    vi cernonly.list
        enabling     
    vi dag.list
        enabling
    apt-get update
    apt-get dist-upgrade
    apt-get install ccache
    # various documentations:
    apt-get install docbook-utils docbook-utils-pdf psutils docbook-style-xsl ghostscript
    # that one can login using 'ssh -X':
    apt-get install XFree86-xauth
    # for convenience:
    apt-get install vim-X11 vim-enhanced vim-common
    # and Java
    rpm -ivh jdk-1_5_0_02-linux-i586.rpm

Creating the initial tarball:

   ssh root@10.10.10.5 'cd /; tar -cpzf - bin dev lib sbin var boot etc initrd misc opt root usr home' >SLC3-chroot-master-2007-03-06.tgz

SLC4

Installing SLC4:

    booting from SCL4-i386-boot.iso
    default install
        Text based Internet
        Development Tools
        System Tools
        hostname: slc4-chroot
    root password is 'root'
    # some packages to be installed:
    yum upgrade
    yum install ccache screen
    vim /etc/yum.repos.d/cern-only.repo
        enabled=1
    # gLite ant build backward compatibility and Java components:
    yum install java-1.5.0-sun-devel java-1.5.0-sun xorg-x11-deprecated-libs
    # various documentations:
    yum install docbook-utils docbook-utils-pdf psutils docbook-style-xsl ghostscript
    # simlifying ETICS client install:
    yum install pyOpenSSL python-log4py PyXML
    # that one can login using 'ssh -X':
    yum install xorg-x11-xauth
    # for convenience:
    yum install vim-X11 vim-enhanced vim-common

Creating the initial tarball:

    ssh root@10.10.10.4 'cd /; tar -cpzf - bin dev lib sbin var boot etc initrd misc opt root selinux usr home' >SLC4-chroot-master-2007-01-31.tgz

SLC5


     # Update of a minimal SL5 installation:
     yum groupinstall 'Development Tools'
     # for ETICS:
     yum install -y python-devel
     yum install -y pyOpenSSL python-log4py PyXML
     # for VOMS:
     yum install -y docbook-utils docbook-utils-pdf psutils docbook-style-xsl ghostscript transfig libxslt
     # for gSOAP
     yum install -y bison bison-devel libtool

     # Hidden build dependencies deduced from the ETICS build nodes:
     # http://eticssoft.web.cern.ch/eticssoft/internal/public/VMWareImages/
     yum install -y glib2-devel libxml2-devel openssl-devel curl-devel expat-devel
     yum install -y apr-devel apr-util-devel httpd-devel
     chkconfig --del httpd
     yum install -y boost boost-devel libstdc++ libstdc++-devel
     yum install openldap-devel
     #  missing dependency: openldap???
     rpm -q openldap
         openldap-2.3.27-8.el5_2.4
     # openldap-devel is for the older version: 2.3.27-8.el5_1.3
     # so I have to downgrade.
     rpm --nodeps -e openldap
     yum install openldap-2.3.27-8.el5_1.3 openldap-devel-2.3.27-8.el5_1.3

    # The 'yum groupinstall' step has probably installed a number
    # of unnecessary packages, so it could be improved.


    # add user bob
    adduser -m bob
    cp -r /root/.ssh /home/bob
    chown -R bob:bob /home/bob/.ssh

    # not *strictly* necessary, but...
    yum install -y vim-enhanced
    yum install -y screen

    # to install ccache enable dag repo. Also, no linuxsoft mirror yet: use the "true" repository...
    cd /etc/yum.repos.d/
    vim dag.repo
        enabled=1
        baseurl=http://apt.sw.be/redhat/el5/en/$basearch/dag
    
    yum install -y ccache

# as bob:

    # edit .bashrc
    vim .bashrc
        export ETICS_HOME=$HOME/etics
        export WS=$HOME/build
        export REPOSITORY=$HOME/repository
        export PATH=/usr/lib/ccache:$PATH:$ETICS_HOME/bin
        export CCACHE_DIR=$HOME/.ccache
    . .bashrc

    # install etics client
    wget "http://eticssoft.web.cern.ch/eticssoft/repository/etics-client-setup.py" -O etics-client-setup
    screen -L python etics-client-setup
    
# the ETICS build...

    etics-workspace-setup
    etics-get-project org.glite
    screen -L etics-checkout --ignorelocking --continueonerror --project-config glite_branch_3_1_0_dev -c glite-data_branch_3_1_0_dev org.glite.data


Last edit: AkosFrohner on 2009-03-09 - 10:36

Number of topics: 1

Maintainer: AkosFrohner

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2009-03-09 - AkosFrohner
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EGEE All webs login

This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Ask a support question or Send feedback