Changes between Version 37 and Version 38 of Internal/SandboxConsoleSetup
- Timestamp:
- Jun 12, 2015, 9:16:47 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/SandboxConsoleSetup
v37 v38 2 2 3 3 ''' Updating for 14.04, 06/12/2015 ''' 4 5 LDAP questions are answered below.6 4 7 5 ''' Base system ''' … … 16 14 17 15 ''' 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 fail2ban21 }}}16 1. 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 }}} 22 20 21 It will ask questions, but you can accept the defaults as later steps will replace the config files. 23 22 24 23 ''' NFS Mounting ''' … … 27 26 home:/export/home /home nfs _netdev,auto 0 0 28 27 }}} 29 30 28 ''' LDAP Authentication ''' 31 29 32 30 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 34 31 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: 35 32 {{{ … … 82 79 netmask 255.255.0.0 83 80 }}} 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/hostname87 }}}88 89 15. also set domainname (hostname SHOULD NOT be fqdn. Needs fixing.)90 domainname should be set in /etc/hosts91 81 92 82 ''' OMF / OML ''' 93 83 The 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 Manager106 ii omf-common-5.3 5.3.1-ubuntu3 Common ruby classes for OMF107 ii omf-common-5.4 5.4.2-ubuntu2 Common ruby classes for OMF108 ii omf-expctl-5.3 5.3.1-ubuntu6 OMF Experiment Controller109 ii omf-expctl-5.4 5.4.2-ubuntu2 OMF Experiment Controller110 ii liboml2-0 2.8.1-ubuntu2 OML: The Orbit Measurement Library111 ii oml2-server 2.8.1-ubuntu2 OML measurement server112 }}}113 84 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 }}} 127 102 13. OMF Configuration 128 103 … … 130 105 ip addresses and the domain name. The XMPP server is xmpp for 5.3 and xmpp2.orbit-lab.org for 5.4. 131 106 132 Configure omf-aggmgr-5. Xto enable result service by creating file in /etc/omf-aggmgr-5.X/available/result.yaml with107 Configure omf-aggmgr-5.4 to enable result service by creating file in /etc/omf-aggmgr-5.X/available/result.yaml with 133 108 {{{ 134 109 --- … … 143 118 144 119 and then link it: 145 {{{146 cd /etc/omf-aggmgr-5.3/enabled; ln -s ../available/result.xml147 }}}120 {{{ 121 cd /etc/omf-aggmgr-5.3/enabled; ln -s ../available/result.xml 122 }}} 148 123 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 }}} 151 128 14. Install the cfengine3 package and then copy 152 129 {{{