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 not go down during the firmware upgrade. Do not power down or reset the system during the flashupdate procedure. |
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.
hostname % su Password: hostname # cd /etc/apache |
2. Copy the httpd.conf-example file to replace the current httpd.conf file.
hostname # cp httpd.conf httpd.conf-backup hostname # cp httpd.conf-example httpd.conf |
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.
hostname % su Password: hostname # man ftpd |
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 chmod 755 the script.
hostname # vi /tmp/script hostname # chmod 755 /tmp/script hostname # cd /tmp hostname # ./script |
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.
# ftp:x:500:65534:Anonymous FTP:/export/ftp:/bin/false |
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.
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.