Changes between Version 37 and Version 38 of Internal/SandboxConsoleSetup


Ignore:
Timestamp:
Jun 12, 2015, 9:16:47 PM (9 years ago)
Author:
msherman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/SandboxConsoleSetup

    v37 v38  
    22
    33''' Updating for 14.04, 06/12/2015 '''
    4 
    5 LDAP questions are answered below.
    64
    75''' Base system '''
     
    1614
    1715''' Package Installation '''
    18 The core packages can be installed as a group via this command:
    19 {{{
    20 sudo apt-get install logwatch logrotate nfs-common libpam-ldap libnss-ldap cfengine3 emacs ntp fail2ban
    21 }}}
     161. The core packages can be installed as a group via this command:
     17 {{{
     18 sudo apt-get install logwatch logrotate nfs-common libpam-ldap libnss-ldap cfengine3 emacs ntp fail2ban
     19 }}}
    2220
     21 It will ask questions, but you can accept the defaults as later steps will replace the config files.
    2322
    2423''' NFS Mounting '''
     
    2726    home:/export/home /home nfs _netdev,auto 0  0
    2827    }}}
    29 
    3028''' LDAP Authentication '''
    3129
    3230 1. Install ldap libraries. This process will ask you a bunch of ldap related questions that will be used to prime the ldap.confs (there are 2). It's not critical to get them correct as we're just going to replace those conf's any way. (Accepting the defaults is ok).
    33 
    3431 1. The '''/etc/ldap.conf''' is one of two files that configures the ldap client. The non-commented lines in this file are as follows:
    3532    {{{
     
    8279    netmask 255.255.0.0
    8380    }}}
    84  15. We need to make sure machine have fully qualified host name (some services depend on it). So:
    85 {{{
    86 echo "console.sb4.orbit-lab.org" > /etc/hostname
    87 }}}
    88 
    89 15. also set domainname (hostname SHOULD NOT be fqdn. Needs fixing.)
    90     domainname should be set in /etc/hosts
    9181
    9282''' OMF / OML '''
    9383The Orbit measurement framework binaries.
    94  1. Comparing to a running Console, the apt repositories are:
    95  {{{
    96 deb http://pkg.mytestbed.net/ubuntu karmic/
    97 deb http://pkg.mytestbed.net/ubuntu lucid/
    98 deb http://pkg.mytestbed.net/ubuntu maverick/
    99 deb http://pkg.mytestbed.net/ubuntu natty/
    100 deb http://pkg.mytestbed.net/ubuntu oneiric/
    101 deb http://pkg.mytestbed.net/ubuntu precise/
    102  }}}
    103  1. The installed packages are:
    104  {{{
    105 ii  omf-aggmgr-5.3                   5.3.1-ubuntu3                   OMF Aggregate Manager
    106 ii  omf-common-5.3                   5.3.1-ubuntu3                   Common ruby classes for OMF
    107 ii  omf-common-5.4                   5.4.2-ubuntu2                   Common ruby classes for OMF
    108 ii  omf-expctl-5.3                   5.3.1-ubuntu6                   OMF Experiment Controller
    109 ii  omf-expctl-5.4                   5.4.2-ubuntu2                   OMF Experiment Controller
    110 ii  liboml2-0                        2.8.1-ubuntu2                   OML: The Orbit Measurement Library
    111 ii  oml2-server                      2.8.1-ubuntu2                   OML measurement server
    112  }}}
    11384
    114  1. Before I could install all those packages, I needed to install this library.
    115  {{{
    116 wget http://ubuntu.media.mit.edu/ubuntu//pool/universe/libx/libxmpp4r-ruby/libxmpp4r-ruby1.8_0.5-1_all.deb
    117 dpkg -i libxmpp4r-ruby1.8_0.5-1_all.deb
    118 wget http://ubuntu.media.mit.edu/ubuntu//pool/universe/libx/libxmpp4r-ruby/libxmpp4r-ruby_0.5-1_all.deb
    119 dpkg -i libxmpp4r-ruby_0.5-1_all.deb
    120  }}}
    121 
    122  For the console we need to OMF packages; please try and install the latest release also [[BR]]
    123 {{{
    124     apt-get install omf-expctl-5.4 omf-aggmgr-5.4 oml2-server
    125 }}}
    126 
     85 1. ''Configure Apt Repository''
     86 To begin we'll need to add the repositories (ORBIT and !MyTestbed) to the list of sources that our console will pull packages from. This is done by running the following commands.
     87    {{{
     88    wget -qO - http://packages.orbit-lab.org/downloads/orbitapt.gpg.key | sudo apt-key add -
     89    wget -qO - http://download.opensuse.org/repositories/devel:tools:mytestbed:stable/xUbuntu_14.04/Release.key | sudo apt-key add -
     90    echo 'deb http://packages.orbit-lab.org/ubuntu trusty main' >> /etc/apt/sources.list.d/orbit.list
     91    echo 'deb http://download.opensuse.org/repositories/devel:/tools:/mytestbed:/stable/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/oml2.list
     92    }}}
     93 1. Once the changes are in place, we execute
     94    {{{
     95    apt-get update
     96    apt-get upgrade
     97    }}}
     98 1. We will then install the following packages NOTE: ADD MONITOR PACKAGE
     99    {{{
     100    apt-get install omf-aggmgr-common-5.4 omf-common-5.4 omf-expctl-5.4 omf-aggmgr-result-5.4 liboml2 oml2-server
     101    }}}
    127102 13. OMF Configuration
    128103
     
    130105    ip addresses and the domain name. The XMPP server is xmpp for 5.3 and xmpp2.orbit-lab.org for 5.4.
    131106
    132     Configure omf-aggmgr-5.X to enable result service by creating file in /etc/omf-aggmgr-5.X/available/result.yaml with
     107    Configure omf-aggmgr-5.4 to enable result service by creating file in /etc/omf-aggmgr-5.X/available/result.yaml with
    133108{{{
    134109---
     
    143118
    144119and then link it:
    145 {{{
    146   cd /etc/omf-aggmgr-5.3/enabled; ln -s ../available/result.xml
    147 }}}
     120    {{{
     121    cd /etc/omf-aggmgr-5.3/enabled; ln -s ../available/result.xml
     122    }}}
    148123
    149  14.
    150  14. Copy authorized keys to new console.
     124 14. Link omf to omf-5.4 with the following command
     125    {{{
     126    sudo update-alternatives --install /usr/bin/omf omf /usr/bin/omf-5.4 1
     127    }}}
    151128 14. Install the cfengine3 package and then copy
    152129{{{