FE01.math OS setup and Install
Host Information
Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 440MHz), No Keyboard
OpenBoot 3.25, 640 MB (50 ns) memory installed, Serial #13724834.
Ethernet address 8:0:20:d1:6c:a2, Host ID: 80d16ca2.
Operating System Install
Ultra 10 (440 MHz CPU) comes with Solaris 8 (2.8) installed.
We are using Solaris 2.6 in our general environment.
To install Solaris 2.6 on a Sparc CPU greater than 419 Mhz you need to
use the special hardware cd that comes with the sparcstation
(Operating Environment Installation CD 1999) along with the
Solaris 2.6 5/98 Server CD (get from IST as we don't have our own
copy).
During the installation I used these replies:
- "boot cdrom" from "Operating Environment Installation CD 1999"
- Would you like to use this installer? [y,n,?] y
- Do you want to format /dev/dsk/c0t0d0? [y,n,?,q] y
- Enter a swap partition size between 320Mb and 8692Mb,
default = 512Mb [?] 2048
(Warning: you won't be able to change this value later during
the file system layout section.)
- WARNING: ALL INFORMATION ON THE DISK WILL BE ERASED!
Is this OK [y,n,?,q] y
- Enter host name []: fe02
(note: Sun's install will no longer let you use "." in a host name
so the ".math" extension is added later.)
- Is this machine networked (y/n) [n]? y
- Enter this machine's IP Address []: 129.97.140.111
(Warning: Double check this value, the networking you corrupt may
not be your own.)
- Enter the subnet netmask [255.255.255.0]:
- Please enter the number corresponding to the type of name service you
would like [4]:
ie None.
- Please enter the number corresponding to how you would like to specify
the time zone [1]: 3
- Enter file name of time zone file or '-' for a list of
files [-]: Canada/Eastern
- The default date and time is MM DD, YYYY HH:MM . Do you want to use
this date and time (y/n) [y]?
Just get the date close, xntp package will set it correctly once it's
installed.
- Enter the root password []: *******
- Enter the root password []: *******
- Do you want Power Management turned on (y/n) [n]?
- Ask about Power Management at each reboot (y/n) [n]?
- Enter 'y' to apply these values and proceed to the next stage of the
installation, or 'n' to return to the beginning and make changes (y/n): y
Ignore any message about
"keyserv: failed to generate host's netname when establishing root's key."
since we're working off the serial line which doesn't support Sun
"Web install".
- Select the number corresponding to the operating environment you would
like to install [1]: 2
ie Solaris 2.6 5/98
- Solaris OS: Solaris 2.6 5/98
Enter 'y' if this is correct, or 'n' if it is incorrect: y
- Please insert the Solaris 2.6 5/98 CD.
< Press Return after the CD has been inserted >
- Select the number corresponding to the type of install you would like
[1]: 2
ie Custom Install
- Select the software localizations you want to install.
The English version of Solaris will be installed by default.
Enable locale German ( de ) (y/n) [n]?
Enable locale Spanish ( es ) (y/n) [n]?
Enable locale French ( fr ) (y/n) [n]?
Enable locale Italian ( it ) (y/n) [n]?
Enable locale Swedish ( sv ) (y/n) [n]?
- Select the number corresponding to the desired system locale [6]: 2
ie. English (Canada) ( en_CA )
- Select the number corresponding to the desired Solaris software
group [2]:
ie. Entire Solaris Software Group
- partitioned the disk this way:
Partition | Size |
Number | Name | MBytes |
0 | / | 1024 |
1 | swap | 2048 |
6 | /fsys | 5620 |
- Layout file systems on disk c0t0d0 (bootdisk) (y/n) [y]? y
- Layout file systems on disk c0t1d0 (y/n) [n]? y
- Select the number corresponding to a file system operation, or 'Done' to
proceed with the install [3]: 2
( Modify a disk's partition table )
- Select a disk to modify, or Done to return to the previous menu [3]: 1
( c0t0d0 )
- Select a slice to modify, or Done to return to the previous menu [8]: 7
- Enter new slice name:
ie delete default "/export/home" partition that OS install setup.
- Select a slice to modify, or Done to return to the previous menu [8]: 0
- Enter new slice name: /
- Enter new slice size (in MB) [650]: 1024
- Select a slice to modify, or Done to return to the previous menu [8]: 6
- Enter new slice name: /fsys
- Enter new slice size (in MB) [650]:
(whatever "Free Space" the console message say is left on the drive.)
- Enter 'y' to accept these values and start the installation, or 'n' to
return to the beginning and make changes (y/n): y
Once system has rebooted after the initial OS install:
- corrected hostname from fe02 to fe02.math.
- fe02# echo fe02.math > /etc/hostname.hme0
- fe02# hostname `cat /etc/hostname.hme0`
- fe02# sysidconfig
- need fe02 to be able to resolve it's arch masters IP address.
- fe02# echo "129.97.140.122 pythagoras.math" >> /etc/hosts
- And to be able to reach the arch master on the network, so
lets add the default route in by hand.
(note: The University standard for gateway addresses is to
use the first three octets of the IP address followed by a ".1".)
- fe02.math# route add default 129.97.140.1 1
- allow root remote access to this system only from
math.uwaterloo.ca and pythagoras.math.uwaterloo.ca
- fe02# echo "math" > /.rhosts
- fe02# echo "pythagoras.math" >> /.rhosts
- quick "education" of network information for this host.
- pythagoras# rdist -c -w /etc/{inet/{hosts,networks},group} fe02.math:/
- Install the IST set of recommended OS patches for this system.
- "mount ist:/sunpatches /mnt"
- "cd /mnt; ./patchinstall"
- store temporary files in "/tmp"
- do not save the original versions of the software
- install "suggested" patches to be installed.
- Add the following lines to /etc/system:
set pt_cnt=512
* Take some security precautions
set noexec_user_stack=1
set noexec_user_stack_log=1
- rebooted host using "reboot -- -rv"
XHiering Host
Basic XHier Services
Setup the Xhier Tree using csh
- mkdir -p /vendor /xhbin /.software /fsys/.software/{admin,arch,local,regional,share,spool}
- ln -s /fsys/.software/* /.software
- ln -s /.software/share /software
Setup NFS Mount of regional information and while we're at it
also add all the NFS mounts. Append to the "/etc/vfstab" file the
following lines:
#
# NFS Mounts from fisher.math
#
fisher-1.math:/vol/vol2/dotsoftware/regional - /.software/regional nfs - yes rw,hard,grpid
fisher-1.math:/home/mail - /var/mail nfs - yes rw,hard,grpid,actimeo=0
fisher-1.math:/home/u1 - /u1 nfs - yes rw,hard,grpid
fisher-1.math:/home/u2 - /u2 nfs - yes rw,hard,grpid
fisher-1.math:/home/u3 - /u3 nfs - yes rw,hard,grpid
fisher-1.math:/home/u4 - /u4 nfs - yes rw,hard,grpid
fisher-1.math:/home/u5 - /u5 nfs - yes rw,hard,grpid
Create home mount point directories plus /u (where the link tree into u# lives).
Also want to support kludge from when home directories where on
pythagoras:/fsys2 and everyone use to reference them via /fsys2/u*.
- mkdir /fsys2
- ln -s /u{,1,2,3,4,5} /fsys2
Mount the regional information which is used by xh-first-time.
- mount /.software/regional
- mount /var/mail
Setup the Xhier access rights.
- Pythagoras.uwaterloo.ca is the admin and arch master for this host
So on the ultimate admin master of pythagoras
(ie currently math.uwaterloo.ca) add the line
"fe02.math pythagoras.math" to
"/.software/admin/xhier/data/access-rights".
You can find the ultimate admin master by tracing it back through
the access-rights file or just hope the comment at the top of the
access-rights file is correct.
- distribute xhier package from ultimate admin master to pythagoras
math# xh-distribute -t admin -h pythagoras.math xhier
- repeat above steps for the arch master (could also potentially be
share but this usually comes from the arch master).
In this case it's even the same as the admin master so we don't
have to do anything.
Add fe02.math to /etc/hosts.equiv
- update /etc/hosts.equiv on regional master and then
distribute to all hosts listed in hosts.equiv file.
Add host to appropriate groups
- on the arch master, cd to "/software/.admin/hosts" and choose the
appropriate groups that the new host should belong to. In this
case only "mfcf_clients". (Need more about how to choose groups,
maybe "grep *" would do.)
- use "ls -l" on the group name to see what package the group is
actually distributed from (Package mfcf-basics).
- trace that package back to it's root, (where the RCS file is for
the file you need to modify) and add the new host. (host capo)
- xh-distribute the package from the top of the tree to the arch/admin
master(s) of the host your installing.
Add host to setpw setup
- Find out where the setpw package in being distributed from.
ie trace it back from the your arch master to the host that
has the RCS directory for the
/software/setpw/data/config/hosts/hosts.< comment > . < disttype >
files.
- Choose the appropriate file for the new host your adding, and
add it's entry.
- use "spread passwd" to spread this new entry around.
Initializing xhier.
- Run xh-first-time
pythagoras.math# xh-first-time -v fe02.math
- On fe02.math, fix /.software/local/xhier/config/local/xhier_maintainer
to be your email address until your happy with the way the host is working.
- Still on fe02.math, fix /software/xhier/config/admin/xhier_maintainer to
send its mail to the appropriate administration alias
(xhier_math_admin@math.uwaterloo.ca)
- Create /software/os-extras/data/gateway by adding the IP address
of this hosts gateway (use the first three octets of the IP
address followed by a ".1").
fe02.math# echo "129.97.140.1" > /software/os-extras/data/gateway
- Since this host only has one disk, the entire operating system
was installed on one partition "/". We need to inform xhier that
this is what we wanted.
fe02.math# echo "AllowPathOnRoot=yes" >> /software/os-extras/config/local/config.d
- Send mfcf-basics and os-extras again (xh-first-time set these the first
time).
pythagoras.math# xh-distribute -h fe02.math mfcf-basics
pythagoras.math# xh-distribute -h fe02.math os-extras
- repeated the above xh-distribute's until there are no errors,
only a couple of warnings -> Use a secure mail server
and "Can't find registrar host 'xh-registrar... " which is because
sendmail package has not been installed yet and routing is not yet working.
Installing Basic Service Packages.
Most (all) of this will complain about
"xh-register: Can't find registrar host 'xh-registrar.uwaterloo.ca': Error 0"
This error goes away after the reboot that occures a little further along.
- pythagoras.math# xh-distribute -h fe02.math rcs-5.7
- /etc/hosts and /etc/networks config-files
pythagoras.math# xh-distribute -h fe02.math config-files
After this is done; save the vendor files and
copy /usr/tmp/config-files*/* to /etc
fe02.math# cd /; tar cf - etc/{,inet}/{hosts,networks} | (cd /vendor; tar vxfBp -)
fe02.math# cp /tmp/config-files-Install_*/* /etc
(I've had problems that the /tmp/... files weren't created.)
This broke /.rhosts setup from pythagoras so
removed uwaterloo.ca suffix from /.rhosts hostnames.
- pythagoras.math# xh-distribute -h fe02.math mfcf-misc
- pythagoras.math# rcp /etc/resolv.conf fe02.math:/etc
(Note: check that resolv.conf is for a caching name server.)
- pythagoras.math# xh-distribute -h fe02.math nsdata
(Note: this program install is very verbose.)
- pythagoras.math# xh-distribute -h fe02.math bind-8.2
- pythagoras.math# xh-distribute -h fe02.math qi-2.3
- pythagoras.math# xh-distribute -h fe02.math nameserver
- pythagoras.math# xh-distribute -h fe02.math mailers-1
- pythagoras.math# xh-distribute -h fe02.math sendmail-8.8
(with manual install). Remember to add this host to
/software/sendmail-8.8/config/regional/clients.
- pythagoras.math# xh-distribute -h fe02.math procmail-3.13
- pythagoras.math# xh-dist2 fe02.math sunos5
- edited /.software/local/sunos5/config/local/config.d
- RootRlogin=yes
- StartAccounting=no
Ray says StartAccouting should be "no"
until IST fixes their log rolling bug
(see ToDo items 17629 and 22217)
- pythagoras.math# xh-distribute -h fe02.math batch
fe02.math# xh-install batch
Then iff this is a solaris host, comment out rlimitrss in
/software/batch/spool/*/profile
- reboot
- pythagoras.math# xh-dist-maintenance -h fe02.math
Sometime around now ask /software/lpr/.admin/Maintainer to setup a printcap
file on this host.
Manual Package Cleanups
- xh-install mail
- xh-install jqpublic
- edit /.software/local/jqpublic/home/commands
- xh-install setpw
Quick blasting of packages (Needs to be sorted by functional groups)
- pythagoras.math# xh-dist2 fe02.math aceclient-2.1uw acetools-2.1uw
- pythagoras.math# xh-dist2 fe02.math x11,network x11,contrib
- pythagoras.math# xh-dist2 fe02.math x11,minimal x11,network
- pythagoras.math# xh-dist2 fe02.math x11_minimal x11_netbasics x11_network2
- pythagoras.math# xh-dist2 fe02.math x11r5_demos x11r5_fontstuff
- pythagoras.math# xh-dist2 fe02.math tetex-1.0
- pythagoras.math# xh-dist2 fe02.math groff-1.15
- pythagoras.math# xh-dist2 fe02.math acrobat-4.0
- pythagoras.math# xh-dist2 fe02.math communicator-4.61
fe02.math# xh-install communicator-4.61
- pythagoras.math# xh-dist2 fe02.math pine-4 elm-2.5
- pythagoras.math# xh-dist2 fe02.math emacs-20.4 emacs-contrib
- pythagoras.math# xh-dist2 fe02.math xemacs-20.4
- pythagoras.math# xh-dist2 fe02.math auctex auctex-emacs19 auctex-lemacs
- pythagoras.math# xh-dist2 fe02.math xpm-3.4f
- pythagoras.math# xh-dist2 fe02.math ghostscript-6 ghostview-1
- pythagoras.math# xh-dist2 fe02.math lynx-2.8.2
- pythagoras.math# xh-dist2 fe02.math top-3.5
- pythagoras.math# xh-dist2 fe02.math gcc-2.95.2
- pythagoras.math# xh-dist2 fe02.math calendar
- pythagoras.math# xh-dist2 fe02.math users
- pythagoras.math# xh-dist2 fe02.math jqpublic
- pythagoras.math# xh-dist2 fe02.math xfig-3.2
- pythagoras.math# xh-dist2 fe02.math sc
- pythagoras.math# xh-dist2 fe02.math console
Final Tweaking
rcs initial /etc/vfstab and /etc/dfs/dfstab
Turn off dtlogin with "chmod a-x /usr/dt/bin/dtlogin"
Configuring this new client to be backed up by MFCF see
"http://www.math.uwaterloo.ca/mfcf/sysadmin/procedures/installation_general/networker.html"
- fe02.math# xh-local-maintenance
and check the output that everything is clean