0962.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install MeshCentral - Remote Management Site - on Linux</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Remote Management,Web Based Utilities,Linux,Debian,Ubuntu,MeshCentral,Remote Computer Management,Computer Management,MeshCentral Installation Guide,How To Install MeshCentral,NodeJS,NPM,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install MeshCentral - Remote Management Site - on Linux">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="09/04/2024 08:17:33 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install MeshCentral - Remote Management Site - on Linux</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is MeshCentral?</h2>
  26. <blockquote><em>MeshCentral is a full computer management web site. With MeshCentral, you can run your own web server to remotely manage and control computers on a local network or anywhere on the internet. -<a href="https://github.com/Ylianst/MeshCentral" target="_blank">https://github.com/Ylianst/MeshCentral</a></em></blockquote>
  27. <h2>Installing NodeJS</h2>
  28. <ol>
  29. <li>Log into the Linux device</li>
  30. <li>Run the following commands in a terminal window
  31. <div class="codeBlock"># add nodejs software repository<br />
  32. curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -<br />
  33. # install nodejs<br />
  34. sudo apt install nodejs -y<br />
  35. # test node is working<br />
  36. node -v<br />
  37. # test npm is working<br />
  38. npm -v</div>
  39. </li>
  40. </ol>
  41. <h2>Installing MeshCentral</h2>
  42. <ol>
  43. <li>Continue with the following commands:
  44. <div class="codeBlock"># create a meshcentral folder<br />
  45. sudo mkdir /usr/local/bin/meshcentral<br />
  46. # change to the new directory<br />
  47. cd /usr/local/bin/meshcentral<br />
  48. # install meshcentral<br />
  49. sudo npm install meshcentral<br />
  50. # create a service file<br />
  51. sudo nano /etc/systemd/system/meshcentral.service</div>
  52. </li>
  53. <li>Paste the following configuration
  54. <p>[Unit]<br />
  55. Description=MeshCentral Server<br />
  56. <br />
  57. [Service]<br />
  58. Type=simple<br />
  59. LimitNOFILE=1000000<br />
  60. ExecStart=/usr/bin/node /usr/local/bin/meshcentral/node_modules/meshcentral<br />
  61. WorkingDirectory=/usr/local/bin/meshcentral<br />
  62. Environment=NODE_ENV=production<br />
  63. Restart=always<br />
  64. # Restart service after 10 seconds if node service crashes<br />
  65. RestartSec=10<br />
  66. # Set port permissions capability<br />
  67. AmbientCapabilities=cap_net_bind_service<br />
  68. <br />
  69. [Install]<br />
  70. WantedBy=multi-user.target</p>
  71. </li>
  72. <li>Press CTRL+O, Enter, CTRL+X to write the changes</li>
  73. <li>Continue with the following commands
  74. <div class="codeBlock"># reload services<br />
  75. sudo systemctl daemon-reload<br />
  76. # start and enable meshcentral service<br />
  77. sudo systemctl enable meshcentral.service --now</div>
  78. </li>
  79. <li>Open a web browser and navigate to https://DNSorIP</li>
  80. <li>Accept the certificate warning</li>
  81. <li>Click the link to create an account</li>
  82. <li>Complete the form by entering an username, email and password &gt; Click Create Account</li>
  83. <li>Welcome to MeshCentral</li>
  84. </ol>
  85. <p>Source: <a href="https://meshcentral.com/docs/MeshCentral2InstallGuide.pdf" target="_blank">https://meshcentral.com/docs/MeshCentral2InstallGuide.pdf</a></p> </div>
  86. </div>
  87. </body>
  88. </html>