| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Replace index.php to notification that web console has entered EoL
|
|
|
|
|
|
| |
If server= boot param is present and expands to a valid configuration
file at "/opt/opengnsys/ogClient/cfg/$server.json", use this
configuration file as the ogClient config file.
|
|
|
|
|
|
|
|
|
|
| |
Valid commands depend on the "access level" determined by:
- You are root (root)
- You can read /opt/opengnsys/www/controlacceso.php (web)
Users might not know this, so invite to run as sudo if running some
command is not valid because of this.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for tiptorrent image transfer mode to client's bash scripts
(aka cloning engine). If desired, clients receive images to restore with
the new unicast transfer mode tiptorrent.
See also: http://git.soleta.eu/tiptorrent/
#1062 Add tiptorrent support to WebConsole
Add tiptorrent option to WebConsole restore image form.
#1062 Launch tiptorrent on oglive init
This commit adds tiptorrent launch to oglive init process. Clients
launch tiptorrent daemon if they have cache partition.
#1062 Fix minor tiptorrent integration bugs
* Fix md5sum pipe typo
* Use correct variable for checksum download
#1062 Calculate checksum on image creation
Otherwise, OpenGnsys depends on cron and bittorrent specific scripts to
obtain images checksums.
Support cache cleaning for tiptorrent image parts
Tiptorrent downloads and saves images to the cache in parts. With this
commit, WebConsole shows and deletes all parts as one.
#1062 Rename TIPTORRENT-CACHE in restore image form
This commit changes TIPTORRENT for TIPTORRENT-CACHE to keep naming
consistency.
#1062 tiptorrent stores whole file instead of chunks
Tiptorrent now stores the whole file instead of the split chunks.
Removes any chunk related code from cloning engine scripts.
Requires newer version of tiptorrent installed
(tiptorrent-static >= 1.0.0-6).
Always compute MD5 of cached image
Do not rely on MD5 checksum file from the cache on tiptorrent transfers.
Otherwise, cloning engine could restore a corrupted image.
#1062 Check tiptorrent exit code
Otherwise, the image restoration continues in failed downloads.
|
|
|
|
|
|
|
|
| |
This reverts commit 127248e3454e84ba073e5413075e1e7aafef7c0d.
Web Console expects boot templates to have certain names, otherwise it
behaves incorrectly. The reverted commit changes this names to ones that
the Web Console do not recognize.
|
|
|
|
| |
Rename boot templates to improve readability and clarity.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New python requirements of programs running in ogLive clients
are shared via samba. Appends this Samba directory to the PYTHONPATH of
OpenGnsys clients (ogLive).
Specific python versions folder in the OpenGnsys server are located at:
/opt/opengnsys/client/lib/pythonX.Y/
X = Major version
Y = Minor version
This is exposed in the client (ogLive) at:
/opt/opengnsys/lib/pythonX.Y/
Clients startup script detects python3 version and exports the correct
samba directory.
|
|
|
|
|
|
|
| |
It is not needed for setting clients' boot mode.
Replace TEMPLATE_NAME in error messages with MODE_FILE as both reference
the template file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before starting ogClient, script will lookup for specific classroom
configuration file, if it is found, then it will use it, otherwise it
uses the default configuration file.
The specific configuration file allows for finer-grain configurations
per room. Spaces in the room name are replaced by underscore.
For example. client: pc11, room name: "Virtual room".
If "Virtual_room.json" exists in client /opt/opengnsys/ogClient/cfg
it will use that config file.
If it doesn't exist, start ogclient with default config file
(ogclient.json)
|
| |
|
|
|
|
| |
boot of NVRAM.
|
| |
|
|
|
|
| |
Windows (UEFI).
|
|
|
|
|
|
|
|
| |
Partition and format does not work with a subset of clients in a room scope.
(ámbito aulas).
Remove duplicate hidden input that was problematic to the javascript
code involved to fix this.
|
|
|
|
|
| |
Due to a regression reported in ticket #1051, ogserver scheduling falls
back to use the session value instead of command id.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Send command (formerly action) id on remotepc scheduling, instead of
session number. Otherwise, ogServer can not find the command in the
database.
This patch is necessary because commit 076a797 in ogServer repo changes
command query filter from session to id.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To help users choosing which preparation a computer needs according to
its disk type, this commit:
* Adds cloning engine support to retrieve disk type data from the
computer when refreshing disks partition schema.
* Adds WebConsole support to read disk type data from the database and
show it on partition drawing.
See also commits with #1037 in ogClient and ogServer repo.
Co-authored-by: Javier Sánchez Parra <jsanchez@soleta.eu>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before, speed information was not shown in the corresponding computer,
but from first to last element in the table, this did not take into
account for shutdown computers or the position inside the room for a
given computer.
This fix maps ips to speed information so it can later be indexed to
show information correctly.
Fixes: 8634dd3 (#995 Show client link speed if available)
|
| |
|
|
|
|
|
| |
This commit fixes delete image cache (EliminarImagenCache) form to show
cached images as expected when used on a scope group of computers
|
|
|
|
|
|
|
|
| |
There is a function that collects the computers in the classroom and another that paints them, passing the computers from one to another through a global variable. If a classroom has fewer computers than the previous one, they paint more than necessary.
The problem has arisen when including the layout of the classroom in the status: when it was painted in an old way there was an index that limited the number of computers, with the new layout of the classroom it takes all of those in the variable.
The variable is flushed every time the computers are collected.
|
|
|
|
|
| |
Fixes the error when there is a record with the string 'usuario' in the original database.
The SQL statement includes a stricter condition when modifying the 'usuario' table.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sometimes a software profile creation does not fail although there is
already an existing one with the same components.
After some investigation, the reason seems to be that legacy code
from ogAdmServer (deprecated) executes a SQL query using GROUP_CONCAT
grouping all software components id in increasing order but this
concatenated string ends up being truncated due to a maximul length
variable in MySQL server. This variable is: "group_concat_max_len" and
its default value is 1024.
Fix this by increasing group_concat max length in MySQL.
|
|
|
|
| |
introduced in commit 19528454b.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This bug was found by USAL and UPV. They reported that WebConsole was
showing scripts incompletely if they contain "=".
SocketHidra stores key-value pair as "<key>=<value>" string, and the
parser splits the string on "=" characters and pick the first two
elements. Thus, if the value also contains "=", the parser splits it and
only picks the first part.
Note: keys strings never contain "=".
With "scp=this=is=a=test" as example
BEFORE this commit the parser returns
"scp" as key
"this" as value
AFTER this commit the parser returns
"spc" as key
"this=is=a=test" as value
Limit legacy SocketHidra key-value split to two elements, key and value.
This commit also removes script decoding because WebConsole stores
them decoded since v1.2.0.
|
|
|
|
|
|
|
| |
If the clients API response included speed information, show it in the
default room view.
In case link speed is less than 1000 Mbit, highlight so.
|
|
|
|
|
| |
Otherwise, webconsole fails to fetch status of computers with ogAgent
when there are too many (100 approx.).
|
|
|
|
|
|
|
|
|
| |
Webconsole parses ogagent.log searching an IP without terminator
character. Thus, it takes entries with the selected IP and with IPs that
start as the selected IP. For example, if it searches for
10.1.30.10, it shows entries of 10.1.30.10, 10.1.30.100, 10.1.30.101...
Fix ogagent.log parser to only show entries of the selected IP.
|
|
|
|
|
|
| |
Adds ogServer wol state, used to report WoL packet sending. This state
can timeout (returning to off) or change to a new state after clients
report a new one.
|
|
|
|
|
|
|
|
|
|
| |
RemotePC API queues commands only inserting them in the database and
expects ogServer to find them and send them to its respective clients.
Since v1.2.0, ogServer do not seek the database periodically searching
for pending commands. Now ogServer expose an HTTP API to queue commands.
This commit adapts RemotePC API to use new ogServer queue API.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
poweroffconf is checking if the system is idle by doing a pgrep of
processes starting with "/opt/opengnsys/" and ignoring the ones
containing $OGETC or "poweroffconf".
ogclient process always falls under this process lookup thus making
the system seem as always active.
Ignore the ogclient process when checking if the system is not idle.
|
|
|
|
| |
versions name format.
|
|
|
|
|
| |
The choice of ogLive is commented for compatibility with the new version of ogClient.
The work directory name changes with the new versions name format.
|
| |
|
| |
|
|
|
|
| |
resolve'.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Commit afbfe2a introduced create_schedule_now for commands. Adapt
procedures and task to use it instead. Drop $when variable as it is no
longer needed for "immediate scheduling" execution of commands,
procedures or tasks.
Fixes: afbfe2a (Use create_schedule_now for immediate logged commands)
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid stale commands from being executed when given a time schedule that
include past dates, ie. when they are manually scheduled.
Use create_schedule_now for immediate execution commands (no manual
schedule) that the user want to be logged (by automatic scheduling to
the right moment they are processed).
Fixes #1032 (https://opengnsys.es/trac/ticket/1032#comment:2)
|