Put your logo here!

TOC PREV NEXT INDEX



3

Supporting a Centralized System - Sun

This chapter contains procedures for setting up the necessary operating system support files. Use the Workbook in Chapter 2 to determine the procedures needed.

Your environment and the features you enable dictate the operating system tasks. You must be root to modify the host files.

Enabling NFS on SunOS 4

This section describes the steps necessary to set up the host if NFS is used as the boot_method or file_access_method.

    1. Edit the /etc/exports file. Add each of the file systems to be exported at boot time, along with any options.
      The file systems must be exported to be accessible to the network computer. The exported systems are specified with an nfs_table command in the xp.cnf file, or in the nfs.tbl file. An example xp.cnf file entry:
      nfs_table "montana:/tekxp" "/tekxp"  "8192"
      An example nfs.tbl entry:
      montana:/tekxp /tekxp 8192
      /etc/exports entry, shown with the read only option (-ro):
      /tekxp -ro
    2. To enable the mount point immediately, without booting, run:
      # /usr/etc/exportfs -a [-o options]
    3. Use /usr/etc/exportfs without any parameters to verify the exports.
    4. Edit the /etc/hosts file and add the network computer name and address. For example:
      128.07.60.30 portland
      128.07.60.31 corvallis
    5. Use the ps command to see if nfsd is running:
      # ps -aux | grep nfsd | sed /grep/d
      root 88 1 0 Jul 27 ? 0:01 nfsd
      1. If nfsd is not running, type:
        # /usr/etc/nfsd 8 &
      2. If nfsd is running, use the kill command with the PID to restart the daemon (the PID is 88 in the preceding ps example):
        # kill -HUP PID

Enabling NFS on SunOS 5 (Solaris)

This section describes the steps necessary to set up the host if NFS is used as the boot_method or file_access_method.

    1. Edit the /etc/dfs/dfstab file. Add each of the file systems to be exported at boot time, along with any options.
      The file systems must be exported to be accessible to the network computer. The exported systems are specified with an nfs_table or nfs_entry commands in the xp.cnf file, or in the nfs.tbl file. An example xp.cnf file entry:
      nfs_table "montana:/tekxp" "/tekxp"  "8192"
      An example nfs.tbl entry:
      montana:/tekxp /tekxp 8192
      /etc/dfs/dfstab entry, shown with the read only option (ro):
      share -F nfs -o ro -d "network computer files" /tekxp
    2. To enable the mount point immediately, without booting, run:
      # shareall
    3. Edit the /etc/hosts file and add the network computer name and address.
      128.07.60.30 portland
    4. Use the ps command to see if nfsd is running:
      # ps -edf | grep nfsd | sed /grep/d
      root 88 1 22 Jul 27 ? 0:00 /usr/lib/nfs/nfsd -a 8
      1. If nfsd is not running, type:
        # /usr/lib/nfs/nfsd 8 &
      2. If nfsd is running, use the kill command with the PID to restart the daemon (the PID is 88 in the preceding ps example):
        # kill -HUP PID
    5. Use the ps command to see if mountd is running:
      # ps -edf | grep mountd | sed /grep/d
      root 88 1 74 Jul 27 ? 0:01 /usr/lib/nfs/mountd
      If mountd is not running, type:
      # /usr/lib/nfs/mountd &

Enabling TFTP

This section describes the steps necessary to set up tftp if it is used as the boot_method or file_access_method. This is the default boot method for network computers not equipped with TDEnet, Flash Memory or ROM options. For details, see the tftp man page on your host, or in /tekxp/man.

    1. Verify that the tftp startup command is in the /etc/inetd.conf file. Add the line if it does not exist in your inetd.conf file. For SunOS 4, the path is /usr/etc/in.tftpd, for SunOS 5, the path is /usr/sbin. To verify the command:
      # grep tftp /etc/inetd.conf
      tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd
      or
      tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd
    2. If /etc/inetd.conf contains a tftp entry with the -s (secure tftp) option:
      tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -s /tekxp
      or
      tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /tekxp
      both the boot_directory and install_directory used during the tape installation would have to be within the secure path, in this case, /tftpboot. Refer to the following section for information on secure tftp.
    3. Verify that in.tftpd, the tftp binary, resides where it is specified in /etc/inetd.conf. For the preceding examples, tftp would be located in /usr/etc (SunOS 4) or /usr/sbin (SunOS 5). If there is a mismatch between the actual location and the specified location, either move the binary or change the /etc/inetd.conf file.
    4. If you edited inetd.conf, restart the inetd daemon. Use the ps command to find the process ID number (PID) for inetd. In this example the PID is 112.
      1. For SunOS 4:
        # ps -aux | grep inetd | sed /grep/d
        root 112 1 0 Jul 27 ? 0:01 /usr/etc/inet/inetd
      2. For SunOS 5:
        # ps -edf | grep inetd | sed /grep/d
        root  112 1143 Jul 27 ? 0:06  /usr/sbin/inetd -s
        The -s indicates standalone. The process is running outside the Service Access Facility (SAF).
    5. If inetd is running, use the kill command with the PID to restart the inetd daemon.
      # kill -HUP PID
    6. If inetd is not running, either reboot the host or start inetd:
      1. For SunOS 4:
        # inetd
      2. For SunOS 5:
        # inetd -s
Note: The /tekxp/bin/sun4/tftp binary from the installation media requires a /usr/tmp directory to perform the file transfers. If this directory does not exist, it must be created.

Using Secure TFTP

If you use secure tftp, there are various things to consider before you begin:

Note: You must supply the initial slash (/) in the path that you specify (e.g. you cannot use boot/os.900 in the previous example).

Enabling BOOTP

Bootstrap protocol, bootp, is the recommended way to establish communications from the host to the network computer in an internet protocol environment. Bootp obtains booting data from the bootptab file. With the proper information stored in the bootptab file, the network computer can find its own name and IP address and boot from the network without any intervention, even for a first time boot.

    1. Verify that the bootpd and bootptab files are in the /etc directory:
      # ls /etc/bootp*
    2. If they are not there:
      # cp /tekxp/bin/sun4/bootpd /etc
      or
      # cp /tekxp/bin/solaris/bootpd /etc
      # cp /tekxp/examples/bootptab /etc
    3. Edit the /etc/hosts file to add the network computer internet addresses and names:
      128.07.60.30 portland
      128.07.60.31 corvallis
    4. Set up the bootptab file.
    5. Start or restart the inetd or bootpd daemon.

Setting Up the bootptab File

The bootptab file contains the data used by bootp. A sample bootptab file is located in /tekxp/examples. Refer to the bootp man page in /tekxp/man for more information. The file contains three sections:

Note: T134 is a user-defined variable to the bootptab file. It is intended for use with the bootp and bootptab file included on the media.

Example 3-1 Sample bootptab File

# Global entries for all hosts
global.d:\
:sm=255.255.255.0:\
:ds=128.07.5.200 128.07.61.150:\
:hn:\
:hd=/tftpboot:
# Master entries for each subnet template
subnet60: :tc=global.d:gw=128.07.60.100:
subnet61: :tc=global.d:gw=128.07.61.150:
# Individual network computer entries (no secure TFTP)
# Sample entry for model type XP100, XP200, XP350, or XP400
portland: tc=subnet60:ht=ethernet:ha=080011010045:\
ip=128.07.60.30: bf=/tekxp/boot/os.350:
T134=config/admin.cnf:
# Sample entry for model type NC200 or NC400
corvallis: tc=subnet60: ht=ethernet: ha=080011010046:\
ip=128.07.60.31: bf=/tekxp/boot/os.500:
# Sample entry for model type NC900
astoria: tc=subnet60: ht=ethernet: ha=080011010047:\
ip=128.07.60.32: bf=/tekxp/boot/os.900:

Running BOOTP

There are two methods for using bootp:

Select the method that best fits your environment.

Only Running BOOTP on Request
    1. If the bootpd daemon is started within the inetd.conf file, it is only run when bootp requests are sent to the host. If necessary, add the bootpd command to the inetd.conf file. To verify the bootps command in the file:
      # grep bootp /etc/inetd.conf
      bootps dgram udp wait root /etc/bootpd bootpd
    2. Verify that bootpd resides where it is specified in /etc/inetd.conf. For the preceding examples, bootpd is in /etc. If there is a mismatch between the actual location and the specified location, either move the bootpd binary or change the /etc/inetd.conf file.
    3. The port numbers for bootp listening and replying must be set in the /etc/services file. If they are not set, edit the file and add them. To verify that the ports are set in the file:
      # grep bootp /etc/services
      bootps 67/udp
      bootpc 68/udp
    4. If you edited inetd.conf, restart the inetd daemon. Use the ps command to find the process ID number (PID) for inetd. In this example the PID is 112.
      1. For SunOS 4:
        # ps -aux | grep inetd | sed /grep/d
        root 112 1 0 Jul 27 ? 0:01 /usr/etc/inet/inetd
      2. For SunOS 5:
        # ps -edf | grep inetd | sed /grep/d
        root  112 1143 Jul 27 ? 0:06  /usr/sbin/inetd -s
        The -s indicates standalone. The process is running outside the Service Access Facility (SAF).
    5. If inetd is running, use the kill command with the PID to restart the inetd daemon.
      # kill -HUP PID
    6. If inetd is not running, either reboot the host or start inetd:
      1. For SunOS 4:
        # inetd
      2. For SunOS 5:
        # inetd -s
Always Running BOOTP (SunOS 4 Only)
    1. If the bootpd daemon is started within the /etc/rc.local file or a similar startup file, it is always running and waiting for bootp requests. If the bootp command line does not exist in your /etc/rc.local file, you need to add it. To verify that the bootp startup command is in the file:
      # grep bootp /etc/rc.local
      /etc/bootpd -s ; echo -n ' bootpd'
      The -s option specifies continuous execution.
    2. Verify that bootpd resides where it is specified in /etc/rc.local. For the preceding examples, bootpd would be located in /etc. If there is a mismatch between the actual location and the specified location, either move the bootpd binary or change the /etc/rc.local file.
    3. The port numbers for bootp listening and replying must be set in the /etc/services file. If they are not set, edit the file and add them. To verify that the ports are set in the file:
      # grep bootp /etc/services
      bootps 67/udp
      bootpc 68/udp
    4. To start the bootpd daemon without rebooting the system:
      # /etc/bootpd -s &

Enabling RARP on SunOS 4

In addition to bootp the network computer can use rarp (TCP/IP Reverse Address Resolution Protocol) to establish communications. With rarp, the network computer broadcasts its ethernet address across the network, and receives its internet address back from the first host to respond. Whichever host responds first becomes the boot host.

Note: rarp is not supported for Token-Ring networks.
    1. If the rarpd daemon is started within the /etc/rc.local file or a similar startup file, it is always running and waiting for rarp broadcasts. If the rarp command line does not exist in your /etc/rc.local file, you need to add it. To verify that the rarp startup command is in the file:
      # grep rarp /etc/rc.local
      /usr/etc/rarpd -a ; echo -n ' rarpd'
    2. Verify that rarpd resides where it is specified in /etc/rc.local. For the preceding examples, rarpd would be located in /usr/etc. If there is a mismatch between the actual location and the specified location, either move the rarpd binary or change the /etc/rc.local file.
    3. Edit the /etc/hosts file to add the network computer internet addresses and names:
      128.07.60.30 portland
      128.07.60.31 corvallis
    4. Edit the /etc/ethers file to add the network computer ethernet addresses and names:
      08.00.11.01.00.45 portland
      08.00.11.01.00.46 corvallis
    5. Use the ps command to see if the rarpd daemon is running:
      # ps -aux | grep rarp | sed /grep/d
      root 69 1 0 Jul 27 ? 0:01 /etc/rarpd
      1. If rarp is running, use the kill command with the PID to restart the daemon:
        # kill -HUP PID
      2. If rarp is not running, type:
        # /usr/etc/rarpd -a &

Enabling RARP on SunOS 5

In addition to bootp the network computer can use rarp (TCP/IP Reverse Address Resolution Protocol) to establish communications. With rarp, the network computer broadcasts its ethernet address across the network, and receives its internet address back from the first host to respond. Whichever host responds first becomes the boot host.

Note: rarp is not supported for Token-Ring networks.
    1. The rarpd daemon is automatically enabled by default in the K60nfs.server file if you have a /tftpboot directory. Refer to your documentation for more information. To verify that the rarp startup command is in the file:
      # grep rarp /etc/rc2.d/K60nfs.server
      /usr/sbin/in.rarpd -a
    2. Edit the /etc/hosts file to add the network computer internet addresses and names:
      128.07.60.30 portland
      128.07.60.31 corvallis
    3. Edit the /etc/ethers file to add the network computer ethernet addresses and names:
      08.00.11.01.00.45 portland
      08.00.11.01.00.46 corvallis
    4. Use the ps command to see if the rarpd daemon is running:
      # ps -edf | grep rarp | sed /grep/d
      root 69 1 19 Jul 27 ? 0:00 /usr/sbin/in.rarpd -a
      1. If rarp is running, use the kill command with the PID to restart the daemon:
        # kill -HUP PID
      2. If rarp is not running, type:
        # /usr/sbin/in.rarpd -a &

Enabling XDM

The X Display Manager (xdm) provides services similar to a character terminal session, where a login window is displayed, error messages logged, and the operator's environment can easily be provided. The interface is customized through the use of several resource files

This section enables the xdm supplied with OpenWindows 3.0. If you do not run OpenWindows 3.0, follow the Enabling the XDM from the Media procedure next in this section.

    1. Verify that the xdm binary (/usr/openwin/bin/xdm) and the configuration files (/usr/openwin/lib/xdm) exist on the host.
Notes: If you are running OpenWindows 3.0 and the files are not on the host, they may not have been loaded from the CDROM. Install the files from the CDROM (SunView_Users, OpenWindows_Users, and OpenWindows_Fonts modules). For Solaris version 6, 7, or 8, CDE comes standard and there is no need to enable XDM. The DTLogin service provides a rich user environment. If you choose to use XDM, you must disable the DTLogin or CDE.
    1. Create a system startup script to enable xdm to restart each time the host is booted. For SunOS 4, the script is /etc/rc.xdm. For SunOS 5 the script would be named /etc/rc2.d/SXXxdm, where XX is a user-assigned number (such as 93) for startup files. The script should contain these lines:
      #!/bin/sh
      OPENWINHOME=${OPENWINHOME:=/usr/openwin}
      ## Note: if OPENWINHOME isn't set, it gets set to
      ## /usr/openwin; otherwise it is left alone.
      LD_LIBRARY_PATH=$OPENWINHOME/lib:/usr/lib
      PATH=$OPENWINHOME/bin:$PATH
      export OPENWINHOME LD_LIBRARY_PATH PATH
      $OPENWINHOME/bin/xdm -config $OPENWINHOME/lib/xdm/xdm-config
    2. Change the protections on the appropriate start-up file:
      # chmod 755 /etc/rc.xdm
      or
      # chmod 755 /etc/rc2.d/S93xdm
    3. For SunOS 4, add the following lines to the end of the /etc/rc.local file:
      if [ -f /etc/rc.xdm ]; then
      /etc/rc.xdm; echo 'starting XDM.'
      fi
    4. Modify the file /usr/openwin/lib/xdm/Xservers so xdm does not try to open a session window on the system console. To do this, comment out the line:
      :0 Local local $OPENWINHOME/lib/xdm/StartOW :0
      The new line should look like this:
      ##:0 Local local $OPENWINHOME/lib/xdm/StartOW :0
    5. If you have monochrome network computers, you may have color conflicts and end up with both background and foreground colors interpreted as white. Edit the /usr/openwin/lib/xdm/Xresources file and add or modify the following entries:
      #ifdef COLOR
      xlogin*greetColor: #f63
      xlogin*failColor: red
      xlogin*Foreground: white
      xlogin*Background: grey
      #else
      xlogin*Foreground: black
      xlogin*Background: white
      #endif
    6. Start the rc.xdm script manually so you do not have to reboot:
      # /etc/rc.xdm
    7. Use the appropriate ps command to verify the xdm process started:
      1. For SunOS 4:
        # ps -auxw | grep xdm | sed /grep/d
        root 113 0.0 0.0 108 0 ? IW Nov 15 0:09
        /usr/openwin/bin/xdm -config /usr/openwin/lib/xdm/xdm-config
        b. For SunOS 5:
        # ps -edf | grep xdm | sed /grep/d
        root  3472  1 80  Sep 30 ?  15:54
        /usr/openwin/bin/xdm -config /usr/openwin/lib/xdm/xdm-config

Adding DNS Entries

This section assumes that your site is currently running Domain Name Service (DNS). The instructions in this section deal strictly with adding network computer names and addresses to your existing zone and local host files on the name server. The following structure is used for the examples:

DOC 128.07.50.1 is the primary name server for the DOC company, oregon 128.07.60.1 is the secondary name server, serving the site's network computers portland 128.07.60.30 and corvallis 128.07.60.31 are network computers.

    1. Add the network computer entries to the local host file for the name server. The typical file name is named.local. Depending on your system, the path for this example could be /var/named/oregon.DOC.COM/named.local.
      ; named.local for server oregon
      IN NS oregon.DOC.COM
      30 IN PTR portland.oregon.DOC.COM
      31 IN PTR corvallis.oregon.DOC.COM
      IN indicates Internet Protocol, NS is the name server, and PTR sets up reverse pointers for the network computers.
    2. Add the network computer entries to the zone file for the name server. The typical file name is the name of your server. Depending on your system, the full path name for this example could be /var/named/hosts/oregon.DOC.COM.
      ; zone hosts file for server oregon
      oregon A 128.07.60.1
      HINFO Sparc2
      portland A 128.07.60.30
      HINFO network computer
      corvallis A 128.07.60.31
      HINFO network computer
      A indicates an IP address record, HINFO is an information entry.
    3. Use ps -aux (SunOS 4) or ps -edf (SunOS 5) to see if named is running:
      # ps -aux | grep named | sed /grep/d
      root 88 1 0 Jul 27 ? 0:01 named
      1. If named is not running, type:
        # named
      2. If named is running, use kill and the PID to restart the daemon:
        # kill -HUP PID

CDE Support

See the topic, Configuring Fonts for the Common Desktop Environment (CDE) for more information.

TOC PREV NEXT INDEX