Installing OpenGnsys Server v 1.0.5
=======================================

Before installation
-------------------

OpenGnsys Server 1.0.5 is meant to be installed under Ubuntu Server 12.04 LTS or newer, though it has also been tested under operating systems based on Fedora 20

Network connection is needed in order to download the required packages, the source code and the preconfigured client.

Minimum storage requirements:
- 100 MB in /tmp (for the installation process)
- 450 MB in /var/lib/tftpboot (or /srv in Debian systems)
- 500 MB in the installation folder (/opt/opengnsys) in addition to the space required for logging (100 MB if ogLive client is already downloaded).
- Enough disk space for the image repository in /opt/opengnsys/images (it is recommended to mount it on an independent file system)

Installation
------------

To install OpenGnSys run opengnsys_installer.sh after unpacking the release file (opengnsys-release.tar.gz) o downloading it directly from http://www.opengnsys.es/svn/trunk/installer/opengnsys_installer.sh.

Unpacking example:
	tar xvzf opengnsys-1.0.5.tar.gz
	cd opengnsys/installer

Download examples:

    * Download with wget.
	wget http://www.opengnsys.es/svn/trunk/installer/opengnsys_installer.sh -O opengnsys_installer.sh

    * Download with curl.
	curl http://www.opengnsys.es/svn/trunk/installer/opengnsys_installer.sh > opengnsys_installer.sh


You must be root to run the installation script:
	sudo bash opengnsys_installer.sh


The following information will be requested in order to configure the access to the service (a default value will be introduced if no parameter is indicated):
    * MySQL root password
    * Web console user and OpenGnSys Super Administrator
    * Web console user's password
    * Client's password for accessing remote services

The following processes will be carried out:
    * Gathering of the basic network parameters.
    * Checking the installed packages.
    * Downloading and installing dependencies.
    * Creating OpenGnSys basic folder sctructure.
    * Download the code repository to a temporal folder (/tmp/opengnsys_installer). In upcoming releases this process will not be necessary.
    * Compiling and installing OpenGnSys services.
    * Basic configuration of OpenGnSys network services (DHCP, PXE and Samba) using the existing configuration templates.
    * Copying additional server management files.
    * Creating the database and configuring OpenGnSys administration console web server.
    * Copying web administration console pages.
    * Copying the OpenGnSys client folder structure.
    * Downloading OpenGnSys client initial image.
    * Basic configuration of OpenGnSys services using network parameters.

Once the installation is finished you can start working with the system:
    * Configuring DHCP.
    * Adding information in the administration console.
    * Customizing administration scripts.
    * Creating start menus for the clients.



Updating / upgrading
--------------------

There is a system self-upgrading script with the following features:
    * Network connection is needed to obtain the latest updates / upgrades.
    * If the script updates itself, then it must be run once again.
    * Services depending on the operating system will not be updated.
    * Configuration files will not be modified.

You must be root to run this script:
    sudo /opt/opengnsys/lib/opengnsys_update.sh
 


Uninstall
---------

There is also an uninstall script for the OpenGnSys components:
    * OpenGnSys files and data base will be deleted. 
    * Packages belonging to the operating system and their configuration files will be preserved.
    * The image folder and its content will not be deleted.



You must be root to run this script:
    sudo /opt/opengnsys/lib/opengnsys_uninstall.sh

