465
465
sudo ivle-buildjail -r
467
467
You should now have a functional master.
473
Installing and configuring IVLE
474
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
476
We need to tell the database configuration assistant that we want to connect
477
to a remote database. The second command will also ask you whether you want to
478
store administrative passwords: say no here. ::
480
sudo apt-get install dbconfig-common
481
sudo dpkg-reconfigure dbconfig-common
483
We are going to need some details from the master for authentication purposes.
484
Grab the ``password`` value from the ``database`` section, and the ``magic``
485
value from the ``usrmgt`` section of the master's ``/etc/ivle/ivle.conf``.
487
Now we can install IVLE. Advise the installer that this machine is not a
488
master, and use the details retrieved from the master to answer the rest of
491
sudo apt-get install ivle
493
Once the installation has completed, make the same configuration changes as on
494
the master: set the domain names in ``ivle.conf`` to real values.
496
For maximum performance, you should also set the ``version`` value in the
497
``media`` section. The exact string is not important, as long as the value is
498
identical on every slave, and changed on each upgrade. It is used to make
499
static file URLs unique, so clients can cache them indefinitely. The IVLE
500
version is conventionally used as this string.
503
Getting access to the shared data
504
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
506
We need to mount the shared components of the IVLE data hierarchy from the
507
master. If you've used the suggested method, follow these instructions.
508
Otherwise you'll have to work it out for yourself.
510
First install the NFS common utilities, required for NFS mounts. ::
512
sudo apt-get install nfs-common
514
Now we can add the mount to ``/etc/fstab``. Something like this should do: ::
516
themaster:/export/ivle /export/ivle nfs defaults 0 0
518
Then mount the filesystem, and link the shared directories into the
523
rmdir /var/lib/ivle/{sessions,jails}
524
ln -s /export/ivle/{sessions,jails} /var/lib/ivle
530
The slaves use Apache to serve the main IVLE web UI and public user files.
531
Let's activate the configuration now. ::
533
sudo cp /usr/share/doc/ivle/apache.conf /etc/apache2/sites-available/ivle
536
Now edit ``/etc/apache2/sites-available/ivle``, and ensure that the
537
``ServerName`` matches your chosen IVLE web UI domain name, and
538
``ServerAlias`` your public name. Then reload Apache's configuration. ::
540
sudo /etc/init.d/apache2 reload