This Twiki entry should be considered a log of what's been done. It is not a polished document. A separate twiki entry should be created for formal howto on administration.
The setup is based on http://www.blastwave.org/. Consider the setup in CS to be BETA.
We have setup at
core.cs:/opt/csw/
which is on the netapp and consequently is backed up.
An automount setup has been put in place on other hosts.
Note that this mount has a version of tset that's incompatible with the version
distributed by xhier, and therefore will break peoples' login scripts if csw
comes first in one's PATH. (Possible Fix. Use xh-ln
to link in xhier
version. To ensure that running pkg-get upgrade
would not clobber
this link would entail writing a cover for pkg-get
in the
same way that there already exists a cover for apt-get
in the xhier
package debian-1
that uninstalls xhier redirects prior to updating
CSW packages)
To the automount setup. Setup a mount point.
mkdir -p /autofs/software
ln -s /autofs/software/csw /opt/csw
Set up the automount maps in /etc/auto_master
:
# New open source software directory /autofs/software auto_software
Create /etc/auto_software
:
# csw tree is the opensource software we're getting from # http://www.blastwave.org/. We do the install of the software # on core.cs using /opt/csw/bin/pkg-get which installs it on the # fs102.cs file server. The backup host then rsync's fs102.cs to # fs02.student.cs file server that night. # csw -ro fs102.cs.uwaterloo.ca,fs02.student.cs.uwaterloo.ca(1):/opt/csw
Ensure /etc/init.d/autofs
is present (along with /etc/rc{0,1,S}.d/K41autofs
and /etc/rc2.d/S74autofs
.
Run /etc/init.d/autofs start
. Enjoy. Maybe consider putting /opt/csw/bin last in your PATH, but note that some xhier packages may conflict so watch out for that.
-- MikePatterson - 16 May 2006
I have examined /opt/csw/etc/pkg-get.conf
used by pkg-get
. Clearly these tools are analogues of the Debian
counterparts of /etc/apt/sources.list
and apt-get
, respectively. According to http://www.blastwave.org/userguide
there are two choices of repositories of packages, known, respectively as
stable
and unstable
. To choose one
or the other we do:
To select stable or unstable , set the url= entry in /opt/csw/etc/pkg-get.conf to point to a mirror's unstable or stable subdirectory.I did one
pkg-get upgrade
to unstable and then edited the above file to say stable. I think
if we intend to offer this to our users making it stable is appropriate.
For information on the uage of pkg-get
, see man page
and Howto
.
-- WalterTautz - 21 Aug 2006