<?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
! http://creativecommons.org/licenses/by-nc-nd/3.0/
! 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
! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
! 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='http://docbook.org/ns/docbook' version='5.0' xml:lang='en'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://docbook.org/ns/docbook
http://docbook.org/xml/5.0/xsd/docbook.xsd'
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>
<xinclude:include href="/shared/itemizedlist-download.xml" />
<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>
<imagedata fileref="images/missing-java6.png" format="PNG" />
</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
the WebStart URL, ending in <literal>QuickSetup.jnlp</literal>, from the
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>export PATH=/path/to/java/bin:$PATH</userinput>
$ <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,
<command>opendj/setup</command> (UNIX),
<command>opendj\setup.bat</command> (Windows),
or <command>opendj/QuickSetup.app</command> (Mac OS X).
</para>
<para>Java WebStart launches the the QuickSetup wizard, and soon the
Welcome screen appears.</para>
<mediaobject xml:id="figure-quicksetup-welcome">
<imageobject>
<imagedata fileref="images/QuickSetup-welcome.png" format="PNG" />
</imageobject>
<textobject>
<para>The Welcome screen summarizes the setup process.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-license">
<imageobject>
<imagedata fileref="images/QuickSetup-license.png" format="PNG" />
</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>
<imagedata fileref="images/QuickSetup-svrconf.png" format="PNG" />
</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>
<imagedata fileref="images/QuickSetup-replopts.png" format="PNG" />
</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>
<imagedata fileref="images/QuickSetup-gendata.png" format="PNG" />
</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>
<imagedata fileref="images/QuickSetup-jvmopts.png" format="PNG" />
</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>
<imagedata fileref="images/QuickSetup-review.png" format="PNG" />
</imageobject>
<textobject>
<para>You can opt to start your server when setup completes.</para>
</textobject>
</mediaobject>
<mediaobject xml:id="figure-quicksetup-finished">
<imageobject>
<imagedata fileref="images/QuickSetup-finished.png" format="PNG" />
</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>
<imagedata fileref="images/OpenDJ-Control-Panel.png" format="PNG" />
</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>
Use the Microsoft <command>msiexec.exe</command> command
to install the files.
</para>
<para>
The following example installs OpenDJ directory server files under
<filename>C:\OpenDJ-${docTargetVersion}</filename>,
writing an installation log file, <filename>install.log</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>
<para>(Mac OS X) <command>/path/to/opendj/bin/ControlPanel.app</command></para>
</listitem>
<listitem>
<para>(UNIX) <command>/path/to/opendj/bin/control-panel</command></para>
</listitem>
<listitem>
<para>(Windows) <command>C:\path\to\opendj\bat\control-panel.bat</command></para>
</listitem>
</itemizedlist>
</section>
</chapter>