<?xml version="1.0" encoding="UTF-8"?>
<!--
! CCPL HEADER START
!
! This work is licensed under the Creative Commons
! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
! To view a copy of this license, visit
! or send a letter to Creative Commons, 444 Castro Street,
! Suite 900, Mountain View, California, 94041, USA.
!
! You can also obtain a copy of the license at
! See the License for the specific language governing permissions
! and limitations under the License.
!
! If applicable, add the following below this CCPL HEADER, with the fields
! enclosed by brackets "[]" replaced with your own identifying information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CCPL HEADER END
!
! Copyright 2011-2015 ForgeRock AS.
!
-->
<chapter xml:id='chap-install-gui'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://docbook.org/ns/docbook
xmlns:xlink='http://www.w3.org/1999/xlink'
xmlns:xinclude='http://www.w3.org/2001/XInclude'>
<title>Installing OpenDJ With a Graphical Installer</title>
<indexterm><primary>Downloading OpenDJ</primary></indexterm>
<indexterm><primary>Quick install</primary></indexterm>
<para>If you want only to try OpenDJ server software, and you do not plan to
store any real or important data that you want to keep, then read only this
chapter, or just try out installation without reading any further.</para>
<section xml:id="install-gui-quick-setup">
<title>Installing OpenDJ With the QuickSetup Wizard</title>
<para>QuickSetup uses Java WebStart to let you perform an installation of
OpenDJ directory server starting with a click in your web browser, which can
be a great way to try OpenDJ directory server for the first time, or to do a
quick test installation.</para>
<note>
<para>OpenDJ directory server relies on Java 6 or later, so if your browser
picks up an old installation of Java 5 for example, installation can
fail. You might see an application error message such as this:</para>
<mediaobject xml:id="figure-missing-java6">
<alt>Application error due to old Java version</alt>
<imageobject>
</imageobject>
<textobject>
<para>Message showing the browser is unable to launch the application</para>
</textobject>
</mediaobject>
</note>
<para>If the WebStart installation does not work in your browser, copy
OpenDJ download page. Next, pass the link as an argument to the
<command>javaws</command> command in a terminal window to start the
installer.</para>
<screen>
$ <userinput>javaws <replaceable>URL-to-QuickSetup-Installer</replaceable></userinput>
</screen>
<para>
The WebStart installer corresponds to what you start
if you download OpenDJ-${docTargetVersion}.zip,
unzip the file,
and then run the
<link
xlink:show="new"
xlink:href="reference#setup-1"
xlink:role="http://docbook.org/xlink/role/olink"
><command>setup</command></link> command,
</para>
<para>Java WebStart launches the the QuickSetup wizard, and soon the
Welcome screen appears.</para>
<mediaobject xml:id="figure-quicksetup-welcome">
<imageobject>
</imageobject>
<textobject>
<para>The Welcome screen summarizes the setup process.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-license">
<imageobject>
</imageobject>
<textobject>
<para>Accept the license to install OpenDJ directory server if QuickSetup
presents a license text.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-svrconf">
<imageobject>
</imageobject>
<textobject>
<para>In the Server Settings screen that the default ports
are 389 or 1389 for LDAP, 4444 for administrative access.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-replopts">
<imageobject>
</imageobject>
<textobject>
<para>You can replicate data for high availability through the
Topology Options screen.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-gendata">
<imageobject>
</imageobject>
<textobject>
<para>You can generate test data as part of server setup in the Directory
Data screen.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-jvmopts">
<imageobject>
</imageobject>
<textobject>
<para>For a real installation, you can adjust JVM parameters for
your server, for example to allow OpenDJ to use more memory.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-review">
<imageobject>
</imageobject>
<textobject>
<para>You can opt to start your server when setup completes.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-finished">
<imageobject>
</imageobject>
<textobject>
<para>Click the Launch Control Panel button to check your newly
installed server.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-control-panel">
<imageobject>
</imageobject>
<textobject>
<para>OpenDJ Control Panel offers basic administration capabilities.</para>
</textobject>
</mediaobject>
</section>
<section xml:id="install-gui-windows-msi">
<title>Installing OpenDJ From the Windows Installer Package</title>
<para>
You can start installing OpenDJ directory server on Windows systems
from the Windows installer package,
<filename>OpenDJ-${docTargetVersion}.msi</filename>.
</para>
<indexterm><primary>Windows installer (.msi) package</primary></indexterm>
<procedure xml:id="install-gui-windows-msi-steps">
<title>To Install OpenDJ From the Windows Installer Package</title>
<para>
Installing OpenDJ directory server by using the Windows installer package
is a two-stage process.
First, you install the files by using the Windows installer package wizard.
Second, you configure OpenDJ by using the <command>setup</command> command.
</para>
<step>
<para>
Install OpenDJ files in one of the following ways.
</para>
<stepalternatives>
<step>
<substeps>
<step>
<para>
Double-click the Windows installer package,
<filename>OpenDJ-${docTargetVersion}.msi</filename>,
to start the install wizard.
</para>
</step>
<step>
<para>
In the Destination Folder screen, set the folder
where the wizard installs OpenDJ directory server files.
</para>
<para>
The default location is under Program Files on the system drive.
For example if the system drive is C:, the default location is
<filename>C:\Program Files (x86)\OpenDJ\</filename>,
as the native executable is a 32-bit application,
though you can run OpenDJ directory server
with a 64-bit Java environment.
</para>
</step>
</substeps>
</step>
<step>
<para>
to install the files.
</para>
<para>
The following example installs OpenDJ directory server files under
<filename>C:\OpenDJ-${docTargetVersion}</filename>,
in the current folder.
</para>
<screen>
C:\><userinput>msiexec /i OpenDJ-${docTargetVersion}.msi /l* install.log /q OPENDJ=C:\OpenDJ-${docTargetVersion}</userinput>
</screen>
</step>
</stepalternatives>
</step>
<step>
<para>
Start the installation.
</para>
<para>
When installation is finished, OpenDJ directory server files
are found in the location you specified as Destination Folder.
You must still run the <command>setup</command> command
before you can use OpenDJ directory server.
</para>
</step>
<step>
<para>
Browse to the Destination Folder,
and double-click the <command>setup</command> command
to start the OpenDJ QuickSetup wizard
and following the instructions on screen
as described in <xref linkend="install-gui-quick-setup" />.
</para>
</step>
</procedure>
</section>
<section xml:id="install-launch-control-panel">
<title>Starting OpenDJ Control Panel</title>
<para>
You might close OpenDJ Control Panel,
or decide to start it later after closing the QuickSetup wizard.
</para>
<itemizedlist>
<para>
To launch OpenDJ Control Panel again later, run the
<link
xlink:show="new"
xlink:href="reference#control-panel-1"
xlink:role="http://docbook.org/xlink/role/olink"
><command>control-panel</command></link> command.
Depending on your host system, this command is one of the following.
</para>
<listitem>
</listitem>
<listitem>
</listitem>
<listitem>
</listitem>
</itemizedlist>
</section>
</chapter>