| 1 | |
|---|
| 2 | OpenGnSys Server Installation v. 1.0.3 |
|---|
| 3 | ====================================== |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | Notes |
|---|
| 7 | ----- |
|---|
| 8 | |
|---|
| 9 | It is assumed OpenGnSys Server will be installed in a GNU/Linux distro, Ubuntu 10.04 Server LTS or later, Linux Mint 12 or later, Debian 6 or later. |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | Installation Methods |
|---|
| 13 | -------------------- |
|---|
| 14 | |
|---|
| 15 | There are three basic ways OpenGnSys installation: |
|---|
| 16 | |
|---|
| 17 | Installation script. Which uses Subversion to download the application. |
|---|
| 18 | Starting from a tar.gz This application is now complete. |
|---|
| 19 | Installation step by step manual. It is obvious the installation script and install each component. |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | 1. Download the Installation Script |
|---|
| 23 | |
|---|
| 24 | OpenGnSys installation is done by running the installation script opengnsys_installer.sh, which can be downloaded directly from http://www.opengnsys.es/svn/trunk/installer/opengnsys_installer.sh |
|---|
| 25 | |
|---|
| 26 | 1.1. Download the script. Examples with various tools: |
|---|
| 27 | |
|---|
| 28 | Download with wget. |
|---|
| 29 | wget http://www.opengnsys.es/svn/trunk/installer/opengnsys_installer.sh |
|---|
| 30 | Download with curl. |
|---|
| 31 | curl http://www.opengnsys.es/svn/trunk/installer/opengnsys_installer.sh > opengnsys_installer.sh |
|---|
| 32 | Download with a web browser. Click on the link http://www.opengnsys.es/svn/trunk/installer/opengnsys_installer.sh and save the file as opengnsys_installer.sh |
|---|
| 33 | |
|---|
| 34 | 1.2. Or, installation from tar.gz. |
|---|
| 35 | |
|---|
| 36 | If we do not have access to Subversion, we will have to download the package tgz from the web. Access to http://www.opengnsys.es/browser/tags and load it on a server temporary directory. |
|---|
| 37 | |
|---|
| 38 | Descompress the file: |
|---|
| 39 | tar xvzf opengnsys-version.tar.gz |
|---|
| 40 | |
|---|
| 41 | Change to the installer directory: |
|---|
| 42 | cd opengnsys/installer |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | 2. Basic Configuration |
|---|
| 46 | |
|---|
| 47 | For security reasons, it is very important modify defaults users and passwords to access to the system. For this, edit the installation file opengnsys_installer.sh and change the values of configuration variables: |
|---|
| 48 | MYSQL_ROOT_PASSWORD - MySQL root user password. |
|---|
| 49 | OPENGNSYS_DB_USER - OpenGnSys access user and OpenGnSys super-user. |
|---|
| 50 | OPENGNSYS_DB_PASSWD - User password. |
|---|
| 51 | OPENGNSYS_CLIENT_PASSWD - Password for client access to remote services. |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | 3. Installation process. |
|---|
| 55 | |
|---|
| 56 | The installation script must be run as root: |
|---|
| 57 | |
|---|
| 58 | sudo bash opengnsys_installer.sh |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | 4. Check the configuration files. |
|---|
| 62 | |
|---|
| 63 | Init Configuration |
|---|
| 64 | /opt/opengnsys/etc/ogAdmServer.cfg - OpenGnSys Server config file |
|---|
| 65 | /opt/opengnsys/etc/ogAdmRepo.cfg - OpenGnSys Repository config file |
|---|
| 66 | /opt/opengnsys/etc/ogAdmAgent.cfg - OpenGnSys Agent config file |
|---|
| 67 | /opt/opengnsys/client/etc/ogAdmClient.cfg - OpenGnSys Client config file |
|---|
| 68 | /opt/opengnsys/www/controlacceso.php - OpenGnSys Web Admin Console config file |
|---|
| 69 | |
|---|
| 70 | Configure DHCP server, insert clients data and restart the service. |
|---|
| 71 | |
|---|
| 72 | Access as Administrador in Web Admin Console. |
|---|
| 73 | Use the user and password set in the installer to access to database (variables OPENGNSYS_DB_USER and OPENGNSYS_DB_PASSWD). |
|---|
| 74 | Check the default organizaed configuration and default user. |
|---|
| 75 | Access as user in Web Admin Console. |
|---|
| 76 | Use the user and password configured as administrador in the Organizational Unit. |
|---|
| 77 | Check the server IP in section "Servidores->Servidor OpenGnSys (Default)". |
|---|
| 78 | If you change the configuration, you must to restart the server: sudo /etc/init.d/opengnsys restart |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | Updating OpenGnSys |
|---|
| 82 | ------------------ |
|---|
| 83 | |
|---|
| 84 | Run opengnsys_update.sh script as "root" to update all OpenGnSys components from the Subversion repository: |
|---|
| 85 | |
|---|
| 86 | sudo bash /opt/opengnsys/lib/opengnsys_update.sh |
|---|
| 87 | |
|---|
| 88 | Follow the instructions. |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | Uninstalling OpenGnSys |
|---|
| 92 | ---------------------- |
|---|
| 93 | |
|---|
| 94 | Run opengnsys_uninstall.sh script as "root" to uninstall all OpenGnSys components: |
|---|
| 95 | |
|---|
| 96 | sudo bash /opt/opengnsys/lib/opengnsys_uninstall.sh |
|---|
| 97 | |
|---|
| 98 | Follow the instructions. |
|---|
| 99 | |
|---|
| 100 | |
|---|