A P P E N D I X B |
Setting Up an HTTP or FTP Server: Examples |
This appendix provides sample procedures for setting up a firmware server, which is necessary to invoke the flashupdate command. A firmware server can be either an HTTP or an FTP server. To upgrade firmware, you can use either the FTP or HTTP protocol.
Before you begin to set up the HTTP or FTP server, follow these guidelines:
![]() |
Caution - The firmware server must notgo down during the firmware upgrade. Do notpower down or reset the system during the flashupdateprocedure. |
This section provides the following sample procedures for setting up a firmware server:
|
This sample procedure for setting up an Apache HTTP server with the Solaris 8 operating environment assumes that:
1. Log in as superuser and navigate to the /etc/apache directory.
2. Copy the httpd.conf-example file to replace the current httpd.conf file.
3. Edit the httpd.conf file and make changes to Port: 80, ServerAdmin, and ServerName.
a. Search through the httpd.conf file to find the "# Port:" section to determine the correct location to add the Port 80 value as shown in CODE EXAMPLE B-1.
b. Search through the httpd.conf file to find the # ServerAdmin: section to determine the correct location to add the ServerAdmin value as shown in CODE EXAMPLE B-2.
c. Search through the httpd.conf file and search for ServerName (CODE EXAMPLE B-3).
|
This sample procedure for setting up an FTP server assumes that the Solaris 8 operating environment is installed for the FTP server to be used.
1. Log in as superuser and check the ftpd man page.
In the man pages you will find the script that will create the FTP server environment. Search through the man page to find the lines shown in the example below.
This script will setup your ftp server for you. Install it in the /tmp directory on the server. Copy this script and chmod 755 script_name. #!/bin/sh # script to setup anonymous ftp area # |
2. Copy the entire script out of the man page (not just the portion shown in the sample above) into the /tmp directory and change the permission on the script to chmod 755.
3. If you need to set up anonymous FTP, add the following entry to the /etc/passwd file. You must use the following:
/export/ftp was chosen to be the anonymous FTP area. This prevents users from logging in as the FTP user.
Note - When using anonymous FTP, you should be concerned about security. |
4. Add the following entry to the /etc/shadow file. Do not give a valid password. Instead, use NP.
5. Configure the FTP server on the loghost server.
hostname # cd /export/ftp/pub hostname # mkdir firmware_build_number hostname # cd /cdrom/cdrom0/firmware hostname # cp * /export/ftp/pub/firmware_build_number |
Copyright © 2006, Sun Microsystems, Inc. All Rights Reserved.