Setting up Tyagi as our server, additional packages, tips.

This is a loose collection of notes on other odds and ends needed to
make tyagi our server.  Command syntax may be abbreviated or combined
in a way that won't just cut and paste.

Converting ports to packages:
=============================
First, I discovered that there was no tar ball for 'less' in
/usr/release/usr/R/packages-2.2.8/All as I expected.  Turns out that
the "packages" distribution doesn't include a lot of packages that are
also available as ports.  (These are things that will show up as
packages in /stand/sysinstall but your install will fail.)

Here's an example of adding the package less though:

  cd /usr/ports/misc/less
  make package
  cp less*.tgz /usr/release/usr/R/packages-2.2.8/All

Here are some of the other packages I had to do this for: 
print/ghostscript4
math/gnuplot
print/ghostscript5
benchmarks/tcpblast
benchmarks/netperf
lang/perl5
x11-toolkits/xview-config
x11-toolkits/xview-lib
archivers/unzip
graphics/png

I couldn't get the workman package to build but I grabbed it from 

ftp://ftp.freebsd.org/pub/FreeBSD/2.2.8-RELEASE/packages/All/workm*.tgz


Adding packages:
================

Once you have a package, either because you created it from a port or
because it was installed to begin with you add it with "pkg_add".  For
example, less and emacs:

cd /usr/release/usr/R/packages-2.2.8/All
pkg_add less*.tgz
pkg_add emacs-19.34.tgz

Actually, if you did a make package that often does a pkg_add on the
local machine anyway so don't be upset if you get a message "package
already exists" or some such.


File-system chicanery
======================
So that tyagi looks consistent with other machines (and so some
symbolic links work I had to do the following on tyagi):

mkdir /net/tyagi137
ln -s /usr /net/tyagi137/usr

mkdir /usr/dirt
cd /usr/dirt
mkdir /usr/dirt/{bin,lib,config}

ln -s /net/tyagi137/usr/release/usr/R/pub/FreeBSD/packages
(this way this works on other machines)

make tyagi137 a file server /stand/sysinstall 
(reboot)
edit /etc/exports to add machines.
kill -1 mountd

edit /etc/inetd.conf to add daytime and time (for rrdate)

put tools in /usr/dirt/bin.  Like: 
ifmon
rdate
rrdate
set_flows
tcp-conn
tcp-reduce
tcp-summary
tcptrace-dirt
thruput
ttcp
xplot-dirt
setwindow
setdelay

Other DiRT documents
Author: Mark Parris Last updated: January 3, 1999