Browse Source

0963: Run MeshCentral - Remote Management Site - in Docker

i12bretro 9 tháng trước cách đây
mục cha
commit
c5edea6557
1 tập tin đã thay đổi với 82 bổ sung0 xóa
  1. 82 0
      0963.html

+ 82 - 0
0963.html

@@ -0,0 +1,82 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Run MeshCentral - Remote Management Site - in Docker</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta charset="UTF-8">
+        <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Computer Management,Debian,How To Install MeshCentral,Linux,MeshCentral,MeshCentral Installation Guide,Remote Computer Management,Remote Management,Ubuntu,Web Based Utilities,Containerize,Containers,Docker,Docker Container,Docker Host,Docker How To,Docker Made Simple,Docker Setup Tutorial,Docker Simplified,How To,Tutorial,i12bretro">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Run MeshCentral - Remote Management Site - in Docker">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="09/04/2024 08:39:06 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>Run MeshCentral - Remote Management Site - in Docker</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 Docker</h2>
+
+<ol>
+	<li>Log into the Linux based device</li>
+	<li>Run the following commands in the terminal
+	<div class="codeBlock"># install prerequisites<br />
+	sudo apt install apt-transport-https ca-certificates git curl software-properties-common gnupg-agent -y<br />
+	# add docker gpg key<br />
+	curl -fsSL https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release)/gpg | sudo apt-key add -<br />
+	# add docker software repository<br />
+	sudo add-apt-repository &quot;deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release) $(lsb_release -cs) stable&quot;<br />
+	# install docker<br />
+	sudo apt install docker-ce docker-compose containerd.io -y<br />
+	# enable and start docker service<br />
+	sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
+	# add the current user to the docker group<br />
+	sudo usermod -aG docker $USER<br />
+	# reauthenticate for the new group membership to take effect<br />
+	su - $USER</div>
+	</li>
+</ol>
+
+<h2>Running MeshCentral</h2>
+
+<ol>
+	<li>Now that Docker is installed, run the following commands to setup the MeshCentral Docker container and run it
+	<div class="codeBlock"># create working directories<br />
+	mkdir ~/docker/meshcentral/{data,user_files} -p &amp;&amp; mkdir ~/docker/mongodb -p<br />
+	# set owner of working directories<br />
+	sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
+	# create docker network<br />
+	docker network create containers<br />
+	# run mongodb container<br />
+	docker run -d --name=mongodb --network containers -v ~/docker/mongodb:/data/db --restart=unless-stopped mongo<br />
+	# run meshcentral container<br />
+	# update the HOSTNAME variable<br />
+	docker run -d --name=meshcentral --network containers -p 8086:443 -e HOSTNAME=ubuntuserver.local -e REVERSE_PROXY=false -e IFRAME=false -e ALLOW_NEW_ACCOUNTS=false -e WEBRTC=false -e NODE_ENV=production -v ~/docker/meshcentral/data:/opt/meshcentral/meshcentral-data -v ~/docker/meshcentral/user_files:/opt/meshcentral/meshcentral-files --restart=unless-stopped typhonragewind/meshcentral:mongodb-latest<br />
+	# update the config file<br />
+	sed -Ei &#39;s/(&quot;NewAccounts&quot;: &quot;false&quot;,)/&quot;NewAccounts&quot;: &quot;false&quot;,\n\t&quot;allowedOrigin&quot;: true,/&#39; ~/docker/meshcentral/data/config.json<br />
+	# restart the container<br />
+	docker restart meshcentral</div>
+	</li>
+	<li>Open a web browser and navigate to https://DNSorIP:8086</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 &gt; Click Create Account</li>
+	<li>Welcome to MeshCentral running in Docker</li>
+</ol>
+
+<p>Source: <a href="https://github.com/Typhonragewind/meshcentral-docker" target="_blank">https://github.com/Typhonragewind/meshcentral-docker</a></p>          </div>
+        </div>
+      </body>
+    </html>
+