1 <?xml version="1.0" encoding="UTF-8"?>
2 <chapter xml:id="serversideinstallation" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xl="http://www.w3.org/1999/xlink">
4 <title>Server-side Installation of Evergreen Software</title>
6 <para>This section describes installation of the Evergreen server-side software and its associated components.
7 Installation, configuration, testing and verification
8 of the software is straightforward if you follow some simple directions.</para>
11 <para>Installing, configuring and testing the Evergreen server-side software is straightforward with the current
12 stable software release. See <xref linkend="serversideinstallation-all"/> for instructions tailored to
13 installing on some particular distributions of the <systemitem class="osname">Linux</systemitem> operating
15 <para>The current version of the Evergreen server-side software runs as a native application on any of several
16 well-known <systemitem class="osname">Linux</systemitem> distributions
17 (e.g., <systemitem class="osname">Ubuntu</systemitem> and <systemitem class="osname">Debian</systemitem>).
18 It does not currently run as a native application on the <systemitem class="osname">Microsoft Windows</systemitem>
19 operating system (e.g., <systemitem class="osname">WindowsXP</systemitem>, <systemitem class="osname">WindowsXP
20 Professional</systemitem>, <systemitem class="osname">Windows7</systemitem>), but the software can still be
21 installed and run on <systemitem class="osname">Windows</systemitem> via a so-called
22 <emphasis>virtualized</emphasis> Linux-guest Operating System (using, for example,
23 <application>"VirtualBox"</application>, or <application>"VMware"</application>, or
24 <application>"VirtualPC"</application> to emulate a <systemitem class="osname">Linux</systemitem>
25 environment). It can also be installed to run on other <systemitem class="osname">Linux</systemitem>
26 systems via virtualized environments (using, for example, <application>"VirtualBox"</application> or
27 <application>"VMware"</application>). More information on virtualized environments can be found in
28 <xref linkend="serversideinstallation-virtual"/>.</para>
29 <para>Installation of the Evergreen Staff Client software is reviewed in <xref linkend="staffclientinstallation"/>. </para>
30 <para>The Evergreen server-side software has dependencies on particular versions of certain major software
31 sub-components. Successful installation of Evergreen software requires that software versions agree with those
33 <table xml:id="serversideinstall-software-dependencies">
34 <title>Evergreen Software Dependencies</title>
36 <primary>Evergreen software dependencies</primary>
38 <tgroup align="left" cols="3" colsep="1" rowsep="1">
39 <colspec colname="Evergreen" colnum="1" colwidth="1.0*"/>
40 <colspec colname="OpenSRF" colnum="2" colwidth="1.0*"/>
41 <colspec colname="PostgreSQL" colnum="3" colwidth="1.0*"/>
44 <entry>Evergreen</entry>
45 <entry>OpenSRF</entry>
46 <entry>PostgreSQL</entry>
51 <entry>1.6.1.x</entry>
53 <entry>8.2 / 8.3</entry>
56 <entry>1.6.0.x</entry>
58 <entry>8.2 / 8.3</entry>
63 <entry>8.1 / 8.2</entry>
68 <entry>8.1 / 8.2</entry>
73 <section xml:id="serversideinstallation-all">
74 <title>Installing Server-Side Software</title>
75 <para>This section describes the installation of the major components of Evergreen server-side software.</para>
76 <para>As far as possible, you should perform the following steps in the exact order given since the
77 success of many steps relies on the successful completion of earlier steps. You should make backup
78 copies of files and environments when you are instructed to do so. In the event of installation problems
79 those copies can allow you to back out of a step gracefully and resume the installation from a known
80 state. See <xref linkend="backingup"/> for further information.</para>
81 <para>Of course, after you successfully complete and test the entire Evergreen installation you should
82 take a final snapshot backup of your system(s). This can be the first in the series of regularly
83 scheduled system backups that you should probably also begin.</para>
84 <section xml:id="serversideinstallation-opensrf">
86 <primary>OpenSRF</primary>
87 <secondary>installation</secondary>
89 <title>Installing OpenSRF 1.4.x On <systemitem class="osname">Ubuntu</systemitem> or
90 <systemitem class="osname">Debian</systemitem></title>
92 <primary>Linux</primary>
93 <secondary>Debian</secondary>
96 <primary>Linux</primary>
97 <secondary>Ubuntu</secondary>
99 <para>This section describes the installation of the latest version of the Open Service Request
100 Framework (OpenSRF), a major component of the Evergreen server-side software, on
101 <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem>
102 systems. Evergreen software is integrated with and depends on the OpenSRF software
104 <para>Follow the steps outlined here and run the specified tests to ensure that OpenSRF is
105 properly installed and configured. Do <emphasis><emphasis role="bold">not</emphasis></emphasis>
106 continue with any further Evergreen installation steps
107 until you have verified that OpenSRF has been successfully installed and tested.</para>
109 <para>The following steps have been tested on the x86 (32-bit) and x86-64 (64-bit)
110 platforms. OpenSRF 1.4.0 has been tested on <systemitem class="osname">Debian Etch
111 (4.0)</systemitem>, <systemitem class="osname">Debian Lenny (5.0)</systemitem> and
112 <systemitem class="osname">Ubuntu Lucid Lynx (10.04)</systemitem>.</para>
113 <para>In the following instructions, you are asked to perform certain steps as either
114 the <systemitem class="username">root</systemitem> user, the
115 <systemitem class="username">opensrf</systemitem> user, or the
116 <systemitem class="username">postgres</systemitem> user.</para>
119 <para><systemitem class="osname">Debian</systemitem> -- To become the
120 <systemitem class="username">root</systemitem> user, issue the command
121 <command>su -</command> and enter the password of the
122 <systemitem class="username">root</systemitem> user.</para>
125 <para><systemitem class="osname">Ubuntu</systemitem> -- To become the
126 <systemitem class="username">root</systemitem> user, issue the command
127 <command>sudo su -</command> and enter the password of the
128 <systemitem class="username">root</systemitem> user.</para>
131 <para>To switch from the <systemitem class="username">root</systemitem> user to a
132 different user, issue the command <command>su - USERNAME</command>. For example, to
133 switch from the <systemitem class="username">root</systemitem> user to the
134 <systemitem class="username">opensrf</systemitem> user, issue the command
135 <command>su - opensrf</command>. Once you have become a non-root user, to become
136 the <systemitem class="username">root</systemitem> user again, simply issue the command
137 <command>exit</command>.</para>
141 <title>Add the OpenSRF User</title>
142 <para>As the <systemitem class="username">root</systemitem> user, add the
143 opensrf user to the system. The default shell for the new user is automatically
144 set to <command>/bin/bash</command> to inherit a reasonable environment:</para>
146 <userinput>useradd -m -s /bin/bash opensrf</userinput>
147 <userinput>passwd opensrf</userinput>
151 <title>Download and Unpack Latest OpenSRF Version</title>
153 <primary>OpenSRF</primary>
154 <secondary>download</secondary>
156 <para>As the <systemitem class="username">opensrf</systemitem> user, change to
157 the directory <filename class="directory">/home/opensrf</filename> then download
158 and extract the latest version of OpenSRF. The latest version can be found here:
159 <ulink url="http://evergreen-ils.org/downloads/OpenSRF-1.4.0.tar.gz"></ulink></para>
161 <userinput>cd /home/opensrf/OpenSRF-1.4.0</userinput>
162 <userinput>wget http://evergreen-ils.org/downloads/OpenSRF-1.4.0.tar.gz</userinput>
163 <userinput>tar zxf OpenSRF-1.4.0.tar.gz</userinput>
165 <para>The new directory
166 <filename class="directory">/home/opensrf/OpenSRF-1.4.0</filename> will be created.</para>
169 <title>Install Prerequisites to Build OpenSRF</title>
170 <para>In this section you will install and configure a set of prerequisites that will be
171 used to build OpenSRF. In a following step you will actually build the OpenSRF software
172 using the <command>make</command> utility.</para>
173 <para>As the <systemitem class="username">root</systemitem> user, enter the commands show
174 below to build the prerequisites from the software distribution that you just downloaded
175 and unpacked. Remember to replace <emphasis>[DISTRIBUTION]</emphasis> in the following
176 example with the keyword corresponding to the name of one of the
177 <systemitem class="osname">Linux</systemitem> distributions listed in the following
178 distribution keywords table <xref linkend="serversideinstallation-keywords-opensrf"/> .
179 For example, to install the prerequisites for Ubuntu version 10.04 (Lucid Lynx) you would
180 enter this command: <command>make -f src/extras/Makefile.install ubuntu-lucid</command> .</para>
182 <userinput>cd /home/opensrf/OpenSRF-1.4.0</userinput>
183 <userinput>make -f src/extras/Makefile.install [DISTRIBUTION]</userinput>
185 <table xml:id="serversideinstallation-keywords-opensrf">
186 <title>Keyword Targets for OpenSRF <application>"make"</application> Command</title>
187 <tgroup align="left" cols="2" colsep="1" rowsep="1">
188 <colspec colnum="1" colwidth="1.0*"/>
189 <colspec colnum="2" colwidth="3.0*"/>
192 <entry>Keyword</entry>
193 <entry>Linux Version</entry>
198 <entry>debian-etch</entry>
199 <entry>Debian "Etch" (4.0)</entry>
202 <entry>debian-lenny</entry>
203 <entry>Debian "Lenny" (5.0)</entry>
206 <entry>ubuntu-hardy</entry>
207 <entry>Ubuntu "Hardy Heron" (8.04)</entry>
210 <entry>ubuntu-karmic</entry>
211 <entry>Ubuntu "Karmic Koala" (9.10)</entry>
214 <entry>ubuntu-lucid</entry>
215 <entry>Ubuntu "Lucid Lynx" (10.04)</entry>
218 <entry>fedora13</entry>
219 <entry>Fedora "Goddard" (13)</entry>
222 <entry>centos</entry>
223 <entry>Centos</entry>
230 <entry>gentoo</entry>
231 <entry>Gentoo</entry>
236 <para>This will install a number of packages on the system that are required by OpenSRF,
237 including some Perl modules from CPAN. You can say <literal>No</literal> to the initial
238 CPAN configuration prompt to allow it to automatically configure itself to download and
239 install Perl modules from CPAN. The CPAN installer will ask you a number of times whether
240 it should install prerequisite modules - say <literal>Yes</literal>.</para>
243 <title>Build OpenSRF</title>
244 <para>In this section you will configure, build and install the OpenSRF
245 components that support other Evergreen services.</para>
248 <title>Configure OpenSRF</title>
250 <primary>OpenSRF</primary>
251 <secondary>configure</secondary>
253 <para>As the <systemitem class="username">opensrf</systemitem>
254 user, return to the OpenSRF build directory and use the
255 <command>configure</command> utility to prepare for the next
256 step of compiling and linking the software. If you wish to
257 include support for Python and Java, add the configuration
258 options <option>--enable-python</option> and
259 <option>--enable-java</option>, respectively:</para>
261 <userinput>cd /home/opensrf/OpenSRF-1.4.0</userinput>
262 <userinput>./configure --prefix=/openils --sysconfdir=/openils/conf</userinput>
263 <userinput>make</userinput>
267 <title>Compile, Link and Install OpenSRF</title>
268 <para>As the <systemitem class="username">root</systemitem>
269 user, return to the OpenSRF build directory and use the
270 <command>make</command> utility to compile, link and install
273 <userinput>cd /home/opensrf/OpenSRF-1.4.0</userinput>
274 <userinput>make install</userinput>
278 <title>Update the System Dynamic Library Path</title>
279 <para>You must update the system dynamic library path to force
280 your system to recognize the newly installed libraries. As the
281 <systemitem class="username">root</systemitem> user, do this by
282 creating the new file
283 <filename>/etc/ld.so.conf.d/osrf.conf</filename> containing a
284 new library path, then run the command
285 <command>ldconfig</command> to automatically read the file and
286 modify the system dynamic library path:</para>
288 <userinput>echo "/openils/lib" > /etc/ld.so.conf.d/osrf.conf</userinput>
289 <userinput>ldconfig</userinput>
293 <title>Define Public and Private OpenSRF Domains</title>
294 <para>For security purposes, OpenSRF uses Jabber domains to separate services
295 into public and private realms. On a single-server system the easiest way to
296 define public and private OpenSRF domains is to define separate host names by
297 adding entries to the file <filename>/etc/hosts</filename>.</para>
298 <para>In the following steps we will use the example domains
299 <systemitem class="domainname">public.localhost</systemitem> for the public
300 domain and <systemitem class="domainname">private.localhost</systemitem>
301 for the private domain. In an upcoming step, you will configure two special
302 <systemitem class="service">ejabberd</systemitem> users
303 to handle communications for these two domains.</para>
304 <para>As the <systemitem class="username">root</systemitem> user, edit the file
305 <filename>/etc/hosts</filename> and add the following example domains:</para>
307 <primary>Jabber</primary>
310 <userinput>127.0.1.2 public.localhost public</userinput>
311 <userinput>127.0.1.3 private.localhost private</userinput>
315 <title>Change File Ownerships</title>
316 <para>Finally, as the <systemitem class="username">root</systemitem>
317 user, change the ownership of all files installed in the
318 directory <filename class="directory">/openils</filename> to the
319 user <systemitem class="username">opensrf</systemitem>:</para>
321 <userinput>chown -R opensrf:opensrf /openils</userinput>
327 <title>Stop the <systemitem class="service">ejabberd</systemitem> Service</title>
329 <primary>ejabberd</primary>
331 <para>Before continuing with configuration of <systemitem class="service">ejabberd</systemitem>
332 you must stop that service. As the <systemitem class="username">root</systemitem> user,
333 execute the following command to stop the service:</para>
335 <userinput>/etc/init.d/ejabberd stop</userinput>
337 <para>If <systemitem class="service">ejabberd</systemitem> reports that it
338 is already stopped, there may have been a problem when it started back
339 in the installation step. If there are any remaining daemon processes such as
340 <systemitem class="daemon">beam</systemitem> or
341 <systemitem class="daemon">epmd</systemitem>
342 you may need to perform the following commands to kill them:</para>
344 <userinput>epmd -kill</userinput>
345 <userinput>killall beam; killall beam.smp</userinput>
346 <userinput>rm /var/lib/ejabberd/*</userinput>
347 <userinput>echo 'ERLANG_NODE=ejabberd@localhost' >> /etc/default/ejabberd</userinput>
351 <title>Edit the <systemitem class="service">ejabberd</systemitem> configuration</title>
352 <para>You must make several configuration changes for the
353 <systemitem class="service">ejabberd</systemitem> service before
355 As the <systemitem class="username">root</systemitem> user, edit the file
356 <filename>/etc/ejabberd/ejabberd.cfg</filename> and make the following changes:</para>
359 <para>Change the line:
360 <screen><userinput>{hosts, ["localhost"]}.</userinput></screen>
362 <screen><userinput>{hosts, ["localhost", "private.localhost", "public.localhost"]}.</userinput></screen></para>
365 <para>Change the line:
366 <screen><userinput>{max_user_sessions, 10}.</userinput></screen> to:
367 <screen><userinput>{max_user_sessions, 10000}.</userinput></screen></para>
368 <para>If the line looks something like this:
369 <screen><userinput>{access, max_user_sessions, [{10, all}]}.</userinput></screen>
371 <screen><userinput>{access, max_user_sessions, [{10000, all}]}</userinput></screen></para>
374 <para>Change all three occurrences of: <literal>max_stanza_size</literal>
375 to: <literal>2000000</literal>.</para>
378 <para>Change both occurrences of: <literal>maxrate</literal> to:
379 <literal>500000</literal>.</para>
382 <para>Comment out the line <literal>{mod_offline, []}</literal>
383 by placing two <literal>%</literal> comment signs in front.</para>
387 <step xml:id="serversideinstallation-opensrf-continued">
388 <title>Restart the <systemitem class="service">ejabberd</systemitem> service</title>
389 <para>As the <systemitem class="username">root</systemitem> user, restart the
390 <systemitem class="service">ejabberd</systemitem> service to test the
391 configuration changes and to register your users:</para>
393 <userinput>/etc/init.d/ejabberd start</userinput>
397 <title>Register <systemitem class="username">router</systemitem> and
398 <systemitem class="username">ejabberd</systemitem> users</title>
399 <para>The two <systemitem class="service">ejabberd</systemitem> users
400 <systemitem class="username">router</systemitem> and
401 <systemitem class="username">opensrf</systemitem> must be registered
402 and configured to manage OpenSRF router service and communications
403 for the two domains <literal>public.localhost</literal> and
404 <literal>private.localhost</literal>
405 that you added to the file <filename>/etc/hosts</filename>
406 in a previous step:</para>
409 <para>the <systemitem class="username">router</systemitem> user,
410 to whom all requests to connect to an OpenSRF service will be
414 <para>the <systemitem class="username">opensrf</systemitem> user,
415 which clients use to connect to OpenSRF services (you may name
416 the user anything you like, but we use
417 <literal>opensrf</literal> in these examples)</para>
420 <para>As the <systemitem class="username">root</systemitem> user, execute the
421 <command>ejabberdctl</command> utility as shown below to register and create passwords
422 for the users <systemitem class="username">router</systemitem> and
423 <systemitem class="username">opensrf</systemitem> on each domain:</para>
425 <prompt># The syntax for registering a user with ejabberdctl is:</prompt>
426 <prompt># ejabberdctl register USER DOMAIN PASSWORD</prompt>
427 <userinput>ejabberdctl register router private.localhost NEWPASSWORD</userinput>
428 <userinput>ejabberdctl register router public.localhost NEWPASSWORD</userinput>
429 <userinput>ejabberdctl register opensrf private.localhost NEWPASSWORD</userinput>
430 <userinput>ejabberdctl register opensrf public.localhost NEWPASSWORD</userinput>
432 <para>Note that the users <systemitem class="username">router</systemitem> and
433 <systemitem class="username">opensrf</systemitem> and their respective passwords
434 will be used again in the file <filename>/openils/conf/opensrf_core.xml</filename>
435 in the next steps.</para>
438 <title>Create OpenSRF configuration files</title>
439 <para>As the <systemitem class="username">opensrf</systemitem> user,
440 execute the following commands to create the new configuration files
441 <filename>/openils/conf/opensrf_core.xml</filename> and
442 <filename>/openils/conf/opensrf.xml</filename> from the example templates:</para>
444 <userinput>cd /openils/conf</userinput>
445 <userinput>cp opensrf.xml.example opensrf.xml</userinput>
446 <userinput>cp opensrf_core.xml.example opensrf_core.xml</userinput>
450 <title>Update usernames and passwords in the OpenSRF configuration file</title>
451 <para>As the <systemitem class="username">opensrf</systemitem> user, edit the
452 OpenSRF configuration file <filename>/openils/conf/opensrf_core.xml</filename>
453 and update the usernames and passwords to match the values shown in the
454 following table. The left-hand side of <xref linkend="serversideinstallation-xpath-table-1"/>
455 shows common XPath syntax to indicate the approximate position within the XML
456 file that needs changes. The right-hand side of the table shows the replacement
458 <table xml:id="serversideinstallation-xpath-table-1">
459 <title>Sample XPath syntax for editing "opensrf_core.xml"</title>
460 <tgroup align="left" cols="2" colsep="1" rowsep="1">
461 <colspec colname="Xpath" colnum="1" colwidth="1.6*"/>
462 <colspec colname="Value" colnum="2" colwidth="2.0*"/>
465 <entry>XPath location</entry>
471 <entry>/config/opensrf/username</entry>
473 <systemitem class="username">opensrf</systemitem>
477 <entry>/config/opensrf/passwd </entry>
478 <entry><systemitem class="domainname">private.localhost</systemitem>
480 <systemitem class="username">opensrf</systemitem> user
484 <entry>/config/gateway/username</entry>
486 <systemitem class="username">opensrf</systemitem>
490 <entry>/config/gateway/passwd</entry>
491 <entry><systemitem class="domainname">public.localhost</systemitem>
493 <systemitem class="username">opensrf</systemitem> user
497 <entry>/config/routers/router/transport/username,
498 first entry where server == public.localhost</entry>
500 <systemitem class="username">router</systemitem>
504 <entry>/config/routers/router/transport/password,
505 first entry where server == public.localhost</entry>
506 <entry><systemitem class="domainname">public.localhost</systemitem>
508 <systemitem class="username">router</systemitem> user
512 <entry>/config/routers/router/transport/username,
513 second entry where server == private.localhost</entry>
515 <systemitem class="username">router</systemitem>
519 <entry>/config/routers/router/transport/password,
520 second entry where server == private.localhost</entry>
521 <entry><systemitem class="domainname">private.localhost</systemitem>
523 <systemitem class="username">router</systemitem> user
529 <para>You may also need to modify the file to specify the domains from which
530 <systemitem class="service">OpenSRF</systemitem> will accept connections,
531 and to which it will make connections.
532 If you are installing <application>OpenSRF</application> on a single server
533 and using the <systemitem class="domainname">private.localhost</systemitem> and
534 <systemitem class="domainname">public.localhost</systemitem> domains,
535 these will already be set to the correct values. Otherwise, search and replace
536 to match values for your own systems.</para>
539 <title>Set location of the persistent database</title>
540 <para>As the <systemitem class="username">opensrf</systemitem> user, edit the
541 file <filename>/openils/conf/opensrf.xml</filename>, then find and modify the
542 element <literal>dbfile</literal> (near the end of the file) to set the
543 location of the persistent database:</para>
544 <programlisting language="xml"><![CDATA[
545 <!-- Example of an app-specific setting override -->
548 <dbfile>/tmp/persist.db</dbfile>
553 <step xml:id="serversideinstallation-srfsh">
554 <title>Create configuration files for users needing <command>srfsh</command></title>
555 <para>In this section you will set up a special configuration file for each user
556 who will need to run the <command>srfsh</command> (pronounced <emphasis>surf
557 shell</emphasis>) utility.</para>
559 <primary>srfsh</primary>
561 <para>The software installation will automatically create a utility named
562 <command>srfsh</command> (surf shell). This is a command line diagnostic tool for testing
563 and interacting with <application>OpenSRF</application>. It will be used in a future
564 step to complete and test the Evergreen installation.
565 See <xref linkend="serversideinstallation-testing"/> for further information.</para>
566 <para>As the <systemitem class="username">root</systemitem> user, copy the short
567 sample configuration file <filename>/openils/conf/srfsh.xml.example</filename>
568 to <filename>~/.srfsh.xml</filename> (note the leading dot!), the home
569 directory of each user who will use <command>srfsh</command>. Finally, edit each
570 file <filename>~/.srfsh.xml</filename> and make the following changes; when you
571 finish, remember to change the owner of the file to match the owner of the home
575 <para>Modify <literal>domain</literal> to be the router hostname
576 (following our domain examples,
577 <systemitem class="domainname">private.localhost</systemitem> will give
578 <command>srfsh</command> access to all OpenSRF services, while
579 <systemitem class="domainname">public.localhost</systemitem>
580 will only allow access to those OpenSRF services that are
581 publicly exposed).</para>
584 <para>Modify <literal>username</literal> and
585 <literal>password</literal> to match the
586 <literal>opensrf</literal> Jabber user for the chosen
590 <para>Modify <literal>logfile</literal> to be the full path for
591 a log file to which the user has write access</para>
594 <para>Modify <literal>loglevel</literal> as needed for testing</para>
597 <programlisting language="xml"><![CDATA[
598 <?xml version="1.0"?>
599 <!-- This file follows the standard bootstrap config file layout -->
600 <!-- found in opensrf_core.xml -->
602 <router_name>router</router_name>
603 <domain>private.localhost</domain>
604 <username>opensrf</username>
605 <passwd>SOMEPASSWORD</passwd>
607 <logfile>/tmp/srfsh.log</logfile>
608 <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
609 <loglevel>4</loglevel>
614 <title>Modify the environmental variable <envar>PATH</envar> for the
615 <systemitem class="username">opensrf</systemitem> user</title>
616 <para>As the <systemitem class="username">opensrf</systemitem> user, modify the
617 environmental variable <envar>PATH</envar> by adding a new file path to the
618 <systemitem class="username">opensrf</systemitem> user's shell configuration
619 file <filename>~/.bashrc</filename>:</para>
621 <userinput>echo "export PATH=/openils/bin:\$PATH" >> ~/.bashrc</userinput>
625 <title>Start OpenSRF</title>
626 <para>As the <systemitem class="username">root</systemitem> user, start the
627 <systemitem class="service">ejabberd</systemitem> and
628 <systemitem class="service">memcached</systemitem> services:</para>
630 <userinput>/etc/init.d/ejabberd start</userinput>
631 <userinput>/etc/init.d/memcached start</userinput>
633 <para>As the <systemitem class="username">opensrf</systemitem> user,
634 start OpenSRF as follows:</para>
636 <userinput>osrf_ctl.sh -l -a start_all</userinput>
638 <para>The flag <option>-l</option> forces Evergreen to use
639 <systemitem class="domainname">localhost</systemitem> (your current system)
640 as the hostname. The flag <option>-a start_all</option> starts the other
641 OpenSRF <systemitem class="service">router</systemitem> ,
642 <systemitem class="service">Perl</systemitem> , and
643 <systemitem class="service">C</systemitem> services.</para>
646 <para>You can also start Evergreen without the
647 <option>-l</option> flag, but the <command>osrf_ctl.sh</command>
648 utility must know the fully qualified domain name for the system
649 on which it will execute. That hostname was probably specified
650 in the configuration file <filename>opensrf.xml</filename> which
651 you configured in a previous step.</para>
654 <para>If you receive an error message similar to
655 <emphasis>osrf_ctl.sh: command not found</emphasis>, then your
656 environment variable <envar>PATH</envar> does not include the
657 directory <filename class="directory">/openils/bin</filename>.
658 As the <systemitem class="username">opensrf</systemitem> user,
659 edit the configuration file <filename>~/.bashrc</filename> and
660 add the following line:
661 <literal>export PATH=$PATH:/openils/bin</literal></para>
666 <title>Test connections to OpenSRF</title>
667 <para>Once you have installed and started OpenSRF, as the
668 <systemitem class="username">root</systemitem> user, test your connection to
669 <systemitem class="service">OpenSRF</systemitem> using the <command>srfsh</command>
670 utility and trying to call the <command>add</command> method on the OpenSRF
671 <systemitem class="service">math</systemitem> service:</para>
673 <userinput>/openils/bin/srfsh</userinput>
674 <computeroutput>srfsh#</computeroutput>
675 <computeroutput>request opensrf.math add 2 2</computeroutput>
676 <computeroutput>Received Data: 4</computeroutput>
677 <computeroutput>------------------------------------</computeroutput>
678 <computeroutput>Request Completed Successfully</computeroutput>
679 <computeroutput>Request Time in seconds: 0.007519</computeroutput>
680 <computeroutput>------------------------------------</computeroutput>
681 <computeroutput>srfsh#</computeroutput>
683 <para>For other <command>srfsh</command> commands, type in
684 <userinput>help</userinput> at the prompt.</para>
687 <title>Stop OpenSRF</title>
688 <para>After OpenSRF has started, you can stop it at any time by using the
689 <command>osrf_ctl.sh</command> again. As the
690 <systemitem class="username">opensrf</systemitem>
691 user, stop OpenSRF as follows:</para>
693 <userinput>osrf_ctl.sh -l -a stop_all</userinput>
698 <section xml:id="serversideinstallation-ubuntudebian">
699 <title>Installing Evergreen 1.6.1.x On <systemitem class="osname">Ubuntu</systemitem> or
700 <systemitem class="osname">Debian</systemitem></title>
702 <primary>Linux</primary>
703 <secondary>Debian</secondary>
706 <primary>Linux</primary>
707 <secondary>Ubuntu</secondary>
709 <para>This section outlines the installation process for the latest stable version of
711 <para>In this section you will download, unpack, install, configure and test the Evergreen
712 system, including the Evergreen server and the PostgreSQL database system. You will make several
713 configuration changes and adjustments to the software, including updates to configure the system
714 for your own locale, and some updates needed to work around a few known issues.</para>
716 <para>The following steps have been tested on the x86 (32-bit) and x86-64 (64-bit)
717 architectures. There may be differences between the Desktop and Server editions of
718 <systemitem class="osname">Ubuntu</systemitem>. These instructions assume the Server
720 <para>In the following instructions, you are asked to perform certain steps as
721 either the <systemitem class="username">root</systemitem> user, the
722 <systemitem class="username">opensrf</systemitem> user, or the
723 <systemitem class="username">postgres</systemitem> user.</para>
726 <para><systemitem class="osname">Debian</systemitem> -- To become the
727 <systemitem class="username">root</systemitem> user, issue the command
728 <command>su -</command> and enter the password of the
729 <systemitem class="username">root</systemitem> user.</para>
732 <para><systemitem class="osname">Ubuntu</systemitem> -- To become the
733 <systemitem class="username">root</systemitem> user, issue the command
734 <command>sudo su -</command> and enter the password of the
735 <systemitem class="username">root</systemitem> user.</para>
738 <para>To switch from the <systemitem class="username">root</systemitem> user to a
739 different user, issue the command <command>su - USERNAME</command>. For example, to
740 switch from the <systemitem class="username">root</systemitem> user to the
741 <systemitem class="username">opensrf</systemitem> user, issue the command
742 <command>su - opensrf</command>. Once you have become a non-root user, to become the
743 <systemitem class="username">root</systemitem> user again, simply issue the command
744 <command>exit</command>.</para>
748 <title>Install OpenSRF</title>
749 <para>Evergreen software is integrated with and depends on the Open Service
750 Request Framework (OpenSRF) software system. For further information on
751 installing, configuring and testing OpenSRF, see
752 <xref linkend="serversideinstallation-opensrf"/>.</para>
753 <para>Follow the steps outlined in that section and run the specified tests to
754 ensure that OpenSRF is properly installed and configured. Do
755 <emphasis><emphasis role="bold">not</emphasis></emphasis> continue with
756 any further Evergreen installation steps until you have verified that OpenSRF
757 has been successfully installed and tested.</para>
760 <title>Download and Unpack Latest Evergreen Version</title>
761 <para>As the <systemitem class="username">opensrf</systemitem> user, download
762 and extract the latest version of Evergreen. The latest version can be found here:
763 <ulink url="http://evergreen-ils.org/downloads/Evergreen-ILS-1.6.1.2.tar.gz"></ulink></para>
765 <userinput>wget http://evergreen-ils.org/downloads/Evergreen-ILS-1.6.1.2.tar.gz</userinput>
766 <userinput>tar zxf Evergreen-ILS-1.6.1.2.tar.gz</userinput>
768 <para>The new directory
769 <filename class="directory">/home/opensrf/Evergreen-ILS-1.6.1.2</filename>
770 will be created.</para>
773 <title>Install Prerequisites to Build Evergreen</title>
774 <para>In this section you will install and configure a set of prerequisites that
775 will be used to build Evergreen. In a following step you will actually build the
776 Evergreen software using the <command>make</command> utility.</para>
777 <para>As the <systemitem class="username">root</systemitem> user, enter the commands show
778 below to build the prerequisites from the software distribution that you just downloaded
779 and unpacked. Remember to replace <emphasis>[DISTRIBUTION]</emphasis> in the following
780 example with the keyword corresponding to the name of one of the
781 <systemitem class="osname">Linux</systemitem> distributions listed in the following distribution
782 keywords table <xref linkend="serversideinstallation-keywords-evergreen"/> . For example,
783 to install the prerequisites for Ubuntu version 9.10 (Karmic Koala) you would enter this
784 command: <command>make -f Open-ILS/src/extras/Makefile.install ubuntu-karmic</command>.</para>
786 <userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2</userinput>
787 <userinput>make -f Open-ILS/src/extras/Makefile.install [DISTRIBUTION]</userinput>
789 <table xml:id="serversideinstallation-keywords-evergreen">
790 <title>Keyword Targets for Evergreen <application>"make"</application> Command</title>
791 <tgroup align="left" cols="2" colsep="1" rowsep="1">
792 <colspec colnum="1" colwidth="1.0*"/>
793 <colspec colnum="2" colwidth="3.0*"/>
796 <entry>Keyword</entry>
797 <entry>Linux Version</entry>
802 <entry>debian-etch</entry>
803 <entry>Debian "Etch" (4.0)</entry>
806 <entry>debian-lenny</entry>
807 <entry>Debian "Lenny" (5.0)</entry>
810 <entry>ubuntu-hardy</entry>
811 <entry>Ubuntu "Hardy Heron" (8.04)</entry>
814 <entry>ubuntu-intrepid</entry>
815 <entry>Ubuntu "Intrepid Ibex" (8.10)</entry>
818 <entry>ubuntu-karmic</entry>
819 <entry>Ubuntu "Karmic Koala" (9.10)</entry>
822 <entry>ubuntu-karmic</entry>
823 <entry>Ubuntu "Lucid Lynx" (10.04)</entry>
826 <entry>centos</entry>
827 <entry>Centos</entry>
834 <entry>gentoo</entry>
835 <entry>Gentoo</entry>
841 <step performance="optional" xml:id="serversideinstallation-postgresql-default">
842 <title>(OPTIONAL) Install the PostgreSQL Server</title>
844 <primary>databases</primary>
845 <secondary>PostgreSQL</secondary>
847 <para>Since the PostgreSQL server is usually a standalone server in multi-server
848 production systems, the prerequisite installer Makefile in the previous step
849 does not automatically install PostgreSQL. You must install the PostgreSQL server
850 yourself, either on the same system as Evergreen itself or on another system.
851 If your PostgreSQL server is on a different system, just skip this step.</para>
852 <para>For further information on manually installing PostgreSQL, visit the official
853 <link xl:href="http://www.postgresql.org/">PostgreSQL Site</link>.</para>
854 <para>If your PostgreSQL server will be on the same system as your Evergreen
855 software, then as the <systemitem class="username">root</systemitem> user
856 install the required PostgreSQL server packages:</para>
857 <para>For <systemitem class="osname">Debian Lenny</systemitem> and
858 <systemitem class="osname">Ubuntu Hardy (8.04)</systemitem>:</para>
860 <userinput>make -f Open-ILS/src/extras/Makefile.install install_pgsql_server_debs_83</userinput>
862 <para>For <systemitem class="osname">Ubuntu Karmic (9.10)</systemitem> and
863 <systemitem class="osname">Ubuntu Lucid (10.04)</systemitem>:</para>
865 <userinput>make -f Open-ILS/src/extras/Makefile.install install_pgsql_server_debs_84</userinput>
868 <para>PostgreSQL versions 8.3 or 8.4 are the recommended versions to work
869 with Evergreen 1.6. If you have an older version of PostgreSQL, you should
870 upgrade before installing Evergreen. To find the running version of
871 PostgreSQL, as the <systemitem class="username">postgres</systemitem>
872 user, run the <command>psql</command>. Then type <userinput>SELECT
873 version();</userinput> to get detailed information about your version
874 of PostgreSQL.</para>
877 <step performance="optional">
878 <title>Install Perl Modules on PostgreSQL Server</title>
879 <para>If PostgreSQL is running on the same system as your Evergreen software,
880 then the Perl modules will automatically be available. Just skip this step.
881 Otherwise, continue if your PostgreSQL server is running on another system.</para>
882 <para>You will need to install several Perl modules on the other system. As the
883 <systemitem class="username">root</systemitem> user install the following Perl
886 <prompt># first, ensure the gcc compiler is installed:</prompt>
887 <userinput>apt-get install gcc</userinput>
888 <prompt># then install the Perl modules:</prompt>
889 <userinput>perl -MCPAN -e shell</userinput>
890 <computeroutput>cpan></computeroutput>
891 <userinput>install JSON::XS</userinput>
892 <computeroutput>cpan></computeroutput>
893 <userinput>install MARC::Record</userinput>
894 <computeroutput>cpan></computeroutput>
895 <userinput>install MARC::File::XML</userinput>
897 <para>For more information on installing Perl Modules vist the official
898 <link xl:href="http://www.cpan.org/">CPAN</link> site.</para>
900 <primary>Perl</primary>
901 <secondary>CPAN</secondary>
905 <title>Update the System Dynamic Library Path</title>
906 <para>You must update the system dynamic library path to force your system to recognize
907 the newly installed libraries. As the <systemitem class="username">root</systemitem> user,
908 do this by creating the new file <filename>/etc/ld.so.conf.d/osrf.conf</filename>
909 containing a new library path, then run the command <command>ldconfig</command> to
910 automatically read the file and modify the system dynamic library path:</para>
912 <userinput>echo "/usr/local/lib" >> /etc/ld.so.conf.d/osrf.conf</userinput>
913 <userinput>echo "/usr/local/lib/dbd" >> /etc/ld.so.conf.d/osrf.conf</userinput>
914 <userinput>ldconfig</userinput>
917 <step performance="optional">
918 <title>Restart the PostgreSQL Server</title>
919 <para>If PostgreSQL is running on the same system as the rest of Evergreen, as
920 the <systemitem class="username">root</systemitem> user you must restart
921 PostgreSQL to re-read the new library paths just configured. If PostgreSQL is
922 running on another system, you may skip this step.
923 As the <systemitem class="username">opensrf</systemitem> user,
924 execute the following command, where
925 <literal>[PGSQL_VERSION]</literal> is your installed PostgreSQL version
926 (e.g. <literal>8.3</literal>):</para>
928 <userinput>/etc/init.d/postgresql-[PGSQL_VERSION] restart</userinput>
931 <step xml:id="serversideinstallation-configure">
932 <title>Configure Evergreen</title>
933 <para>As the <systemitem class="username">opensrf</systemitem> user, return to
934 the Evergreen build directory and use the <command>configure</command> and
935 <command>make</command> utilities to configure Evergreen so it can be compiled
936 and linked in the next step:</para>
938 <userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2</userinput>
939 <userinput>./configure --prefix=/openils --sysconfdir=/openils/conf</userinput>
940 <userinput>make</userinput>
944 <title>Compile, Link and Install Evergreen</title>
945 <para>In this step you will actually compile, link and install Evergreen and the
946 default Evergreen Staff Client.</para>
947 <para>As the <systemitem class="username">root</systemitem> user, return to the
948 Evergreen build directory and use the <command>make</command> utility as shown below:</para>
950 <userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2</userinput>
951 <userinput>make STAFF_CLIENT_BUILD_ID=rel_1_6_1_2 install</userinput>
953 <para>The Staff Client will also be automatically built, but you must remember
954 to set the variable <envar>STAFF_CLIENT_BUILD_ID</envar> to match the version of the Staff
955 Client you will use to connect to the Evergreen server. For further information on manually
956 building the Staff Client, see
957 <xref linkend="staffclientinstallation-building-staffclient"/>.</para>
958 <para>The above commands will create a new subdirectory
959 <filename class="directory">/openils/var/web/xul/rel_1_6_1_2</filename>
960 containing the Staff Client.</para>
961 <para>To complete the Staff Client installation,
962 as the <systemitem class="username">root</systemitem> user create a symbolic link
963 named <emphasis>server</emphasis> in the head of the Staff Client directory
964 <filename class="directory">/openils/var/web/xul</filename> that points to the
965 subdirectory <filename class="directory">/server</filename> of the new Staff
968 <userinput>cd /openils/var/web/xul</userinput>
969 <userinput>ln -sf rel_1_6_1_2/server server</userinput>
973 <title>Copy the OpenSRF Configuration Files</title>
974 <para>As the <systemitem class="username">root</systemitem> user, execute the
975 following commands to copy the example OpenSRF configuration files into place
976 after first creating backup copies of the old files for troubleshooting purposes.
977 These files replace the configuration files that you set up in a previous step
978 when you installed and tested OpenSRF. Finally, change the ownership on
979 the installed files to the <systemitem class="username">opensrf</systemitem> user:</para>
981 <userinput>cd /openils/conf</userinput>
982 <userinput>cp opensrf.xml opensrf.xml.BAK</userinput>
983 <userinput>cp opensrf_core.xml opensrf_core.xml.BAK</userinput>
984 <userinput>cp opensrf.xml.example opensrf.xml</userinput>
985 <userinput>cp opensrf_core.xml.example opensrf_core.xml</userinput>
986 <userinput>cp oils_web.xml.example oils_web.xml</userinput>
987 <userinput>chown -R opensrf:opensrf /openils/</userinput>
991 <title>Create and Configure PostgreSQL Database</title>
993 <primary>databases</primary>
994 <secondary>PostgreSQL</secondary>
996 <para>In this step you will create the Evergreen database. In the commands
997 below, remember to adjust the path of the <emphasis role="bold">contrib</emphasis>
998 repository to match your PostgreSQL server
999 layout. For example, if you built PostgreSQL from source the path would be
1000 <filename class="directory">/usr/local/share/contrib</filename>; if you
1001 installed the PostgreSQL 8.3 server packages on <systemitem class="osname">Ubuntu 8.04</systemitem>,
1003 <systemitem class="directory">/usr/share/postgresql/8.3/contrib/</systemitem>.</para>
1007 <emphasis role="bold">Create and configure the database</emphasis>
1009 <para>As the <systemitem class="username">postgres</systemitem>
1010 user on the PostgreSQL system create the PostgreSQL database,
1011 then set some internal paths:</para>
1013 <userinput>createdb evergreen -E UTF8 -T template0</userinput>
1014 <userinput>createlang plperl evergreen</userinput>
1015 <userinput>createlang plperlu evergreen</userinput>
1016 <userinput>createlang plpgsql evergreen</userinput>
1018 <para>Continue as user <systemitem class="username">postgres</systemitem>
1019 and execute the SQL scripts as shown below, adjusting the paths as needed, where
1020 <literal>[PGSQL_VERSION]</literal> is your installed PostgreSQL
1021 version (e.g. <literal>8.3</literal>).</para>
1023 <userinput>psql -f /usr/share/postgresql/[PGSQL_VERSION]/contrib/tablefunc.sql evergreen</userinput>
1024 <userinput>psql -f /usr/share/postgresql/[PGSQL_VERSION]/contrib/tsearch2.sql evergreen</userinput>
1025 <userinput>psql -f /usr/share/postgresql/[PGSQL_VERSION]/contrib/pgxml.sql evergreen</userinput>
1029 <title>Create <systemitem class="username">evergreen</systemitem> PostgreSQL user</title>
1030 <para>As the <systemitem class="username">postgres</systemitem>
1031 user on the PostgreSQL system, create a new PostgreSQL user
1032 named <systemitem class="username">evergreen</systemitem> and
1033 assign a password:</para>
1035 <userinput>createuser -P -s evergreen</userinput>
1036 <computeroutput>Enter password for new role: <userinput>MYNEWPASSWORD</userinput></computeroutput>
1037 <computeroutput>Enter it again: <userinput>MYNEWPASSWORD</userinput></computeroutput>
1041 <title>Create database schema</title>
1042 <para>As the <systemitem class="username">root</systemitem>
1043 user, create the database schema and configure your system with
1044 the corresponding database authentication details for the
1045 <emphasis>evergreen</emphasis> database user that you created in
1046 the previous step.</para>
1047 <para>Enter the following commands and replace
1048 <emphasis>HOSTNAME, PORT, PASSWORD</emphasis> and
1049 <emphasis>DATABASENAME</emphasis> with appropriate
1052 <userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2</userinput>
1053 <userinput>perl Open-ILS/src/support-scripts/eg_db_config.pl --update-config \</userinput>
1054 <userinput> --service all --create-schema --create-bootstrap --create-offline \</userinput>
1055 <userinput> --hostname HOSTNAME --port PORT \</userinput>
1056 <userinput> --user evergreen --password PASSWORD --database DATABASENAME</userinput>
1058 <para>On most systems, <emphasis>HOSTNAME</emphasis> will be
1059 <emphasis role="bold">localhost</emphasis> and
1060 <emphasis>PORT</emphasis> will be <emphasis role="bold">5432</emphasis>.
1061 Of course, values for <emphasis>PASSWORD</emphasis> and
1062 <emphasis>DATABASENAME</emphasis> must match the values you used in the
1063 previous step when you created the database and and set a password for the
1064 <systemitem class="username">evergreen</systemitem> user.</para>
1065 <para>As the command executes, you may see warnings similar to:
1066 <literal>ERROR: schema SOMENAME does not exist</literal> (in fact,
1067 you may see one warning per schema) but they can be safely ignored.</para>
1069 <para>If you are entering the above command on a single
1070 line, do not include the <literal>\</literal>
1071 (backslash) characters. If you are using the
1072 <command>bash</command> shell, these should only be used
1073 at the end of a line at a bash prompt to indicate that
1074 the command is continued on the next line.</para>
1078 <title>Configure the Apache web server</title>
1080 <primary>web server</primary>
1081 <secondary>Apache</secondary>
1083 <para>In this step you will configure the Apache web server to
1084 support Evergreen software.</para>
1085 <para>First, you must enable some built-in Apache modules and install
1086 some additional Apache configuration files. Then you will create a new
1087 Security Certificate. Finally, you must make several changes to the Apache
1088 configuration file.</para>
1091 <title>Enable the required Apache Modules</title>
1092 <para>As the <systemitem class="username">root</systemitem>
1093 user, enable some modules in the Apache server, then
1094 copy the new configuration files to the Apache server
1097 <userinput>a2enmod ssl # enable mod_ssl</userinput>
1098 <userinput>a2enmod rewrite # enable mod_rewrite</userinput>
1099 <userinput>a2enmod expires # enable mod_expires</userinput>
1101 <para>As the commands execute, you may see warnings similar to:
1102 <literal>Module SOMEMODULE already enabled</literal>
1103 but you can safely ignore them.</para>
1106 <title>Copy Apache configuration files</title>
1107 <para>You must copy the Apache configuration
1108 files from the Evergreen installation directory
1109 to the Apache directory. As the
1110 <systemitem class="username">root</systemitem>
1111 user, perform the following commands:</para>
1113 <userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2</userinput>
1114 <userinput>cp Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/</userinput>
1115 <userinput>cp Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/</userinput>
1116 <userinput>cp Open-ILS/examples/apache/startup.pl /etc/apache2/</userinput>
1120 <title>Create a Security Certificate</title>
1121 <para>You must create a new Security Certificate (SSL Key)
1122 for the Apache server using the <command>openssl</command>
1123 command. For a public production server you must configure
1124 or purchase a signed SSL certificate, but for now you can
1125 just use a self-signed certificate and accept the warnings
1126 in the Staff Client and browser during testing and
1128 <systemitem class="username">root</systemitem> user,
1129 perform the following commands:</para>
1131 <userinput>mkdir /etc/apache2/ssl</userinput>
1132 <userinput>cd /etc/apache2/ssl</userinput>
1133 <userinput>openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key</userinput>
1136 <para>This step generates a self-signed SSL
1137 certificate. You must install a proper SSL
1138 certificate for a public production system to
1139 avoid warning messages when users login to their
1140 account through the OPAC or when staff login
1141 through the Staff Client.</para>
1142 <para>For further information on getting a proper
1143 SSL certificate, see
1144 <xref linkend="serversideinstallation-ssl"/>.</para>
1147 <step xml:id="serversideinstallation-modify-apache">
1148 <title>Update Apache configuration file</title>
1149 <para>You must make several changes to the new Apache
1151 <filename>/etc/apache2/sites-available/eg.conf</filename> .
1152 As the <systemitem class="username">root</systemitem> user,
1153 edit the file and make the following changes:</para>
1156 <para>In the section
1157 <literal><Directory "/openils/var/cgi-bin"></literal>
1159 <literal>Allow from 10.0.0.0/8</literal>
1160 with this line: <literal>Allow from all</literal>.</para>
1161 <warning>This change allows access to your
1162 configuration CGI scripts from any workstation on
1163 any network. This is only a temporary change to
1164 expedite testing and should be removed after you
1165 have finished and successfully tested the Evergreen
1167 <xref linkend="serversideinstallation-postinstallation"/>
1168 for further details on removing this change after
1169 the Evergreen installation is complete.
1173 <para>Comment out the line <literal>Listen
1174 443</literal>, since it conflicts with the
1175 same declaration in the configuration file:
1176 <filename>/etc/apache2/ports.conf</filename>.
1177 Note that <systemitem class="osname">Debian
1178 </systemitem> users should not do this
1179 since the conflict does not apply to that
1180 operating system.</para>
1183 <para>The following updates are needed to allow
1184 the logs to function properly, but it may break
1185 other Apache applications on your server:</para>
1186 <para>For the <systemitem class="osname">Linux</systemitem>
1187 distributions <systemitem class="osname">Ubuntu
1188 Hardy</systemitem> or
1189 <systemitem class="osname">Debian Etch</systemitem>,
1190 as the <systemitem class="username">root</systemitem>
1191 user, edit the Apache configuration file
1192 <filename>/etc/apache2/apache2.conf</filename> and
1193 change the line <literal>User www-data</literal>
1194 to <literal>User opensrf</literal>.</para>
1195 <para>For the <systemitem class="osname">Linux</systemitem>
1196 distributions <systemitem class="osname">Ubuntu
1197 Karmic</systemitem>,
1198 <systemitem class="osname">Ubuntu Lucid</systemitem>
1199 or <systemitem class="osname">Debian Lenny</systemitem>,
1200 as the <systemitem class="username">root</systemitem>
1201 user, edit the Apache configuration file
1202 and change these lines:</para>
1204 <userinput>export APACHE_RUN_USER=www-data</userinput>
1205 <userinput>export APACHE_RUN_GROUP=www-data</userinput>
1207 <para>to instead read:</para>
1209 <userinput>export APACHE_RUN_USER=opensrf</userinput>
1210 <userinput>export APACHE_RUN_GROUP=opensrf</userinput>
1215 <systemitem class="username">root</systemitem> user,
1216 edit the Apache configuration file
1217 <filename>/etc/apache2/apache2.conf</filename> and
1218 modify the values for <literal>KeepAliveTimeout</literal>
1219 and <literal>MaxKeepAliveRequests</literal> to match
1220 the following:</para>
1222 <userinput>KeepAliveTimeout 1</userinput>
1223 <userinput>MaxKeepAliveRequests 100</userinput>
1227 <para>Further configuration changes to
1228 Apache may be necessary for busy systems. These
1229 changes increase the number of Apache server
1230 processes that are started to support additional
1231 browser connections.</para>
1232 <para>As the <systemitem
1233 class="username">root</systemitem> user, edit the
1234 Apache configuration file
1235 <filename>/etc/apache2/apache2.conf</filename>,
1236 locate and modify the section related to
1237 <emphasis>prefork configuration</emphasis> to suit
1238 the load on your system:</para>
1239 <programlisting language="xml"><![CDATA[
1240 <IfModule mpm_prefork_module>
1245 MaxRequestsPerChild 10000
1247 ]]></programlisting>
1252 <title>Enable the Evergreen web site</title>
1253 <para>Finally, you must enable the Evergreen web site. As the
1254 <systemitem class="username">root</systemitem> user, execute
1255 the following Apache configuration commands to disable the default
1256 <emphasis>It Works</emphasis> web page and enable the
1257 Evergreen web site, and then restart the Apache server:</para>
1259 <prompt># disable/enable web sites</prompt>
1260 <userinput>a2dissite default</userinput>
1261 <userinput>a2ensite eg.conf</userinput>
1262 <prompt># restart the server</prompt>
1263 <userinput>/etc/init.d/apache2 reload</userinput>
1270 <step xml:id="serversideinstallation-opensrf-config">
1271 <title>Update the OpenSRF Configuration File</title>
1272 <para>As the <systemitem class="username">opensrf</systemitem> user, edit the
1273 OpenSRF configuration file <filename>/openils/conf/opensrf_core.xml</filename>
1274 to update the Jabber usernames and passwords, and to specify the domain from
1275 which we will accept and to which we will make connections.</para>
1276 <para>If you are installing Evergreen on a single server and using the
1277 <systemitem class="domainname">private.localhost</systemitem> /
1278 <systemitem class="domainname">public.localhost</systemitem> domains,
1279 these will already be set to the correct values. Otherwise, search and replace
1280 to match your customized values.</para>
1281 <para>The left-hand side of <xref linkend="serversideinstallation-xpath-table-2"/>
1282 shows common XPath syntax to indicate the approximate position within the XML
1283 file that needs changes. The right-hand side of the table shows the replacement
1285 <table xml:id="serversideinstallation-xpath-table-2">
1286 <title>Sample XPath syntax for editing "opensrf_core.xml"</title>
1287 <tgroup align="left" cols="2" colsep="1" rowsep="1">
1288 <colspec colname="Xpath" colnum="1" colwidth="1.6*"/>
1289 <colspec colname="Value" colnum="2" colwidth="2.0*"/>
1292 <entry>XPath location</entry>
1293 <entry>Value</entry>
1298 <entry>/config/opensrf/username</entry>
1300 <systemitem class="username">opensrf</systemitem>
1304 <entry>/config/opensrf/passwd </entry>
1305 <entry><systemitem class="domainname">private.localhost</systemitem>
1307 <systemitem class="username">opensrf</systemitem> user
1311 <entry>/config/gateway/username</entry>
1313 <systemitem class="username">opensrf</systemitem>
1317 <entry>/config/gateway/passwd</entry>
1318 <entry><systemitem class="domainname">public.localhost</systemitem>
1320 <systemitem class="username">opensrf</systemitem> user
1324 <entry>/config/routers/router/transport/username,
1325 first entry where server == public.localhost</entry>
1327 <systemitem class="username">router</systemitem>
1331 <entry>/config/routers/router/transport/password,
1332 first entry where server == public.localhost</entry>
1333 <entry><systemitem class="domainname">public.localhost</systemitem>
1335 <systemitem class="username">router</systemitem> user
1339 <entry>/config/routers/router/transport/username,
1340 second entry where server == private.localhost</entry>
1342 <systemitem class="username">router</systemitem>
1346 <entry>/config/routers/router/transport/password,
1347 second entry where server == private.localhost</entry>
1348 <entry><systemitem class="domainname">private.localhost</systemitem>
1350 <systemitem class="username">router</systemitem> user
1358 <title>Create Configuration Files for Users Needing <command>srfsh</command></title>
1359 <para>When OpenSRF was installed in a previous step (see
1360 <xref linkend="serversideinstallation-opensrf"/> for further information),
1361 the software installation automatically created a utility named
1362 <command>srfsh</command> (surf shell). This is a command line diagnostic tool
1363 for testing and interacting with <application>OpenSRF</application> It will be used
1364 in a future step to complete and test the Evergreen installation. See
1365 <xref linkend="serversideinstallation-testing"/> for further information.</para>
1367 <step xml:id="serversideinstallation-opensrf-env">
1368 <title>Modify the OpenSRF Environment</title>
1369 <para>Modify the shell configuration file <filename>~/.bashrc</filename> for
1370 user <systemitem class="username">opensrf</systemitem> by adding a Perl environmental
1371 variable, then execute the shell configuration file to load the new variables into
1372 your current environment.</para>
1375 <emphasis>In a multi-server environment, you must add any
1376 modifications to <filename>~/.bashrc</filename> to the top of
1377 the file <emphasis>before</emphasis> the line
1378 <literal>[ -z "$PS1" ] && return </literal>.
1379 This will allow headless (scripted) logins to load the correct
1380 environment.</emphasis>
1384 <userinput>echo "export PERL5LIB=/openils/lib/perl5:\$PERL5LIB" >> ~/.bashrc</userinput>
1385 <userinput>. ~/.bashrc</userinput>
1389 <title>(OPTIONAL) Enable and Disable Language Localizations</title>
1390 <para>You can load translations such as Armenian (hy-AM), Canadian French
1391 (fr-CA), and others into the database to complete the translations available in
1392 the OPAC and Staff Client. For further information, see <xref linkend="enabling_and_disabling_localization"/>.</para>
1396 <section xml:id="serversideinstallation-starting">
1397 <title>Starting Evergreen</title>
1400 <para>As the <systemitem class="username">root</systemitem>
1401 user, start the <systemitem class="service">ejabberd</systemitem> and
1402 <systemitem class="service">memcached</systemitem> services as follows:</para>
1404 <userinput>/etc/init.d/ejabberd start</userinput>
1405 <userinput>/etc/init.d/memcached start</userinput>
1409 <para>As the <systemitem class="username">opensrf</systemitem> user,
1410 start Evergreen as follows:</para>
1412 <userinput>osrf_ctl.sh -l -a start_all</userinput>
1414 <para>The flag <option>-l</option> forces Evergreen to use
1415 <systemitem class="domainname">localhost</systemitem> (your current system)
1416 as the hostname. The flag <option>-a start_all</option> starts the other
1417 OpenSRF <systemitem class="service">router</systemitem> ,
1418 <systemitem class="service">Perl</systemitem> , and
1419 <systemitem class="service">C</systemitem> services.</para>
1422 <para>You can also start Evergreen without the
1423 <option>-l</option> flag, but the <command>osrf_ctl.sh</command>
1424 utility must know the fully qualified domain name for the system
1425 on which it will execute. That hostname was probably specified
1426 in the configuration file <filename>opensrf.xml</filename> which
1427 you configured in a previous step.</para>
1430 <para>If you receive an error message similar to
1431 <emphasis>osrf_ctl.sh: command not found</emphasis>, then your
1432 environment variable <envar>PATH</envar> does not include the
1433 directory <filename class="directory">/openils/bin</filename>.
1434 As the <systemitem class="username">opensrf</systemitem> user,
1435 edit the configuration file <filename>~/.bashrc</filename> and
1436 add the following line:
1437 <literal>export PATH=$PATH:/openils/bin</literal></para>
1440 <para>If you receive an error message similar to <emphasis>Can't
1441 locate OpenSRF/System.pm in @INC ... BEGIN failed--compilation
1442 aborted</emphasis>, then your environment variable
1443 <emphasis role="bold">PERL5LIB</emphasis> does not include the
1444 directory <filename class="directory">/openils/lib/perl5</filename>.
1445 As the <systemitem class="username">opensrf</systemitem> user,
1446 edit the configuration file <filename>~/.bashrc</filename> and
1447 add the following line:
1448 <literal>export PERL5LIB=$PERL5LIB:/openils/lib/perl5</literal></para>
1453 <para>In this step you will generate the Web files needed by the Staff Client
1454 and catalog, and calculate the proximity of locations in the Organizational Unit
1455 tree (which allows <emphasis>Holds</emphasis> to work properly). You must do
1456 this the first time you start Evergreen and after making any changes to the
1457 library hierarchy. As the <systemitem class="username">opensrf</systemitem>
1458 user, execute the following commands:</para>
1460 <userinput>cd /openils/bin</userinput>
1461 <userinput>./autogen.sh -c /openils/conf/opensrf_core.xml -u</userinput>
1462 <computeroutput>Updating Evergreen organization tree and IDL using '/openils/conf/opensrf_core.xml'</computeroutput>
1463 <computeroutput>Updating fieldmapper</computeroutput>
1467 <para>As the <systemitem class="username">root</systemitem> user, restart the
1468 Apache Web server:</para>
1470 <userinput>/etc/init.d/apache2 restart</userinput>
1473 <para>If the Apache Web server was running when you started the OpenSRF
1474 services, you might not be able to successfully log into the OPAC or
1475 Staff Client until the Apache Web server has been restarted.</para>
1480 <section xml:id="serversideinstallation-testing">
1481 <title>Testing Your Evergreen Installation</title>
1482 <para>This section describes several simple tests you can perform to verify that the Evergreen
1483 server-side software has been installed and configured properly and is running as
1485 <simplesect xml:id="serversideinstallation-testing-connections">
1486 <title>Testing Connections to Evergreen</title>
1488 <para>Once you have installed and started Evergreen, test your connection to Evergreen. Start the
1489 <command>srfsh</command> application and try logging onto the Evergreen server using the default
1490 administrator username and password. Following is sample output generated by executing
1491 <command>srfsh</command> after a successful Evergreen installation. For help with
1492 <command>srfsh</command> commands, type <userinput>help</userinput> at the prompt.
1493 Execute the following commands to test your Evergreen connection:</para>
1495 <userinput>/openils/bin/srfsh</userinput>
1496 <computeroutput>srfsh%</computeroutput>
1497 <userinput>login admin open-ils</userinput>
1498 <computeroutput>Received Data: "250bf1518c7527a03249858687714376"</computeroutput>
1499 <computeroutput>------------------------------------</computeroutput>
1500 <computeroutput>Request Completed Successfully</computeroutput>
1501 <computeroutput>Request Time in seconds: 0.045286</computeroutput>
1502 <computeroutput>------------------------------------</computeroutput>
1503 <computeroutput>Received Data: {</computeroutput>
1504 <computeroutput> "ilsevent":0,</computeroutput>
1505 <computeroutput> "textcode":"SUCCESS",</computeroutput>
1506 <computeroutput> "desc":" ",</computeroutput>
1507 <computeroutput> "pid":21616,</computeroutput>
1508 <computeroutput> "stacktrace":"oils_auth.c:304",</computeroutput>
1509 <computeroutput> "payload":{</computeroutput>
1510 <computeroutput> "authtoken":"e5f9827cc0f93b503a1cc66bee6bdd1a",</computeroutput>
1511 <computeroutput> "authtime":420</computeroutput>
1512 <computeroutput> }</computeroutput>
1513 <computeroutput>}</computeroutput>
1514 <computeroutput>------------------------------------</computeroutput>
1515 <computeroutput>Request Completed Successfully</computeroutput>
1516 <computeroutput>Request Time in seconds: 1.336568</computeroutput>
1517 <computeroutput>------------------------------------</computeroutput>
1519 <para>If this does not work, try the following:</para>
1522 <para>As the <systemitem class="username">opensrf</systemitem> user, run the
1523 <filename>settings-tester.pl</filename> utility to review your Evergreen
1524 installation for any system configuration problems:</para>
1526 <userinput>cd /home/opensrf</userinput>
1527 <userinput>./Evergreen-ILS-1.6.1.2/Open-ILS/src/support-scripts/settings-tester.pl</userinput>
1529 <para>If the output of <command>settings-tester.pl</command> does not help you
1530 find the problem, please do not make any significant changes to your
1531 configuration.</para>
1534 <para>Follow the steps in the troubleshooting guide in
1535 <xref linkend="troubleshooting"/>.</para>
1538 <para>If you have followed the entire set of installation steps listed here
1539 closely, you are probably extremely close to a working system. Gather your
1540 configuration files and log files and contact the
1541 <ulink url="http://open-ils.org/listserv.php">Evergreen Development Mailing List</ulink>
1542 list for assistance before making any drastic changes to your system
1543 configuration.</para>
1548 <section xml:id="serversideinstallation-postinstallation">
1549 <title>Post-Installation Chores</title>
1550 <para>There are several additional steps you may need to complete after Evergreen has been
1551 successfully installed and tested. Some steps may not be needed (e.g., setting up support for
1554 <title>Remove temporary Apache configuration changes</title>
1555 <para>You modified the Apache configuration file
1556 <filename>/etc/apache2/sites-available/eg.conf</filename> in an earlier step as a
1557 temporary measure to expedite testing (see
1558 <xref linkend="serversideinstallation-modify-apache"/> for further information).
1559 Those changes must now be reversed in order to deny unwanted access to your CGI
1560 scripts from users on other public networks.</para>
1563 <emphasis>This temporary network update was done to expedite
1564 testing. You <emphasis role="bold"> must</emphasis> correct
1565 this for a public production system.</emphasis>
1568 <para>As the <systemitem class="username">root</systemitem> user, edit the configuration
1569 file again and comment out the line <literal>Allow from all</literal> and uncomment the
1570 line <literal>Allow from 10.0.0.0/8</literal>, then change it to match your network
1571 address scheme.</para>
1574 <title>Configure a permanent SSL key</title>
1575 <para>In a previous step, you used the command <command>openssl</command> to temporarily
1576 create a new SSL key for the Apache server. This self-signed certificate was adequate
1577 during testing and development, but will continue to generate warnings in the Staff Client
1578 and browser. For a public production server you should configure or purchase a signed SSL
1582 <emphasis>The temporary SSL key was only created to expedite
1583 testing. You should install a proper SSL certificate for a public
1584 production system.</emphasis>
1589 <title>Set Up Support For Reports</title>
1590 <para>Evergreen reports are extremely powerful but require some simple configuration.
1591 This section describes starting and stopping the Reporter daemon processes.</para>
1594 <para>Starting the Reporter Daemon</para>
1595 <para>Once the <systemitem class="daemon">open-ils.reporter</systemitem>
1596 process is running and enabled on the gateway, you can start the
1597 Reporter daemon. That process periodically checks for requests for new
1598 or scheduled reports, then starts them as required.</para>
1599 <para>As the <systemitem class="username">opensrf</systemitem> user,
1600 start the Reporter daemon using the following command:</para>
1602 <userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/src/reporter</userinput>
1603 <userinput>./clark-kent.pl --daemon</userinput>
1605 <para>You can control how the <command>clark-kent.pl</command> utility behaves
1606 by specifying any of several command-line options:</para>
1608 <listitem><option>--sleep=interval</option> : number of seconds
1609 to sleep between checks for new reports to run; defaults to
1610 <literal>10</literal></listitem>
1611 <listitem><option>--lockfile=filename</option> : where to place
1612 the lockfile for the process; defaults to
1613 <filename>/tmp/reporter-LOCK</filename></listitem>
1614 <listitem><option>--concurrency=integer</option> : number of
1615 Reporter daemon processes to run; defaults to
1616 <literal>1</literal></listitem>
1617 <listitem><option>--bootstrap=filename</option> : OpenSRF
1618 bootstrap configuration file; defaults to
1619 <filename>/openils/conf/opensrf_core.xml</filename></listitem>
1623 <para>Stopping the Reporter Daemon</para>
1624 <para>To stop the Reporter daemon, you must kill the process and remove
1625 the lockfile. The daemon may have just a single associated process or
1626 there may be several processes if the daemon was started with the optional
1627 <literal>--concurrency</literal> switch. It will also have a lockfile
1628 in the default location.</para>
1629 <para>As the <systemitem class="username">opensrf</systemitem> user,
1630 execute the following shell commands:</para>
1632 <prompt># find and kill the process ID number(s)</prompt>
1633 <userinput>kill `ps wax | grep "Clark Kent" | grep -v grep | cut -b1-6`</userinput>
1634 <prompt># remove the lock file</prompt>
1635 <userinput>rm /tmp/reporter-LOCK</userinput>
1641 <section xml:id="serversideinstallation-virtual">
1642 <title>Installing In Virtualized <systemitem class="osname">Linux</systemitem> Environments</title>
1643 <para>This section describes the installation of Evergreen software in so-called "virtualized"
1644 software environments. Evergreen software runs as a native application on any of several
1645 well-known x86 (32-bit) and x86-64 (64-bit) <systemitem class="osname">Linux</systemitem>
1646 distributions including <systemitem class="osname">Ubuntu</systemitem> and
1647 <systemitem class="osname">Debian</systemitem> but it does not run as a native application
1648 on the <systemitem class="osname">Microsoft Windows</systemitem> operating system.
1649 However, it is possible to execute Evergreen on a <systemitem class="osname">Windows</systemitem>
1650 host system by running it within a virtual Linux-guest installation, which itself executes
1651 on the <systemitem class="osname">Windows</systemitem> system.
1652 The <systemitem class="osname">Linux</systemitem> environment is fully emulated and acts
1653 (within limits) just as if it were executing on a real standalone system.</para>
1654 <para>This technique of emulating a <systemitem class="osname">Linux</systemitem> environment on
1655 a <systemitem class="osname">Windows</systemitem> host is a practical way to install and run an
1656 Evergreen system if it is not possible to dedicate a physical machine solely as a
1657 <systemitem class="osname">Linux</systemitem> host for Evergreen. This architecture is not
1658 recommended for large scale systems since there are performance limitations to running Evergreen
1659 in a virtualized environment. However, it is a reasonable architecture for smaller experimental
1660 systems, as a proof of concept, or as a conference-room pilot.</para>
1662 <title>Installing Virtualization Software</title>
1663 <para>As described above, Evergreen can be installed on top of an emulated
1664 <systemitem class="osname">Linux</systemitem> environment. The
1665 <systemitem class="osname">Linux</systemitem> environment, in turn, is installed
1666 on top of a software application such as <application>"VirtualBox"</application>,
1667 <application>"VMware"</application> or <application>"VirtualPC"</application> which must
1668 first be installed on the <systemitem class="osname">Windows</systemitem> system. This
1669 section contains step-by-step examples that show installing popular virtualization
1670 applications on a <systemitem class="osname">Windows</systemitem> host system. Following
1671 this section are further descriptions of installing
1672 <systemitem class="osname">Linux</systemitem> and Evergreen systems using that
1673 virtualization software.</para>
1675 <title>Installing <application>"VirtualBox"</application> Virtualization Software</title>
1676 <para>This section reviews installation of the
1677 <application>"VirtualBox"</application> application on
1678 <systemitem class="osname">WindowsXP Professional (SP2)</systemitem>.
1679 Download the latest edition of <application>VirtualBox</application> from their official website:
1680 <link xl:href="http://virtualbox.org" xl:title="virtual box">http://virtualbox.org</link>
1681 and follow the on screen instructions to install the software.</para>
1684 <title>Installing VMware Virtualization Software</title>
1686 <primary>virtualization software</primary>
1687 <secondary>VMware</secondary>
1689 <para>This section reviews installation of the
1690 <application>"VMware"</application> application on
1691 <systemitem class="osname">WindowsXP Professional (SP2)</systemitem>.
1692 Find and Download the free virtual machine software of from the VMware
1694 <ulink url="http://downloads.vmware.com">http://downloads.vmware.com</ulink>
1695 and follow the on-screen instructions.</para>
1698 <simplesect xml:id="serversideinstallation-virtual-install-linux-ev">
1699 <title>Installing <systemitem class="osname">Linux</systemitem> /
1700 Evergreen on Virtualization Software</title>
1701 <para>After the virtualization software is installed and running, there are two ways to
1702 continue with installing <systemitem class="osname">Linux</systemitem> and Evergreen
1703 software in the new virtualized environment:</para>
1706 <para>Download and install a prebuilt software image that contains a
1707 working <systemitem class="osname">Linux</systemitem> / Evergreen system
1708 (see <xref linkend="serversideinstall-virtual-prebuilt"/> for
1712 <para>Manually install a <systemitem class="osname">Linux</systemitem>
1713 guest system, then manually install Evergreen on it.</para>
1716 <para>We review each method in the following sections.</para>
1717 <simplesect xml:id="serversideinstall-virtual-prebuilt">
1718 <title>Download and install a prebuilt software image</title>
1719 <para>You can download a prebuilt software image that, when installed with your
1720 virtualization software, emulates a
1721 <systemitem class="osname">Linux</systemitem> guest system containing a running
1722 Evergreen distribution. The image is essentially a snapshot of a hard disk from
1723 a fully configured, functional <systemitem class="osname">Linux</systemitem>
1724 system with Evergreen already installed.</para>
1725 <para>We recommend this approach if you wish to get Evergreen running quickly
1726 with minimal attention to configuration. After reviewing only a few
1727 configuration details you can have a working Evergreen system that integrates
1728 smoothly with the rest of your network. See
1729 <xref linkend="serversideinstall-virtual-versions"/> for a list of prebuilt
1730 software images that are currently available to download and install</para>
1731 <note>DISCLAIMER: The following virtual images have been contributed by members
1732 of the Evergreen community for the purposes of testing, evaluation, training,
1733 and development.</note>
1734 <table xml:id="serversideinstall-virtual-versions">
1735 <title>Linux / Evergreen Virtual Images</title>
1736 <tgroup align="left" cols="4" colsep="1" rowsep="1">
1737 <colspec colnum="1" colwidth="1.0*"/>
1738 <colspec colnum="2" colwidth="1.0*"/>
1739 <colspec colnum="3" colwidth="3.0*"/>
1740 <colspec colnum="4" colwidth="1.0*"/>
1743 <entry>Linux Version</entry>
1744 <entry>Evergreen Version</entry>
1745 <entry>Image</entry>
1746 <entry>Comments</entry>
1751 <entry>Debian lenny (5.0)</entry>
1752 <entry>1.6.0.1</entry>
1754 <ulink url="http://www.open-ils.org/~denials/Evergreen1601_DebianLenny.zip"> download </ulink>
1756 <entry>VirtualBox image</entry>
1759 <entry>Ubuntu karmic koala (9.10)</entry>
1760 <entry>1.6.0.0</entry>
1762 <ulink url="http://www.open-ils.org/~denials/Evergreen-1600-Karmic.zip"> download </ulink>
1764 <entry>VirtualBox image</entry>
1770 <title>VirtualBox Example</title>
1772 <primary>virtualization software</primary>
1773 <secondary>VirtualBox</secondary>
1776 <para>Start VirtualBox for the first time and select
1777 <menuchoice><guimenu>File</guimenu><guimenuitem>VirtualBox Media
1778 Manager</guimenuitem><guimenuitem>Add</guimenuitem></menuchoice>
1779 to locate the prebuilt software image just downloaded (the
1780 example shows it was extracted from the original
1781 <filename class="extension">zip</filename> file into a temporary directory
1782 <filename class="directory">C:\temp</filename>).</para>
1785 <para>After selecting the file, click <guibutton>Open</guibutton> to import it.</para>
1788 <para>Then click <guibutton>OK</guibutton> to save the selection
1789 and return to the VirtualBox Media Manager</para>
1792 <para>Click <guibutton>New</guibutton>, then <guibutton>Next</guibutton> to continue
1793 and create a new virtual machine (VM).</para>
1796 <para>Create a new name for the VM and set the operating system
1797 type, then click <guibutton>Next</guibutton>.</para>
1800 <para>Set the memory size (at least 512Mb),
1801 then click <guibutton>Next</guibutton>.</para>
1804 <para>Edit the Virtual Hard Disk configuration settings; click
1805 the radio boxes <guilabel>Boot Hard Disk</guilabel> and
1806 <guilabel>Use existing hard disk</guilabel>
1807 and ensure that the disk name <guilabel>Evergreen1601_DebianLenny.vmdk</guilabel>
1808 is selected. Click <guibutton>Finish</guibutton> to finish the
1812 <para>Install the <application>VirtualBox Guest
1813 Additions</application> (really a required upgrade to
1817 <para>Return to VirtualBox and see the summary of the VM just
1818 created. Click <guibutton>Start</guibutton> to boot the new VM.</para>
1821 <para>See the start of the <systemitem class="osname">Linux</systemitem>
1822 boot sequence. Choose <guimenuitem>Debian Gnu/Linux, kernel
1823 2.6.26-2-686</guimenuitem> from the startup menu and click
1824 <guibutton>Enter</guibutton> to start
1825 <systemitem class="osname">Linux</systemitem> and Evergreen.
1826 After some delay you should see the command line prompt
1827 <prompt>debian-lenny login:</prompt>. Log in with username
1828 <userinput>root</userinput> and password <userinput>evergreen</userinput>