|
@@ -0,0 +1,127 @@
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <title>Convert A Cheap Barracuda Networks Device Into A Docker Host</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,Raspberry Pi Alternative,Self-Hosted,Command Line,Container,Containerization,Debian,Docker,Docker Host,Docker How To,CLI,Install Docker Host,Docker Tutorial,Docker Simplified,How To Setup Docker On Debian,How To Install Docker On Debian,Web Based Tools,Web Based,Linux,Barracuda Networks,Docker Installation Tutorial,How To,Tutorial,i12bretro">
|
|
|
+ <meta name="author" content="i12bretro">
|
|
|
+ <meta name="description" content="Convert A Cheap Barracuda Networks Device Into A Docker Host">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta name="revised" content="04/24/2022 08:21: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>Convert A Cheap Barracuda Networks Device Into A Docker Host</h1>
|
|
|
+ </div>
|
|
|
+ <div></div>
|
|
|
+ <div id="content">
|
|
|
+ <h2>The Hardware</h2>
|
|
|
+
|
|
|
+<p>The device I used in this video is a Barracuda Networks BFS200a I picked up used for about $25. It sports a 2 core/4 thread Intel Atom D525 @ 1.80 GHz. I upgraded the 1GB of DDR3 to 4GB and replaced the 250 GB HDD with a 32GB SATA SSD.</p>
|
|
|
+
|
|
|
+<h2>Things You Will Need</h2>
|
|
|
+
|
|
|
+<ul>
|
|
|
+ <li>A USB flash drive, at least 8 GB <a href="https://amzn.to/3wkR5ju" target="_blank">https://amzn.to/3wkR5ju</a> | <a href="https://amzn.to/3qkrJ1p" target="_blank">https://amzn.to/3qkrJ1p</a> | <a href="https://amzn.to/3Nhu9b9" target="_blank">https://amzn.to/3Nhu9b9</a></li>
|
|
|
+</ul>
|
|
|
+
|
|
|
+<h2>Preparing the Installation Media</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Download the Debian .iso file <a href="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.3.0-amd64-netinst.iso" target="_blank">Download</a></li>
|
|
|
+ <li>Download the Ventoy installer <a href="https://www.ventoy.net/en/download.html" target="_blank">Download</a></li>
|
|
|
+ <li>Extract the downloaded .zip file</li>
|
|
|
+ <li>Run Ventoy2Disk.exe</li>
|
|
|
+ <li>Plug in a USB flash drive at least 4 GB in size</li>
|
|
|
+ <li>Click the refresh icon</li>
|
|
|
+ <li>Select the flash drive from the device dropdown</li>
|
|
|
+ <li>Click the Install button</li>
|
|
|
+ <li>After the installation completes, copy the downloaded Debian .iso to the Ventoy partition</li>
|
|
|
+ <li>Safely remove the USB flash drive</li>
|
|
|
+ <li>Plug the flash drive into the target Barracuda Networks device</li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<h2>Installation and Setup</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Power on the Barracuda Networks device and start pressing Delete</li>
|
|
|
+ <li>When prompted, enter <strong>BCNDK1</strong> as the BIOS password</li>
|
|
|
+ <li>In the BIOS, reset the settings to defaults > Save and exit</li>
|
|
|
+ <li>Boot to the flash drive</li>
|
|
|
+ <li>When the install dialog displays press Enter to select Graphical Install</li>
|
|
|
+ <li>Select a language > Click Continue</li>
|
|
|
+ <li>Select a Location > Click Continue</li>
|
|
|
+ <li>Select a keyboard layout > Click Continue</li>
|
|
|
+ <li>Enter a hostname for the VM > Click Continue</li>
|
|
|
+ <li>Enter a Domain name or leave it empty > Click Continue</li>
|
|
|
+ <li>Enter and confirm a root password > Click Continue</li>
|
|
|
+ <li>Enter the full name for the new user > Click Continue</li>
|
|
|
+ <li>Enter the username for the new user > Click Continue</li>
|
|
|
+ <li>Enter and confirm a password for the new user > Click Continue</li>
|
|
|
+ <li>Select a timezone > Click Continue</li>
|
|
|
+ <li>Select Guided - user entire disk > Click Continue</li>
|
|
|
+ <li>Select the target disk > Click Continue</li>
|
|
|
+ <li>Select All files in one partition > Click Continue</li>
|
|
|
+ <li>Select Finish partitioning and write changes to disk > Click Continue</li>
|
|
|
+ <li>Select Yes to confirm writing the changes > Click Continue</li>
|
|
|
+ <li>Wait for Debian to copy and install files</li>
|
|
|
+ <li>When prompted, select Yes to enable a network apt mirror > Click Continue</li>
|
|
|
+ <li>Select a country to use for the apt mirror > Click Continue</li>
|
|
|
+ <li>Select a mirror from the list > Click Continue</li>
|
|
|
+ <li>Setup a HTTP proxy if necessary > Click Continue</li>
|
|
|
+ <li>Select No to participating in package survey > Click Continue</li>
|
|
|
+ <li>Select the software to install > Click Continue</li>
|
|
|
+ <li>Select Yes to install GRUB > Click Continue</li>
|
|
|
+ <li>Select /dev/sda for the boot loader location > Click Continue</li>
|
|
|
+ <li>After the bootloader is installed select reboot to finish the installation</li>
|
|
|
+ <li>Welcome to Debian 11</li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<h2>Installing Docker</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Run the following commands in the terminal
|
|
|
+ <div class="codeBlock"># install prerequisites<br />
|
|
|
+ sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
|
|
|
+ # add docker gpg key<br />
|
|
|
+ curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -<br />
|
|
|
+ # add docker software repository<br />
|
|
|
+ sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"<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 && 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 Portainer</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Now that Docker is installed, run the following commands to setup the Portainer Docker container and run it
|
|
|
+ <div class="codeBlock"># create working directories<br />
|
|
|
+ mkdir ~/docker/portainer -p<br />
|
|
|
+ # run the portainer docker container<br />
|
|
|
+ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v ~/docker/portainer:/data portainer/portainer-ce</div>
|
|
|
+ </li>
|
|
|
+ <li>Once the Portainer container is downloaded and running, open a web browser and navigate to http://DNSorIP:9000</li>
|
|
|
+ <li>Set an administrator username and password > Click Create user</li>
|
|
|
+ <li>Click the Docker - Manage the local Docker environment option > Click Connect</li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<ol>
|
|
|
+</ol> </div>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+
|