47 | | == Installation from tar.gz== |
| 47 | === Installation from tar.gz=== |
| 48 | |
| 49 | 1. If we do not have access to Subversion, i.e., we are behind a proxy, we will have to download the package tgz from the web. |
| 50 | a. Access to [http://www.opengnsys.es/browser/tags] |
| 51 | a. Window will be open, informing you can not see the package, only download. |
| 52 | 1. Load it on the server where we will install it. |
| 53 | 1. Descompress the file tar.gz (`tar zxvf name_of_file.tar.gz`). |
| 54 | 1. Change the name of subdirectory to `opengnsys`. |
| 55 | 1. Create the subdirectory `opengnsys_installer` at `/tmp`. |
| 56 | 1. Move the subdirectory `opengnsys` to `/tmp/opengnsys_installer`. |
| 57 | 1. Change to user root `sudo su` |
| 58 | 1. Setting proxy to server. i.e.: `export http_proxy="http://proxy.us.es:3128"` |
| 59 | 1. We recommended change the users and passwords by default editing the installer `opengnsys_installer.sh`. Find the variables OPENGNSYS_DB_USER, OPENGNSYS_DB_PASSWD, OPENGNSYS_DB_DEFAULTUSER y OPENGNSYS_DB_DEFAULTPASSWD. Change to desired values. |
| 60 | 1. Run the script `/tmp/opengnsys_installer/opengnsys/installer/opengnsys_installer.sh` |
| 61 | |
| 62 | === Manual Installation step by step === |
| 63 | |
| 64 | For details of all the processes performed by the scripts for manual installation of the system [http://www.opengnsys.es OpenGnSys] see [wiki:InstalacionManual Manual Installation] |
| 65 | |
| 66 | == Updating [http://www.opengnsys.es/ OpenGnSys] == |
| 67 | |
| 68 | 1. With access to Subversion |
| 69 | 1. Download the file opengnsys_update. |
| 70 | 1. Without access to Subversion |
| 71 | 1. Download the update with a computer that having full access to the subdirectory trunk. `svn co http://www.opengnsys.es/svn/trunk` |
| 72 | 1. Copy to the computer where you want to update. |
| 73 | 1. Move to the subdirectory `installer`. |
| 74 | 1. Run `sudo ./opengnsys_update.sh`. |
| 75 | |
| 76 | == Uninstalling [http://www.opengnsys.es/ OpenGnSys] == |
| 80 | 1. Backup of database sql ogBDAdmin opengnsys. |
| 81 | 1. Remove the database ogBDAdmin |
| 82 | 1. Remove mysql: `sudo aptitude --purge remove mysql-server` |
| 83 | 1. Stop the og daemon: `/etc/init.d/opengnsys stop` |
| 84 | |
| 85 | == OpenGnSys settings to use external services == |
| 86 | |
| 87 | === Server dhcp external === |
| 88 | |
| 89 | 1. Add to file /var/lib/tftpboot/pxelinux.cfg/default the identification OpenGnsys server(ip adress), with repo=xxx.xxx.xxx.xxx |
| 90 | {{{ |
| 91 | LABEL pxe |
| 92 | KERNEL linux |
| 93 | APPEND initrd=initrd.gz ip=dhcp ro vga=788 irqpoll acpi=on repo=172.17.36.29 |
| 94 | }}} |
| 95 | 1. In the configuration file external dhcp server: |
| 96 | {{{ |
| 97 | # Enables the transfer of the name by dhcp. |
| 98 | use-host-decl-names on; |
| 99 | # Assign the service pxe: |
| 100 | next-server ip_opengnsys; |
| 101 | }}} |
| 102 | |
| 103 | |
| 104 | === Server pxe external === |
| 105 | |
| 106 | 1. Copy files initrd and linux from /var/lib/tftpboot to server pxe external. |
| 107 | 1. Copy or integrate the initrd linux parameters (/var/lib/tftpboot/pxelinux.cfg/default), also including the parameter repo=xxx.xxx.xxx.xxx. to server pxe external. (where xxx.xxx.xxx.xxx is the OpenGnSys server ip) |
| 108 | |
| 109 | |
| 110 | == Proposed installation of components == |
| 111 | |
| 112 | Proposed to modify the installation program to automate the process of the two main components of OpenGnSys Project. The format of the setting script {{{opengnsys-installer.sh }}} can be: |
| 113 | {{{ |
| 114 | opengnsys_installer.sh [ all | server | repo IPServidor DistribuciónCliente ] |
| 115 | }}} |
| 116 | |
| 117 | As the parameter: |
| 118 | * '''{{{server}}}''' – including the services: |
| 119 | * OpenGnSys Server (ogAdmServer, ogAdmAgent) |
| 120 | * Web Console (Apache, MySQL, web pages) |
| 121 | * Boot (DHCP, TFTP, client generator) |
| 122 | * '''{{{repo}}}''' – including the services: |
| 123 | * Repo Server (ogAdmRepo) |
| 124 | * File Server (NFS) |
| 125 | * OpenGnSys Client Components |
| 126 | * You need to know the ip of the server and the type of distribution of Ubuntu that will be use on the clients. |
| 127 | * '''{{{all}}}''' – installation compact in the same computer (optional value and by default). |
| 128 | |