Installazione MeshCentral su Ubuntu 22.04LTS

Installazione, configurazione e uso di programmi e strumenti.
sps
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1101
Iscrizione: martedì 2 marzo 2010, 18:08

Installazione MeshCentral su Ubuntu 22.04LTS

Messaggio da sps »

Voglio installare MeshCentral su Ubuntu 22.04LTS per il controllo remoto della macchina.

Ho seguito la guida trovata qui ma quando lancio MeshCentral per la prima volta sembra che qualcosa non funzioni bene:

Codice: Seleziona tutto

$ node ./node_modules/meshcentral
WARNING: MeshCentral will require Node v16 or above in the future, your current version is v12.22.9.
MeshCentral HTTP redirection server running on port 80.
MeshCentral v1.1.22, LAN mode.
ERR: /home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Error: Command failed: /usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191
/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at ChildProcess.exithandler (child_process.js:308:12)                                 
    at ChildProcess.emit (events.js:326:22)
    at maybeClose (internal/child_process.js:1022:16)                                     
    at Socket.<anonymous> (internal/child_process.js:444:11)                              
    at Socket.emit (events.js:314:20)
    at Pipe.<anonymous> (net.js:676:12) {
  killed: false,
  code: 1,
  signal: null,
  cmd: '/usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191'  
}
ERROR: MeshCentral failed with critical error, check mesherrors.txt. Restarting in 5 seconds...
WARNING: MeshCentral will require Node v16 or above in the future, your current version is v12.22.9.
MeshCentral HTTP redirection server running on port 80.
MeshCentral v1.1.22, LAN mode.
ERR: /home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Error: Command failed: /usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191
/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at ChildProcess.exithandler (child_process.js:308:12)                                 
    at ChildProcess.emit (events.js:326:22)
    at maybeClose (internal/child_process.js:1022:16)                                     
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {            
  killed: false,
  code: 1,
  signal: null,
  cmd: '/usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191'  
}
ERROR: MeshCentral failed with critical error, check mesherrors.txt. Restarting in 5 seconds...
WARNING: MeshCentral will require Node v16 or above in the future, your current version is v12.22.9.
MeshCentral HTTP redirection server running on port 80.
MeshCentral v1.1.22, LAN mode.
ERR: /home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Error: Command failed: /usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191
/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at ChildProcess.exithandler (child_process.js:308:12)                                 
    at ChildProcess.emit (events.js:326:22)
    at maybeClose (internal/child_process.js:1022:16)                                     
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {            
  killed: false,
  code: 1,
  signal: null,
  cmd: '/usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191'  
}
ERROR: MeshCentral failed with critical error, check mesherrors.txt. Restarting in 5 seconds...
WARNING: MeshCentral will require Node v16 or above in the future, your current version is v12.22.9.
MeshCentral HTTP redirection server running on port 80.
MeshCentral v1.1.22, LAN mode.
ERR: /home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Error: Command failed: /usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191
/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at ChildProcess.exithandler (child_process.js:308:12)                                 
    at ChildProcess.emit (events.js:326:22)
    at maybeClose (internal/child_process.js:1022:16)                                     
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {            
  killed: false,
  code: 1,
  signal: null,
  cmd: '/usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191'  
}
ERROR: MeshCentral failed with critical error, check mesherrors.txt. Restarting in 5 seconds...
WARNING: MeshCentral will require Node v16 or above in the future, your current version is v12.22.9.
MeshCentral HTTP redirection server running on port 80.
MeshCentral v1.1.22, LAN mode.
ERR: /home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Error: Command failed: /usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191
/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at ChildProcess.exithandler (child_process.js:308:12)                                 
    at ChildProcess.emit (events.js:326:22)
    at maybeClose (internal/child_process.js:1022:16)                                     
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {            
  killed: false,
  code: 1,
  signal: null,
  cmd: '/usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191'  
}
ERROR: MeshCentral failed with critical error, check mesherrors.txt. Restarting in 5 seconds...
WARNING: MeshCentral will require Node v16 or above in the future, your current version is v12.22.9.
MeshCentral HTTP redirection server running on port 80.
MeshCentral v1.1.22, LAN mode.
ERR: /home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Error: Command failed: /usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191
/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/ast.js:86
    #fillNegs() {
             ^

SyntaxError: Unexpected token '('
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/sps/MeshCentral/node_modules/minimatch/dist/commonjs/index.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at ChildProcess.exithandler (child_process.js:308:12)                                 
    at ChildProcess.emit (events.js:326:22)
    at maybeClose (internal/child_process.js:1022:16)                                     
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {            
  killed: false,
  code: 1,
  signal: null,
  cmd: '/usr/bin/node /home/sps/MeshCentral/node_modules/meshcentral --launch 15191'  
}
ERROR: MeshCentral failed with critical error, check mesherrors.txt. Restarting in 5 seconds...
^CServer Ctrl-C exit...
Aprendo una pagina di browser con

Codice: Seleziona tutto

http://localhost
dice che c'è un errore

Ho saltato l'installazione di MongoDB perché devo gestire molte meno macchine di 100

Qual è esattamente il problema?
Viva l'Italia unita!!
caturen
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17979
Iscrizione: giovedì 8 aprile 2010, 18:41
Desktop: diversi
Distribuzione: debian

Re: Installazione MeshCentral su Ubuntu 22.04LTS

Messaggio da caturen »

sps
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1101
Iscrizione: martedì 2 marzo 2010, 18:08

Re: Installazione MeshCentral su Ubuntu 22.04LTS

Messaggio da sps »

Ho risolto i problemi precedenti di installazione e quindi sono in grado di avviare MeshCentral ma c'è ancora un problema che pregiudica il funzionamento.

Ho generato un software agente per un computer Windows. L'ho installato correttamente sul computer Windows e mi collego ad esso attraverso la pagina di accesso del browser web di MeshCentral. Tutto sembra essere a posto.

Poi ho voluto condividere questa macchina con un guest remoto esterno. Ho fatto clic sul pulsante 'Condividi' nella GUI di MeshCentral del computer specifico, ho impostato l'opzione relativa e ho ottenuto il link.
Ho condiviso il link ma non funziona. Ho controllato il link ed è come: https://localhost/sharing....

Non può funzionare perché non si connette in remoto, ma è solo un collegamento all'host locale. Ho provato diverse opzioni ma niente, sempre lo stesso: tutti i link generati iniziano con https://localhost/sharing....

Quindi, condividendo il link attraverso il web, un mio amico non può connettersi alla macchina remota: ma devo aver un link pubblico, non uno per il local host

Dov'è il problema? Ho sbagliato qualche impostazione?

Questi sono i messaggi su terminale:

Codice: Seleziona tutto

MeshCentral HTTP redirection server running on port 80.

Generating certificates, may take a few minutes...

Generating root certificate...

Generating HTTPS certificate...

Generating MeshAgent certificate...

Generating code signing certificate...

Generating Intel AMT MPS certificate...

MeshCentral v1.1.22, LAN mode.

Code signed MeshService.exe.

Code signed MeshCmdARM64.exe.

Code signed MeshCmd.exe.

Code signed MeshService64.exe.

Code signed MeshCmd64.exe.

Code signed MeshServiceARM64.exe.

Server has no users, next new account will be site administrator.

MeshCentral HTTPS server running on port 443.

Ubuntu 22.04LTS

$npm -v

10.5.0

$node -v

v20.12.2

Mesh Agent Windows 64bit service

Operating System Microsoft Windows 10 Home 
Viva l'Italia unita!!
sps
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1101
Iscrizione: martedì 2 marzo 2010, 18:08

Re: Installazione MeshCentral su Ubuntu 22.04LTS

Messaggio da sps »

Nessuno sa darmi un suggerimento?
Viva l'Italia unita!!
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: fla.odo e 13 ospiti