Commit Graph

3627 Commits (a0df5af7248f31bab8a799268e35373936d5911c)
 

Author SHA1 Message Date
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
OpenGnSys Support Team 13e48b4437 #883 add initial syslog support 2019-01-17 13:18:34 +01:00
OpenGnSys Support Team 9baecf8f71 #580 rework server socket handling
Modern server side using libev library, includes timeouts for clients.

After this patch, your system requires the libev-dev and libev4 packages
to compile ogAdmServer.
2019-01-17 13:18:32 +01:00
OpenGnSys Support Team 97b0052434 #580 more robust check for remote function
Use strncmp() that is bound to the function name length.
2019-01-17 13:18:30 +01:00
OpenGnSys Support Team 35cc972d46 #883 add og_info() and use it
Use __FUNCTION__ to print function name, this is a preparation work
to introduce syslog support.
2019-01-17 13:18:28 +01:00
OpenGnSys Support Team 5759db40b5 #580 use true/false definition from standard stdbool.h 2019-01-17 13:18:26 +01:00
OpenGnSys Support Team 05c4841807 #580 disregard INVALID_SOCKET 2019-01-17 13:18:23 +01:00
OpenGnSys Support Team 70f6f109d9 #580 disregard SOCKET_ERROR 2019-01-17 13:18:19 +01:00
OpenGnSys Support Team d9db3d8d73 #580 remove dead code uncovered by statification
These functions are not used, remove them.

sources/ogAdmServer.cpp:2208:13: warning: ‘bool actualizaCreacionSoftIncremental(Database, Table, char*, char*)’ defined but not used [-Wunused-function]
 static bool actualizaCreacionSoftIncremental(Database db, Table tbl, char* idi,char* idf)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sources/ogAdmServer.cpp:1626:13: warning: ‘bool RESPUESTA_Comando(int, TRAMA*)’ defined but not used [-Wunused-function]
 static bool RESPUESTA_Comando(int socket_c, TRAMA* ptrTrama)
             ^~~~~~~~~~~~~~~~~
sources/ogAdmServer.cpp:1600:13: warning: ‘bool Comando(int, TRAMA*)’ defined but not used [-Wunused-function]
 static bool Comando(int socket_c, TRAMA* ptrTrama)
             ^~~~~~~
2019-01-17 13:18:17 +01:00
OpenGnSys Support Team d647d819a9 #580 constify parameter and statify function
Remove unnecessary function declaration in header files
2019-01-17 13:18:14 +01:00
OpenGnSys Support Team 8fb0089943 #580 remove AULAUP in configuration file
Overrides catalog, and aulaup variable is never set / used.
2019-01-17 13:18:11 +01:00
OpenGnSys Support Team f613fb2b58 #580 simplify check for empty string 2019-01-17 13:18:09 +01:00
OpenGnSys Support Team 7cd0b13357 #580 move global variable definitions to file
Save us from unnecessary initialization given this is in the .bss area.
2019-01-17 13:18:06 +01:00
OpenGnSys Support Team c4b897a646 #580 add og_log() and use it 2019-01-17 13:18:04 +01:00
OpenGnSys Support Team c0a46e291d #580 use bool from stdbool.h instead of BOOLEAN
C99 includes boolean definition in stdbool.h, use them.
2019-01-17 13:18:02 +01:00
OpenGnSys Support Team ba03878f86 #580 disregard SOCKET type, use int instead
Socket file descriptors are always an integer, no need for typedef.
2019-01-17 13:18:00 +01:00
OpenGnSys Support Team 353da2d34e #580 simplify load configuration file
Use fgets() and strtok() to parse the configuration to simplify the
existing handler.
2019-01-17 13:17:58 +01:00
OpenGnSys Support Team 0e095f1de7 #580 no need to iterate 1024 times to find a matching handler
There are only 41 handlers, no need to keep inspecting up to 1024.
Most entries in this array are null.
2019-01-17 13:17:55 +01:00