![]() |
![]() |
![]() |
![]() |
Supporting a Centralized System - IBM
This chapter contains procedures for setting up the necessary operating system support files. Use the Workbook in Chapter 2 to determine the procedures needed.
The values selected in the remote configuration file dictate the operating system files that must be enabled, created, or modified.
- NFS directories must be exported if NFS is used for booting or file access.
- tftp must be configured and enabled if tftp is used for booting or file access.
- bootp must be configured and running for the network computer to automatically find boot information for a tftp or NFS boot.
- xdm must be configured and running if host connection method is xdmcp.
- If Domain Name Service (DNS) is used, the network computer entries must be added to the zone and local host files.
- Several Local Clients are available and can be started with xpsh or the Client Launcher (See Chapter 9, Local Clients).
- Local Motif Window Manager (MWM). (See Chapter 10, Window Managers).
Note: You must log in as root to perform the tasks in this chapter. Enabling NFS Access
This section describes the steps necessary to set up the NFS host so the network computer can search the host for fonts and configuration files. You need to enable access if the primary or secondary file access method or the boot method is set to NFS.
If you have the SMIT interface, use the following menu path to access NFS information. In addition, export entries with the read-mostly option.
- Communication Applications and Services -->
NFS -->
Network File System (NFS) -->
Configure NFS on This System -->
Start NFSRespond to the following by accepting both, the system default.
- Start NFS now, on system restart or both both
Press Enter or, if using the window interface, click DO.
Follow any additional instructions provided by the Command Status screen. When the status is displayed as OK, the command is complete.
Use this procedure if you do not use SMIT:
- Edit the /etc/exports file. Add each of the file systems to be exported at boot time, along with any options.
- To enable the mount point immediately, without booting, run:
- Use /usr/etc/exportfs without any parameters to verify the exports.
- Edit the /etc/hosts file and add the network computer name and address. For example:
- Update the arp table to add the new entries:
- Use the ps command to see if nfsd is running:
- If nfsd is not running, type:
- If nfsd is running, use the kill command with the PID to restart the daemon:
Enabling TFTP
There are considerations to make if the boot or font host uses secure tftp.
To determine if you use secure tftp, check the file /etc/inetd.conf for a line similar to:
- tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -s /tftpboot
tftp is one boot and file access method for network computers not equipped with DECnet or the ROM option. To use tftp to download the boot files from a host, or for font or any other file access, tftp service must be enabled on the host. For further information see the tftp man page for your host, or the supplied man page from /tekxp/man.
Use this procedure if you do not use SMIT:
- The tftpd daemon should be started each time the host boots. The /etc/inetd.conf file is read at startup, and should contain the tftp command line. If the line does not exist in your inetd.conf file, you need to add it. To verify that the tftp startup command is in the file:
- 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. If there is a mismatch between the actual location and the specified location, either move the binary or change the /etc/inetd.conf file.
- Add entries to the /etc/tftpaccess.ctl file to identiify the secure directories on your host. See the tftpd man page for more details.
- If you have edited inetd.conf, restart the inetd daemon for your changes to take effect:
Enabling BOOTP
Bootstrap protocol, bootp, is a method of ensuring that a particular network computer will always boot from the correct host using the proper configuration files. The bootpd daemon provides a name, IP address, boot path, and boot file name based on the hardware address of the network computer. Bootpd obtains booting data from the bootptab file. With the proper bootptab file and the network computer configured to boot from NETWORK, the network computer will boot from the network without any intervention, even for a first time boot.
- Verify that the bootpd and bootptab files are in the /etc directory:
- If they are not there, copy the versions provided on the installation media:
- Edit the /etc/hosts file to add the network computer IP addresses and names:
- Update the arp table to add the new entries:
- Set up the bootptab file with the instructions presented in the next section.
- Add the bootpd daemon start up to rc.tcpip:
- Use the ps command to find the process ID number (PID) for bootpd. In this example the PID is 112.
- Use the kill command with the PID to restart the bootpd daemon.
- If bootpd is not running, type:
Setting Up the bootptab File
The bootptab file contains the data used by bootpd. A sample bootptab file is located in /tekxp/examples. Refer to the bootpd man page in /tekxp/man for more information on the bootpd daemon provided on the installation media. The bootptab file contains three sections:
- Global template entries define general information about the host. They are used as part of the subnet template entries. Examples of global entries include:
- Subnet template entries define information specific to each subnet. They are used for each network computer entry. Subnet template entries generally include:
- Network computer entries are used to set information for a specific network computer. Network computer entries are specified by the network computer name and generally include:
- Using the template command (tc) to point to the appropriate subnet entry.
- Specifying the hardware type (ht), use ethernet for network computers.
- Specifying the network computer's hardware (ethernet) address (ha).
- Specifying the network computer's internet protocol address (ip).
- Specifying the network computer's boot file (bf).
- Specifying the location and name of the remote configuration file (T134).
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 4-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=/tekxp:
#
# 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
# Sample entry for model type XP100, XP200, XP350, or XP400
portland: tc=subnet60:ht=ethernet:ha=080011010045:\
ip=128.07.60.30: bf=/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=/boot/os.500:
# Sample entry for model type NC900
astoria: tc=subnet60: ht=ethernet: ha=080011010047:\
ip=128.07.60.32: bf=/boot/os.900:Running BOOTP
There are two methods for using bootp:
Select the method that best fits your environment.
Always Running BOOTPD
- If the bootpd daemon is started within the /etc/rc.tcpip file or a similar startup file, bootpd is always running and waiting for bootp requests. If the bootp command line does not exist in your /etc/rc.tcpip file, you need to add it. To verify that the bootpd -s startup command is in the file:
- Verify that bootpd resides where specified in /etc/rc.tcpip. 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.tcpip file.
- 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:
- To start the bootpd daemon without rebooting the system:
Only Running BOOTPD on Request
- If the bootpd daemon is started without the -s option, it is only run when bootp requests are sent to the host. If the bootpd command line does not exist in your inetd.conf file, you need to add it. To verify that the bootpd - s startup command is in the file:
- Verify that bootpd resides where it is specified in /etc/inetd.conf. 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/inetd.conf file.
- 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:
- If you have edited inetd.conf, restart the inetd daemon for your changes to take effect:
Note: In some installations, you may have to reboot the workstation to force a re-read of inetd.conf.
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 procedure enables the xdm program provided with the AIX 3.2 or later operating system. The procedure assumes that you have already built the Makefiles for the Xamples directory. If you have not, see /usr/lpp/X11/README for instructions. If the host is running xdm already, skip this section.
- If you do not have a /usr/bin/X11 directory, make one.
- Copy the xdm program to the /usr/bin/X11 directory.
- Set permissions for the new file.
- If you do not have a /usr/lib/X11/xdm directory, make one.
- Copy the xdm configuration files to the /usr/lib/X11/xdm directory.
- Set permissions for the new directory.
- Using a text editor, open the /usr/lib/X11/xdm/Xsession file. The file should look similar to Example 4-2.
Example 4-2 Sample Xsession File
- #!/bin/sh
#
# Xsession
#
case $# in
1)
case $1 in
failsafe)
exec xterm -geometry 80x24-0-0 -ls- ;;
- esac
esac
startup=$HOME/.xsession
resources+$HOME/.Xresources- if [ -f $startup ]; then
exec $startup
exec /bin/sh $startup
else
if [ -f $resources ]; then
xrdb -load $resources
fi
mwm &
exec xterm -geometry 80x24+10-10 -ls
fiAdding 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, and portland 128.07.60.30 and corvallis 128.07.60.31 are network computers.
- Edit the local host file for the name server. The typical file name is named.local. Depending on how you set up your system, the full path name for this example could be /var/named/oregon.DOC.COM/named.local. Add the network computer entries to the file. For example:
- Edit the zone file for the name server. The typical file name is the name of your server. Depending on how you set up your system, the full path name for this example could be /var/named/hosts/oregon.DOC.COM. Add the network computer entries to the file. For example:
- Use the ps command to see if named is running:
- If named is not running, type:
- If named is running, use the kill command with the PID to restart the daemon:
![]() |
![]() |
![]() |
![]() |