|
@@ -0,0 +1,95 @@
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <title>Install MeshCentral - Remote Management Site - on Linux</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <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">
|
|
|
+ <meta name="author" content="i12bretro">
|
|
|
+ <meta name="description" content="Install MeshCentral - Remote Management Site - on Linux">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta name="revised" content="09/04/2024 08:17:33 PM" />
|
|
|
+ <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
|
|
|
+ <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
|
+ <script type="text/javascript" src="includes/js/steps.js"></script>
|
|
|
+ <link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="gridContainer">
|
|
|
+ <div class="topMargin"></div>
|
|
|
+ <div id="listName" class="topMargin">
|
|
|
+ <h1>Install MeshCentral - Remote Management Site - on Linux</h1>
|
|
|
+ </div>
|
|
|
+ <div></div>
|
|
|
+ <div id="content">
|
|
|
+ <h2>What is MeshCentral?</h2>
|
|
|
+
|
|
|
+<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>
|
|
|
+
|
|
|
+<h2>Installing NodeJS</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Log into the Linux device</li>
|
|
|
+ <li>Run the following commands in a terminal window
|
|
|
+ <div class="codeBlock"># add nodejs software repository<br />
|
|
|
+ curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -<br />
|
|
|
+ # install nodejs<br />
|
|
|
+ sudo apt install nodejs -y<br />
|
|
|
+ # test node is working<br />
|
|
|
+ node -v<br />
|
|
|
+ # test npm is working<br />
|
|
|
+ npm -v</div>
|
|
|
+ </li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<h2>Installing MeshCentral</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Continue with the following commands:
|
|
|
+ <div class="codeBlock"># create a meshcentral folder<br />
|
|
|
+ sudo mkdir /usr/local/bin/meshcentral<br />
|
|
|
+ # change to the new directory<br />
|
|
|
+ cd /usr/local/bin/meshcentral<br />
|
|
|
+ # install meshcentral<br />
|
|
|
+ sudo npm install meshcentral<br />
|
|
|
+ # create a service file<br />
|
|
|
+ sudo nano /etc/systemd/system/meshcentral.service</div>
|
|
|
+ </li>
|
|
|
+ <li>Paste the following configuration
|
|
|
+ <p>[Unit]<br />
|
|
|
+ Description=MeshCentral Server<br />
|
|
|
+ <br />
|
|
|
+ [Service]<br />
|
|
|
+ Type=simple<br />
|
|
|
+ LimitNOFILE=1000000<br />
|
|
|
+ ExecStart=/usr/bin/node /usr/local/bin/meshcentral/node_modules/meshcentral<br />
|
|
|
+ WorkingDirectory=/usr/local/bin/meshcentral<br />
|
|
|
+ Environment=NODE_ENV=production<br />
|
|
|
+ Restart=always<br />
|
|
|
+ # Restart service after 10 seconds if node service crashes<br />
|
|
|
+ RestartSec=10<br />
|
|
|
+ # Set port permissions capability<br />
|
|
|
+ AmbientCapabilities=cap_net_bind_service<br />
|
|
|
+ <br />
|
|
|
+ [Install]<br />
|
|
|
+ WantedBy=multi-user.target</p>
|
|
|
+ </li>
|
|
|
+ <li>Press CTRL+O, Enter, CTRL+X to write the changes</li>
|
|
|
+ <li>Continue with the following commands
|
|
|
+ <div class="codeBlock"># reload services<br />
|
|
|
+ sudo systemctl daemon-reload<br />
|
|
|
+ # start and enable meshcentral service<br />
|
|
|
+ sudo systemctl enable meshcentral.service --now</div>
|
|
|
+ </li>
|
|
|
+ <li>Open a web browser and navigate to https://DNSorIP</li>
|
|
|
+ <li>Accept the certificate warning</li>
|
|
|
+ <li>Click the link to create an account</li>
|
|
|
+ <li>Complete the form by entering an username, email and password > Click Create Account</li>
|
|
|
+ <li>Welcome to MeshCentral</li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<p>Source: <a href="https://meshcentral.com/docs/MeshCentral2InstallGuide.pdf" target="_blank">https://meshcentral.com/docs/MeshCentral2InstallGuide.pdf</a></p> </div>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+
|