2021-12-22 19:50:52 +01:00
2021-12-22 19:50:52 +01:00
2021-12-10 11:29:34 +01:00
2021-12-10 11:28:25 +01:00
2021-12-22 11:36:32 +01:00
2021-12-10 11:28:25 +01:00
2021-12-22 19:50:52 +01:00
2021-12-10 18:03:15 +01:00
2021-12-22 11:36:32 +01:00

RemoteSupport

GLPI Plugin for direct VNC connection from browser inside computer from server and update status of online computers, it checks computer with go program in glpi cron and with fusion inventory agent...

This Plugin add a simple button inside computer:

immagine

If user is correctly connected to one or more computer it will launch a VNC connection using the computer name

  • Prerequisites
  1. VNC Must be installed in the destination PC
  2. Fusion inventory must be installed on server with GLPI
  3. Agent must be installed on remote PC
  4. Easy noVNC must be installed on server with GLPI

clone it and build binnary with make, edit Makefile in remotesupport plugin and build with make

Create systemd unit file:

[Unit]
Description=Easy NoVNC

[Service]
ExecStart=/usr/local/bin/easy-novnc -a :8888 -H -P

[Install]
WantedBy=multi-user.target

It will listen on 8888 port on local host.

Secure connection to server if you want, some ports are hardcoded in current status of plugin

<IfModule mod_ssl.c>
<VirtualHost *:443>
  RewriteEngine On
  ProxyPreserveHost On
  ProxyRequests Off

  # allow for upgrading to websockets
  RewriteEngine On
  RewriteCond %{HTTP:Upgrade} =websocket [NC]
  RewriteRule /(.*)           ws://localhost:8888/$1 [P,L]
  RewriteCond %{HTTP:Upgrade} !=websocket [NC]
  RewriteRule /glpi/(.*)           http://localhost/glpi/$1 [P,L]
  RewriteCond %{HTTP:Upgrade} !=websocket [NC]
  RewriteRule /(.*)           http://localhost:8888/$1 [P,L]

  ProxyPass "/" "http://localhost:8888/"
  ProxyPassReverse "/" "http://localhost:8888/"

  ProxyPass "/glpi/" "http://localhost/glpi/"
  ProxyPassReverse "/glpi/" "http://localhost/glpi/"

  ProxyPass "/vnc" "ws://localhost:8888/vnc"
  ProxyPassReverse "/vnc" "ws://localhost:8888/vnc


  ServerName server.name.lan

SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

</VirtualHost>
</IfModule>
Description
GLPI plugin for VNC connect
Readme 4.4 MiB
Languages
PHP 85.6%
Go 13.4%
Makefile 1%