Installing these tools is a minor pain, the first time, then it gets
That's because one of the key aspects of the tool-chain is that they
are used to build, install and upgrade themselves on
The whole purpose of these tools is to help you manage hundreds or thousands of
hosts with as few as 5 people (24x7) or 3 people for business hours.
We do this by sending the correct configuration to hosts
by letting mortal users manage their own processes
with proactive close-the-loop tests (like
To get started you should download the level2s script and the current msrc_base-2.29.tgz and install_base-8.30.tgz into /tmp on your favorite test host. These 2 base packages and the helper script let you boot-strap the tools on a single host. From there you can follow the quick-start HTML document to learn the chains and quickly install the same tools on all your hosts. At least that's the idea.
See the README file in msrc_base for more help at this point.
On a RedHat system with rpmbuild installed (and build-essentials) you
su to the superuser (so you can write in
From /tmp run:
./level2s rpm msrc_base-2.29.tgz lots of output
That should build and install all the msrc tools (xapply, xclate, ptbw, hxmd, msrc, mmsrc). And leave you with an RPM to install on any like hosts (ls /usr/src/redhat/RPMS/*/msrc_base*). If it broke for want of some tools like "bison" you need to install the prereqs first.
On other platforms you need six lines of shell code to get it going: They are in green text in the sample output from a session where I boot-strap this (Ubuntu 8.04) host. Here are the 6 lines I used running as myself:
mkdir /tmp/slash /tmp/_src PATH=/tmp/slash/usr/local/bin:/tmp/slash/usr/local/sbin:$PATH EXPLODE="-I /tmp/slash/usr/local/lib/explode" MKCMD="-I /tmp/slash/usr/local/lib/mkcmd:/tmp/slash/usr/local/lib/mkcmd/type" export EXPLODE MKCMD PATH cd msrc_base-2.29 make HOSTTYPE=LINUX HOSTOS=80400 INTO=/tmp/ksb_src DESTDIR=/tmp/slash boot # then just to check that it worked: mkcmd -V explode -V msrc -V mmsrc -V
If that looks OK to you then you can install them into the real system (not /tmp/slash) as root:
make HOSTTYPE=LINUX HOSTOS=80400 INTO=/tmp/ksb_src DESTDIR=" boot
Alternatively there is a Makefile target if you don't have (can't find) the level2s script, or you don't want to build this as the superuser.
(then you must add the RPM files geneated as root, so that really doesn't help much).
tar zxf msrc_base-2.29.tgz msrc_base-2.29/Makefile msrc_base-2.29/ITO.spec make -f msrc_base/Makefile rpm-boot rm -rf msrc_base-2.29
find . -name \*.man -print | xapply -fx 'mk -mInstall' -
12 -rw-r--r-- 1 ksb ksb 10343 2009-10-19 12:20 level2s-4.40.tgz MD5 561e6a7e1057f81c1ab92b3ce2c43e83level2s changes (from 4.39)
1240 -rw-r--r-- 1 ksb ksb 1264778 2010-08-14 12:15 dl/msrc_base-2.29.tgz MD5 bc122c13f107d7fa29d2cae7b3c9639e msrc_base-2.29.tgzmsrc_base-2.29 changes (from 2.28)
372 -rw-r--r-- 1 ksb ksb 373663 2010-08-13 13:00 dl/2010/install_base-8.30.tgz MD5 db6f9c8af12785368ee43c03e0a3888e dl/2010/install_base-8.30.tgzThis package has the configuration management tools we use to manage hosts. Everything needs them that comes after. Build the rpm with level2s like you did for msrc_base. (Shown above.) That installs all the file update tools (local/bin/install, purge, instck, installus, vinst, mk, op). And leave you with an RPM to install on any other hosts you might have:
./level2s rpm install_base-8.30.tgz lots of output
If you don't have RPM support you can build the package with mmsrc: Since you have msrc installed use:
cd /tmp/ksb tar zxf install_base-8.30.tgz cd install_base-8.26 mmsrc -C/usr/local/lib/hxmd/auto.cf -y INTO=/tmp/_src/install-x make install
If you have just installed msrc_base in
for testing you can put install_base in there too:
cd /tmp/ksb tar zxf install_base-8.30.tgz PATH=/tmp/slash/usr/local/bin:/tmp/slash/usr/local/sbin:$PATH EXPLODE="-I /tmp/slash/usr/local/lib/explode" MKCMD="-I /tmp/slash/usr/local/lib/mkcmd:/tmp/slash/usr/local/lib/mkcmd/type" export EXPLODE MKCMD PATH cd install_base-8.30 mmsrc -DHOST=`hostname` -C/tmp/slash/usr/local/lib/hxmd/auto.cf -y INTO=/tmp/_src DESTDIR=/tmp/slash make install clean
If that went OK you should be able to run:
to see op's version. But theop -V
-loutput should tell you that no rules are installed in "access.cf". You'll have to build your own rule-base. There is a prototype
access.cfin the top level of the install_base package. If you didn't get
opinstalled it is because you didn't run the install as the superuser (and you didn't get
Changes from install_base 8.26 to 8.28 (29 Mar 2010)
As far as I know there are no open issues with any elements of this package. I have a pty addition to op(1) that I may never export.
./level2s rpmpackage", or by unpacking each compressed tar file, then running
mmsrcin the newly created directory:
Note that is tries to put the platform source in
mmsrc -DHOST=`hostname` -Cauto.cf make install
/usr/src/local, if that's a problem use this instead:
Which specifies a
msrc -l -E HOST=`hostname` -Cauto.cf make install
mkdtempdirectory for the platform source.
96 -rw-r--r-- 1 ksb ksb 91225 2010-08-16 09:27 dl/2010/entomb_base-3.11.tgz MD5 3e07da241354489db0b08fb1aac12929 dl/2010/entomb_base-3.11.tgzThis package has the basis for installing file recovery for mortals that accidentally remove a file they wanted. This might save you from running
restore7 days a week.
See the INSTALL file in the archive. Most people don't have trouble with this one.
Warning: stat can break a kernel upgrade for some Linux versions -- never install stat unless you must.
These tar archives all assume a login with the uid 810. This convention makes it easier to build them as a non-root login (later). For now you can ignore that feature. Later you can make a login ("source") with that uid and use "op" to build programs as that user, as not to let the superuser run a recipe to destroy you build host.