此内容没有您所选择的语言版本。
8.2.2. Client System Preparation
		Before your UNIX-based client systems benefit from Red Hat Network, they must be prepared for connection:
	
- Download and installgzipand required third-party libraries.
- Download the RHN application tarball from the Satellite to the client and install the contents.
- Next, deploy the SSL certificates required for a secure connection.
- Configure the client applications to connect to the RHN Satellite Server.
		Once finished, your systems will be ready to begin receiving RHN updates. The following three section explain these steps in detail.
	
8.2.2.1. Download and Install Additional Packages
复制链接链接已复制到粘贴板!
			This section steps you through the process of downloading and installing third-party applications and the RHN applications from the Satellite onto the UNIX client.
		
			Of primary importance is the Red Hat Update Agent for UNIX (
up2date), which provides the link between your client systems and Red Hat Network. The UNIX-specific version of the Red Hat Update Agent is limited in functionality compared to its Linux counterpart but still enables system registration and facilitates package installs and patches. Refer to Section 8.3, “Registration and Updates” for a full description of the tool's options.
		Note
				It may be useful to enter the command 
bash when first logging into the Solaris client. If the BASH shell is available, it will make the system's behavior as Linux-like as possible.
			8.2.2.1.1. Install Third-Party Packages
复制链接链接已复制到粘贴板!
				Installation of the RHN applications cannot proceed unless the following utility and libraries are present:
			
- gzip
- libgcc
- openssl
- zlib
				The 
gzip utility is provided by the SUNWgzip package and may be downloaded from http://www.sunfreeware.com.
			
				On recent versions of Solaris, the necessary libraries are provided by the following natively installed packages:
			
- SUNWgccruntime
- SUNWopenssl*
- SUNWzlib
				For older Solaris versions, the following required packages may be downloaded from http://www.sunfreeware.com:
			
- SMClibgccor- SMCgcc
- SMCossl
- SMCzlib
				To verify if a package is installed on the client, use the 
pkginfo command. For example, to check for a package that contains "zlib" in the name, run the following command:
			pkginfo | grep zlib
# pkginfo | grep zlib
Note
					Solaris package archive names differ from the name of the installed package. For example, the package archive 
libgcc<version>-sol<solaris-version>-sparc-local.gz becomes SMClibgcc after installation
				8.2.2.1.2. Configure the Library Search Path
复制链接链接已复制到粘贴板!
				In order to allow the Solaris client to use the libraries installed in the previous step, you must add their location to the library search path. To do so, use one of the following commands, depending on the architecture of the client:
			
				On Sparc:
			
crle -c /var/ld/ld.conifg -l /lib:/usr/lib:/usr/local/lib
# crle -c /var/ld/ld.conifg -l /lib:/usr/lib:/usr/local/lib
				On x86:
			
crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib
# crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib8.2.2.1.3. Download RHN Client Packages
复制链接链接已复制到粘贴板!
				Download the appropriate tarball of packages from the 
/var/www/html/pub/ directory of your Satellite. If you are able to use a GUI web browser like Mozilla, navigate to the /pub directory of the Satellite and save the appropriate tarball to your client:
			http://your-satellite.example.com/pub/rhn-solaris-bootstrap-<version>-<solaris-arch>-<solaris-version>.tar.gz
http://your-satellite.example.com/pub/rhn-solaris-bootstrap-<version>-<solaris-arch>-<solaris-version>.tar.gz
				If you must download the tarball from the command line, it should be possible to use 
ftp to transfer the file from the Satellite to the client.
			
				Using 
gzip, decompress the tarball. You should have the following packages:
			- RHATpossl
- RHATrcfg
- RHATrcfga
- RHATrcfgc
- THATrcfgm
- RHATrhnc
- RHATrhnl
- RHATrpush
- RHATsmart
SMClibgcc and SMCosslg may also be included in the tarball.
			8.2.2.1.4. Install the RHN Packages
复制链接链接已复制到粘贴板!
				Change to the uncompressed directory and use the UNIX variant's native installation tool to install each package. For example, on Solaris, use the 
pkgadd command. Answer "yes" to any prompts during package install.
			
				Here is how a typical installation might proceed:
			
pkgadd -d RHATpossl-0.6-1.p24.6.pkg all pkgadd -d RHATpythn-2.4.1-2.rhn.4.sol9.pkg all pkgadd -d RHATrhnl-1.8-7.p23.pkg all
# pkgadd -d RHATpossl-0.6-1.p24.6.pkg all 
# pkgadd -d RHATpythn-2.4.1-2.rhn.4.sol9.pkg all 
# pkgadd -d RHATrhnl-1.8-7.p23.pkg all 
...
Note
					You may choose to use the 
-n of pkgadd, which runs the command in non-interactive mode. However, this may cause the installation of some packages to fail silently on Solaris 10.
				
				Continue until each package is installed in the RHN-specific path: 
/opt/redhat/rhn/solaris/.
			8.2.2.1.5. Include RHN Packages in the PATH
复制链接链接已复制到粘贴板!
				In order to make the RHN packages available at each login, you may wish to add them to your PATH. To do so, add these commands to your login script:
			
PATH=$PATH:/opt/redhat/rhn/solaris/bin PATH=$PATH:/opt/redhat/rhn/solaris/usr/bin PATH=$PATH:/opt/redhat/rhn/solaris/usr/sbin export PATH
# PATH=$PATH:/opt/redhat/rhn/solaris/bin 
# PATH=$PATH:/opt/redhat/rhn/solaris/usr/bin 
# PATH=$PATH:/opt/redhat/rhn/solaris/usr/sbin 
# export PATH
				To enable access to the RHN client command man pages, add them to your MANPATH. To do so, add the following commands to your login script:
			
MANPATH=$MANPATH:/opt/redhat/rhn/solaris/man export MANPATH
 
# MANPATH=$MANPATH:/opt/redhat/rhn/solaris/man 
# export MANPATH
				Alternatively, you can also access the man pages from the command line, with the following command:
			
man -M /opt/redhat/rhn/solaris/man <man page>
 
# man -M /opt/redhat/rhn/solaris/man <man page>
				Finally, add the Red Hat Libraries to your PATH as you did with 
libgcc, openssl and zlib.
			crle -c /var/ld/ld.config -l <current library paths>:/opt/redhat/rhn/solaris/lib
crle -c /var/ld/ld.config -l <current library paths>:/opt/redhat/rhn/solaris/lib