Commit Graph

4194 Commits (ce6fe2e749fd704467db368fbe08d99d9bcba545)
 

Author SHA1 Message Date
Irina Gomez 8c88e08bee #802 #888 Console: in management of NetBootAvanzado can use bios and uefi templates. 2019-02-20 09:21:36 +01:00
Javier Sánchez Parra f8dfa27b00 #903: Rejects values for name, IP and MAC if they are already in use
* This was already checked before but only in the creation, now it is also
checked in the edition.
* Now it also considers two MACs to be the equals regardless of case
(lower/upper).
2019-02-19 14:19:02 +01:00
Irina Gomez 178c3f6de9 #802 setclientmode: Crea configuración PXE para BIOS y UEFI. Permite pasar la información de acceso a la base de datos en un fichero. 2019-02-13 10:28:06 +01:00
Ramón M. Gómez 669478452f #834: Fixing more code cleanup: CSS units, HTML tags; Javascript comparisons, and PHP variables. 2019-02-12 10:46:37 +01:00
Irina Gomez 1c74bf58d1 #802 NetBootAvanzado: Se muestran las plantillas BIOS y UEFI. Se utiliza el script setclientmode para crear los archivos PXE de los equipos 2019-02-12 10:44:38 +01:00
Ramón M. Gómez 6bd2e1e7ba #736: Installer script no longer disables firewall or SELinux, and recommends using {{{security-config}}} script. 2019-02-07 12:04:07 +01:00
Ramón M. Gómez b0d5fb3238 #834: Fixing more code cleanup: CSS units, HTML syntax and PHP closing tags. 2019-02-07 11:19:34 +01:00
Ramón M. Gómez ea016a46cd #784: Fixing Apache configuration error when multiple instances of PHP-FPM are installed. 2019-02-07 10:35:55 +01:00
OpenGnSys Support Team 39f06eb427 #899 Remove unused code in ogAdmLib: remove tomaPuerto()
tomaPuerto() is not used, remove it.
2019-02-06 14:51:47 +01:00
OpenGnSys Support Team 2181ad888e #898 Remove unused encryption and decryption routines
Remove dead code to encrypt and decrypt the message.
2019-02-06 14:49:49 +01:00
OpenGnSys Support Team aaa2c5795f #897 Do not use socket type in ogAdmServer
No need for an extra type, socket descriptors are always integer.
2019-02-06 14:49:04 +01:00
Javier Sánchez Parra 332487dc7a #896: Send multicast WoL through a specific interface
* New parameter in ogAdmServer config file for setting an interface.
* ogAdmServer multicast WoL now search the interface of the config file in the
system, if the interface is found in the system the destination IP of the
packet change to a broadcast address of a specific range of addresses.
2019-02-06 14:29:52 +01:00
Ramón M. Gómez 4a7bf3231b #834: Fixing more code cleanup: CSS units, HTML tags, and Javascript variables and comparisons. 2019-02-06 13:45:56 +01:00
Ramón M. Gómez 8e072b9aa5 #736: Updating security policies: restrict MySQL access from loopback, add auxiliary ports, check if SELinux is enabled. 2019-02-06 13:35:47 +01:00
Ramón M. Gómez e32794a354 #834: Fixing more code cleanup: file encoding, CSS units, HTML tags, and trailing spaces. 2019-02-05 16:00:57 +01:00
Ramón M. Gómez a7406f2d05 #834: Fixing more code cleanup: some file encoding, CSS units, Javascript comparisons, HTML tags, PHP variables. 2019-02-04 12:10:37 +01:00
Irina Gomez e9601e1f70 #802 #889 #890 ogGrubInstallPartitions, ogGrubInstallMbr y ogRestoreEfiBootLoader: Format EFI partition if it is not. ogGetEsp: Detecting the EFI partition does not require VFAT filesystem. 2019-02-04 11:34:26 +01:00
Irina Gomez 62eba32016 #895 Fixs the partitioning wizard: can change partition table from MSDOS to GPT whithout reboot. Fixs fake error in ogCreateGptPartitions when there isn't cache. 2019-02-04 11:20:28 +01:00
OpenGnSys Support Team d7e33cb568 #893 Adding code to rename client pc in configureOs 2019-01-31 09:15:07 +01:00
Javier Sánchez Parra a5f7c304ce #892: extract ogAdmServer data from the configuration file 2019-01-30 13:57:27 +01:00
Javier Sánchez Parra 0ad92e4af4 #892: Avoid infinite loop 2019-01-29 14:55:34 +01:00
Javier Sánchez Parra 2b00219981 #892: Use ogAdmServer Wake on Lan
* gestor_Comando.php only execute wakeonlan_repo.php when wake up command is called.
* wakeonlan_repo.php send new needed parameters for ogAdmServer WoL.
* repository.php use ogAdmServer WoL instead of wakeonlan perl script.
* opengnsys_installer.sh and opengnsys_update.sh don't have wakeonlan perl script dependency anymore.

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Mon Jan 28 10:22:57 2019 +0100
#
# On branch devel
# Your branch is ahead of 'origin/devel' by 1 commit.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#	modified:   admin/WebConsole/comandos/gestores/gestor_Comandos.php
#	modified:   admin/WebConsole/comandos/gestores/wakeonlan_repo.php
#	modified:   admin/WebConsole/rest/repository.php
#	modified:   installer/opengnsys_installer.sh
#	modified:   installer/opengnsys_update.sh
#
# Untracked files:
#	0001-892-Use-ogAdmServer-Wake-on-Lan.patch
#	0001-892-Use-ogAdmServer-Wake-on-Lan.zip
#
2019-01-29 14:55:27 +01:00
Irina Gomez 20e5aa9e45 #802 #889 configureOs can relocale Windows in different partition. ogWindowsBootParameters: include the bootpartition to configure BCD 2019-01-29 11:26:10 +01:00
Ramón M. Gómez 3f59ea6b31 #877: OGAgent can connect to an alternate server, and fixing some Python code cleanup. 2019-01-29 10:11:38 +01:00
OpenGnSys Support Team 867e44e54d #891 remove function to parse string in hexadecimal to binary
Wake-on-lan does not use it anymore, this function has no clients and we
can just remove it.
2019-01-23 16:40:18 +01:00
OpenGnSys Support Team a52f9830f8 #891 fix wake on lan routine
Fix function to send wake-on-lan packet:

- setsockopt() expects an integer as parameter.
- zero the struct socketaddr_in local structure.
- use sscanf() to parse the mac address string.
2019-01-23 16:39:21 +01:00
Ramón M. Gómez b6ec1628ae #834: Remove all redundant PHP closing tags. 2019-01-23 13:53:41 +01:00
Irina Gomez 7dc06be98d #802 #890 Postconfiguración de linux (ubuntu) compatible con UEFI. ogGrubInstallMbr y ogGrubInstallPartition: incluye opciones UEFI. ogUuidChange: genera UUID con un comando existente en el ogLive. 2019-01-23 13:23:05 +01:00
Ramón M. Gómez 8c7b374612 #834: More PHP/HTML/CSS code cleanup. 2019-01-23 13:07:06 +01:00
Irina Gomez a31f7a97b1 #802 #889 ogHidePartition and ogUnhidePartition: Add Windows and Windows Reserved Partitions. ogSaveImageInfo and ogRestoreUuidPartitions: Only save/restore GUID Partition Table. 2019-01-21 14:05:18 +01:00
Ramón M. Gómez 1985678d44 #834: Check for more variable definitions and continue code cleanup. 2019-01-21 11:20:27 +01:00
Ramón M. Gómez de61ab6731 #834: Check for more variable definitions and continue code cleanup. 2019-01-21 11:19:40 +01:00
Ramón M. Gómez 3d004554d8 #834: Correct undefined variables and some spell checking. 2019-01-19 14:19:11 +01:00
Ramón M. Gómez b966d51940 #881: Remove parentheses from the configuration file to avoid an error raised by PHP function {{{parse_ini_file}}}. 2019-01-19 12:59:06 +01:00
Ramón M. Gómez d5b9f8932d #806: Show error message when partition size < 0 (thanks to Javier Sanchez, jsanchez@soleta.eu). 2019-01-18 11:25:31 +01:00
Irina Gomez f028c36341 Merge branch 'uefi' of opengnsys.es:/git/opengnsys into uefi 2019-01-18 11:00:15 +01:00
Irina Gomez 30238abde6 #802 UEFI Windows compatibility: necessary functions for create and restore images. 2019-01-18 10:59:35 +01:00
Irina Gomez 39b84ff881 #802 UEFI compatibility: allows postconfigure and log in to Ubuntu. 2019-01-18 10:59:35 +01:00
OpenGnSys Support Team 4797e934a1 #580 ignore SIGPIPE signal
This signal is received when socket hit connection reset by peer
state, which may happen in transient network failures.
2019-01-17 13:19:02 +01:00
OpenGnSys Support Team 71f5b7d3f3 #580 incorrect return value in handler
All handlers must return a boolean.
2019-01-17 13:18:57 +01:00
OpenGnSys Support Team 256fbf2a68 #883 standalone log file is now deprecated
display message in old log file that ogAdmServer uses syslog.
2019-01-17 13:18:55 +01:00
OpenGnSys Support Team 95654f4c86 #883 remove unnecessary logging
Remove redundant logging, use syslog() whenever possible.
2019-01-17 13:18:53 +01:00
OpenGnSys Support Team 8c04716276 #883 replace standalone log file by syslog 2019-01-17 13:18:51 +01:00
OpenGnSys Support Team 0e16db2248 #883 use LOG_DEBUG instead of LOG_INFO
Log file may grow in size too quickly in standard syslog configurations.
2019-01-17 13:18:49 +01:00
OpenGnSys Support Team b11b753b19 #883 do not use argv[0] in syslog log message
Before:

Dec  3 11:18:12 ogLab /opt/opengnsys/sbin/ogAdmServer[1025]: server closing connection to 192.168.56.10:50476

After this patch:

Dec  3 11:18:12 ogLab ogAdmServer[1025]: server closing connection to 192.168.56.10:50476
2019-01-17 13:18:47 +01:00
OpenGnSys Support Team 3dbe47fb1e #885 remove native tftp and dhcp server
tftp, dhcp/bootp is done using external standalone implementation.
This code is unused, remove it.
2019-01-17 13:18:44 +01:00
Ramón M. Gómez 5a07e02637 #580: New compilation dependencies. 2019-01-17 13:18:42 +01:00
OpenGnSys Support Team 2e0c06332b #580 fix management of keepalive connections to clients
OgAdmServer leaves a connection in keepalive more (similar to HTTP
keepalive feature), the existing handling is not correct. The tbsocket
table is never cleaned up and properly.

Use the new og_client object that represents connections from the
clients in tbsocket[] instead.

The keepalive field now stores the index in the tbsocket table, so there
is no need to consult mysql to fetch the slot that this client is using.

This patch also extends syslog() support to include port number when
reporting connections from clients.
2019-01-17 13:18:40 +01:00
OpenGnSys Support Team c3e31180f8 #580 no need for pthread library 2019-01-17 13:18:38 +01:00
OpenGnSys Support Team bfa70ab1c6 #884 do not strip off symbols
Nor use -O3 since this generates code that is harder to debug.
Compile binary that can be run inside valgrind for better debugging.
2019-01-17 13:18:36 +01:00