Notes on When Installing AIX 4.3.1 From CD

                                                                     6/10/1998

- Install AIX 4.3.1 from CD.

- Use Configuration Assistant to set date, root password, set paging space to
  256MB (their recommendation), and configure TCP/IP.

- chfs -a size=32768 /
  chfs -a size=81920 /var

- Created skeletal root configuation files:
  - /.profile was
export ENV="${HOME}/.kshrc"

  - /.kshrc was
set -o vi
export PS1="<$(whoami)@$(hostname -s):"'$PWD> '
alias fs='/var/vice/etc/fs'
alias c='echo \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n;clear'
xhost + 1>/dev/null 2>&1

  - /.dt/dtwmrc was copied from ~jasper.
  - /.Xdefaults was copied from ~jasper.

- Install and Configure DCE/DFS and set up Integrated Login.
  - rsh almadmin -l dceuser dce22 > /tmp/dce22
  - ksh /tmp/dce22
    - When I got the "Is DCE cell_admin configuration complete? [y/n]" prompt, I
      used Hu's web pages at http://ardvark & selected "Machine Password Reset"
      to reset it.  Then I answered "y".
    - Had to kill dceunixd 'cause Hu started it himself and lsdce complained
      about it.  Also had to remove the line from /etc/inittab 'cause with
      DCE 2.2, dceunixd is now a server component.  Used smitty to activate it.
  - chsec -f /etc/security/login.cfg -s AFS     -a program=/usr/vice/etc/afs_dynamic_auth
    I couldn't get this
       chsec -f /etc/security/user -s default -a 'SYSTEM=(DCE AND AFS) OR AFS'
    command to work properly, so I went in and changed the SYSTEM line in the
    default stanza in /etc/security/user myself.

- Install AFS.
  - tftp -o /tmp/afsinstall oak.almaden.ibm.com /local/lib/afs/afsinstall image
  - ftp'd /afs/alm/u/tee/tafs/afsclient-rs_aix42-5.52.tar to /tmp
  - chmod +x /tmp/afsinstall
  - /tmp/afsinstall /tmp/afsclient-rs_aix42-5.52.tar

- Set miscellaneous links.
  - ln -s /afs/almaden.ibm.com/u /u
  - ln -s /.../almaden.ibm.com/fs/home /d
  - ln -s /afs/almaden.ibm.com/@sys/local /local
  - ln -s /afs/almaden.ibm.com/@sys/contrib /contrib
  - ln -s /local/bin/perl /usr/bin/perl
  - ln -s /local/bin/rexx /usr/bin/rexx
  - ln -s /local/bin/rxqueue /usr/bin/rxqueue
  - ln -s /local/bin/rxqpull /usr/bin/rxqpull
  - ln -s /local/bin/rxqpush /usr/bin/rxqpush
  - ln -s /local/bin/aixqapi /usr/bin/aixqapi
  - ln -s /local/bin/aixwatch /usr/bin/aixwatch
  - ln -s /local/lib/rexx/librexx.a /usr/lib/librexx.a
  - ln -s /local/lib/rexx/rexxaix.cat /usr/lib/rexxaix.cat
  - ln -s /local/lib/rexx/rexxaix.cat /usr/lib/nls/msg/C/rexxaix.cat
  - ln -s /local/lib/rexx/rexxaix.cat /usr/lib/nls/msg/En_US/rexxaix.cat
  - ln -s /local/lib/rexx/rexxaix.cat /usr/lib/nls/msg/en_US/rexxaix.cat


- Installed Additional Software
    Java.adt.docs                  1.1.4.0
    Java.adt.includes              1.1.4.0
    Java.adt.src                   1.1.4.0
    Java.rte.Dt                    1.1.4.0
    Java.rte.bin                   1.1.4.0
    Java.rte.classes               1.1.4.0
    Java.rte.lib                   1.1.4.0
    Java.samples.AIXDemos          1.1.4.0
    Java.samples.demos             1.1.4.0
    Java.samples.jni_example       1.1.4.0
    bos.adt.base                   4.3.1.0
    bos.adt.data                   4.3.0.0
    bos.adt.debug                  4.3.1.0
    bos.adt.graphics               4.3.1.0
    bos.adt.include                4.3.1.0
    bos.adt.lib                    4.3.1.0
    bos.adt.libm                   4.3.1.0
    bos.adt.prof                   4.3.1.0
    bos.adt.prt_tools              4.3.0.0
    bos.adt.samples                4.3.1.0
    bos.adt.sccs                   4.3.1.0
    bos.adt.syscalls               4.3.1.0
    bos.adt.utils                  4.3.1.0
    bos.content_list               4.3.1.0
    bos.dosutil                    4.3.1.0
    bos.games                      4.3.1.0
    bos.mh                         4.3.1.0
    bos.mh                         4.3.1.1
    bos.net.tcp.server             4.3.1.1
    bos.net.uucp                   4.3.1.0
    bos.perf.diag_tool             4.3.1.0
    bos.perf.pmr                   4.3.1.0
    perfagent.tools                2.2.31.0
    printers.ibm4029.rte           4.3.0.0
    bos.acct                       4.3.1.0   
    bos.net.tcp.server             4.3.1.0
    bos.sysmgt.trace               4.3.1.0
    bos.txt.ts                     4.3.0.0
    X11.compat.fnt.pc              4.3.0.0
    bos.compat.termcap             4.3.1.0  (on second CD)
    X11.Dt.helpinfo                4.3.1.0
    X11.adt.bitmaps                4.3.0.0
    X11.adt.ext                    4.3.1.0
    X11.adt.imake                  4.3.1.0
    X11.adt.include                4.3.0.0
    X11.adt.lib                    4.3.1.0
    X11.adt.motif                  4.3.1.0
    X11.apps.config                4.3.1.0
    X11.samples.apps.aixclients    4.3.1.0
    X11.samples.apps.clients       4.3.1.0
    X11.samples.apps.demos         4.3.1.0
    X11.samples.apps.motifdemos    4.3.0.0
    X11.samples.common             4.3.0.0
    X11.samples.doc                4.3.0.0
    X11.samples.ext                4.3.1.0
    X11.samples.fnt.util           4.3.1.0
    X11.samples.lib.Core           4.3.1.0
    X11.samples.rgb                4.3.0.0

- Define my 4029 printer.
  - smitty mkvirprt
  - chrctcp -a lpd
  - lpd
  - ruser -a -p +
  - /usr/lib/lpd/pio/etc/piochdfq -q ps

- Define /cd for easy mounting
  -  crfs -v cdrfs -p ro -d cd0  -m /cd  -A no

- Other Miscellaneous customize Things
  - chdev -l sys0 -a maxuproc=1024
  - chlicense -u 512
  - /local/bin/customize -printers
  - Until they get the psua fixed,
    - Commented out the updating of /etc/qconfig from crontab and
    - Changed the 2 statfilters for psua to aixshort & aixlong.
  - a=/afs/almaden.ibm.com/rs_aix42/local/lib/net
    cp -p named.boot /etc
    cp -p named.ca /etc
    cp -p named.localedit /etc/named.local
    vi /etc/named.local and change the xxx's to jasper.almaden.ibm.com
  - stopsrc -s dpid2
    chrctcp -d dpid2
    chrctcp -a routed
    chssys -s routed -a "-q"
    startsrc -s routed
  - Created a 2-line /etc/resolv.conf
      nameserver      127.0.0.1
      search  almaden.ibm.com patents.ibm.com
  - chrctcp -a named
    startsrc -s named
  - "Installed" DB/2
    - chservices -a -v arcdbc -p tcp -n 3700
    - chservices -a -v arcdbi -p tcp -n 3701
    - ln -s /local/lib/db2_01_01_0000 /usr/lpp/db2_01_01_0000


- Install the SoftDist Client Code
  - su
  - mkdir /tmp/junk
  - cd /tmp/junk
  - tftp -g SDinstall.tar softdist /images/custbin/SDinstall.tar image
  - tar -xvf SDinstall.tar
  - ./SDinstall
  - cd
  - rm -rf /tmp/junk

- According to Jim Hafner, the only supported C++ compiler for AIX 4.3.1
  is version 3.6.4, which is not available through Softdist (only 3.6.0 is).
  According to Jim's notes at http://w3/~hafner/AIX43Customize.html, you
  have to go to http://w3.torolab.ibm.com/~khangura, and follow the
  "Supported AIX V4.x C/C++ Compilers" link. The "IBM C and C++ Compilers
  for OS/2, AIX, and for Windows NT, V3.6.4.0 (AIX only, 205MB compressed)"
  link showed what I needed to do to get the code, namely
    - mkdir /tmp/xlC
    - cd /tmp/xlC
  Warning!!  The tar.Z file itself is 210 MB, and to uncompress & untar
  it, you need another 380 MB more, so make sure you have at least 600 MB
  or so free in /tmp before ftp-ing.
    - ftp ftp3.torolab.ibm.com
    - cd pub/vac++/aix-v3.6
    - image
    - get AIXpak3640.tar.Z
    - get cxxcmp.lic
  Then to install it,
    - cd /tmp/xlC
    - zcat AIXpak3640.tar.Z | tar -xvf -
    - then as root, smitty installp.  I didn't install everything in the
      release, e.g. the html help files or the Japanese language stuff.
      This saved about 250MB (750MB instead of 1GB).
    - /usr/ibmcxx/bin/replaceCSET to create /usr/bin/xlC, cc, ... links.
  To get past the LUM licensing problem, you could read /usr/ibmcxx/README.C++,
  but Jim's web page says he followed the instructions at
  http://w3.torolab.ibm.com/~hikida/lum4.html, which said as root, do
    - cd /var/ifor
    - i4config
    - Select "4) Central Registry (and/or Network and/or Nodelock) License
      Server (*)"
    - Answer "y" to "Do you want this system be a Network License Server too?"
    - Select "2) Direct Binding only"
    - Answer "n" to "Do you want to change the Network License Server ip port
      number?"
    - Answer "n" to "Do you want to change the Central Registry License Server
      ip port number?"
    - Answer "n" to "Do you want to disable remote administration of this
      Network License Server?"
    - Answer "y" to "Do you want this system be a Nodelock License Server too?"
    - Select "1) Default"
    - Enter blank to accept the default path for the default log file(s).
    - Answer "y" to "Do you want to modify the list of remote License Servers
      this system can connect to in direct binding mode (both for
      Administration purposes and for working as Network License Client) ?"
    - Select "3) create a new list"
    - The instructions on that web page said to enter the short I.P. name of
      your machine (eg "jasper") for "Server network name(s):", but I wonder
      if this is correct.  Since our standard configuration is having the
      fully-qualified I.P. name as the hostname, perhaps this should be, too.
    - Answer "n" to "Do you want to change the default ip port number [1515]?"
    - Answer "y" to "Do you want the License Server(s) automatically start on
      this system at boot time?"
    - Answer "y" to "Do you want to continue?" and write the updates to the
      i4ls.ini file. 
    - Answer "y" to "Do you want the License Server(s) start now?"
  Whew!!  But wait, you're not done yet.  The above just sets up and configures
  the license server.  Now we've got to give it some license keys.
    - cd /var/ifor
  I would have liked to configure my machine to be a "Network Licence Server",
  and I answered the question above "y" to do so, but after configuring the
  cxx36_c.lic file as below & running it, the C compiler still couldn't find
  a license.  I'm guessing it's because I answered my short I.P. name instead
  of my long one.  Anyway, that's why I switched to using the node-lock license.
    - cp cxx36_cn.lic raj_cn
    - vi raj_cn
    - Change line 1 to - Fully-qualify the i4blt command to /var/ifor/i4blt.
                       - Change the "number_of_lics" in the -T option to say, 128.
                       - Change the "admin_name" in the -R option to your name.
    - Delete the other lines.
    - :w!
    - ./raj_cn
  I was successfully able to compile some test programs after this.


- Build & Install ssh & scp.
  - cd /u/jasper/ssh-1.2.22
  - ./configure
  - Modify config.h and remove the #define HAVE_UTMPX_H 1 line in order to get
    login.c to compile correctly.
  - make
  - Then as root, - make install
                  - cp -p ssh /usr/local/bin
                  - cp -p scp /usr/local/bin

- Get lsof (see /u/jasper/aixnotes/lsof), but that didn't work, so I'll have to
  get back to lsof later.

- Get, install, and configure fixdist.
  - ftp://service.software.ibm.com/aix/tools/fixdist/fd.tar.Z
  As root,
  - cd /
  - zcat /u/jasper/fd.tar.Z | tar -xvf -
  As me again, start up fixdist and configure
  - FixDist Server = service.software.ibm.com
  - Target Directory = /afs/alm/u/jasper/fixdist
  - Under Options, Ftp Command, set Ftp Command Path to /local/bin/rftp.

- Install Adobe Acrobat reader from Tom Engelsiepen's angelshark server.
  - mount angelshark:/export /mnt
  - cd /mnt/lpp_source/lpp_source1
  - smitty installp
    - Use "." as directory to install from.
    - Hit PF4 to select Adobe.acrobat.
    - Install.
  - cd;umount /mnt
  - lslpp -f Adobe.acrobat  points you to their install script, which is
  - /usr/Adobe/acrobat/INSTALL
  The acroread binary will be in /usr/lpp/Acrobat3/bin/acroread.