Create the answer file as described in To Create the Installation Answer File.
Navigate to the directory that contains the self-extracting installer file and the installation answer file.
From the command line, type:
self-extracting-file-name -a answer-file -s
self-extracting-file-name is the name of the file that you downloaded during Creating the Installation Answer File. Ensure that you provide the complete path to the answer file.
-a specifies the name of the answer-file. If you do not include a path to the file, the file is created under the directory from which the installation program is run.
-s specifies running in silent mode.
ogs-3.0.1-unix.sh -a 3.0.1-answer -s
When the prompt is returned, the silent installation is complete and the installation components are installed on your system.
(Optional) Start GlassFish Server using the instructions in the Oracle GlassFish Server 3.0.1 Quick Start Guide.
The guide explains how to perform basic tasks such as starting the server, accessing the Administration Console, and deploying a sample application.