0742.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Convert A Cheap Barracuda Networks Device Into A Docker Host</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,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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Convert A Cheap Barracuda Networks Device Into A Docker Host">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="04/24/2022 08:21:06 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>Convert A Cheap Barracuda Networks Device Into A Docker Host</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>The Hardware</h2>
  26. <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>
  27. <h2>Things You Will Need</h2>
  28. <ul>
  29. <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>
  30. </ul>
  31. <h2>Preparing the Installation Media</h2>
  32. <ol>
  33. <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>
  34. <li>Download the Ventoy installer <a href="https://www.ventoy.net/en/download.html" target="_blank">Download</a></li>
  35. <li>Extract the downloaded .zip file</li>
  36. <li>Run Ventoy2Disk.exe</li>
  37. <li>Plug in a USB flash drive at least 4 GB in size</li>
  38. <li>Click the refresh icon</li>
  39. <li>Select the flash drive from the device dropdown</li>
  40. <li>Click the Install button</li>
  41. <li>After the installation completes, copy the downloaded Debian .iso to the Ventoy partition</li>
  42. <li>Safely remove the USB flash drive</li>
  43. <li>Plug the flash drive into the target Barracuda Networks device</li>
  44. </ol>
  45. <h2>Installation and Setup</h2>
  46. <ol>
  47. <li>Power on the Barracuda Networks device and start pressing Delete</li>
  48. <li>When prompted, enter <strong>BCNDK1</strong> as the BIOS password</li>
  49. <li>In the BIOS, reset the settings to defaults &gt; Save and exit</li>
  50. <li>Boot to the flash drive</li>
  51. <li>When the install dialog displays press Enter to select Graphical Install</li>
  52. <li>Select a language &gt; Click Continue</li>
  53. <li>Select a Location &gt; Click Continue</li>
  54. <li>Select a keyboard layout &gt; Click Continue</li>
  55. <li>Enter a hostname for the VM &gt; Click Continue</li>
  56. <li>Enter a Domain name or leave it empty &gt; Click Continue</li>
  57. <li>Enter and confirm a root password &gt; Click Continue</li>
  58. <li>Enter the full name for the new user &gt; Click Continue</li>
  59. <li>Enter the username for the new user &gt; Click Continue</li>
  60. <li>Enter and confirm a password for the new user &gt; Click Continue</li>
  61. <li>Select a timezone &gt; Click Continue</li>
  62. <li>Select Guided - user entire disk &gt; Click Continue</li>
  63. <li>Select the target disk &gt; Click Continue</li>
  64. <li>Select All files in one partition &gt; Click Continue</li>
  65. <li>Select Finish partitioning and write changes to disk &gt; Click Continue</li>
  66. <li>Select Yes to confirm writing the changes &gt; Click Continue</li>
  67. <li>Wait for Debian to copy and install files</li>
  68. <li>When prompted, select Yes to enable a network apt mirror &gt; Click Continue</li>
  69. <li>Select a country to use for the apt mirror &gt; Click Continue</li>
  70. <li>Select a mirror from the list &gt; Click Continue</li>
  71. <li>Setup a HTTP proxy if necessary &gt; Click Continue</li>
  72. <li>Select No to participating in package survey &gt; Click Continue</li>
  73. <li>Select the software to install &gt; Click Continue</li>
  74. <li>Select Yes to install GRUB &gt; Click Continue</li>
  75. <li>Select /dev/sda for the boot loader location &gt; Click Continue</li>
  76. <li>After the bootloader is installed select reboot to finish the installation</li>
  77. <li>Welcome to Debian 11</li>
  78. </ol>
  79. <h2>Installing Docker</h2>
  80. <ol>
  81. <li>Run the following commands in the terminal
  82. <div class="codeBlock"># install prerequisites<br />
  83. sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
  84. # add docker gpg key<br />
  85. 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 />
  86. # add docker software repository<br />
  87. 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 />
  88. # install docker<br />
  89. sudo apt install docker-ce docker-compose containerd.io -y<br />
  90. # enable and start docker service<br />
  91. sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
  92. # add the current user to the docker group<br />
  93. sudo usermod -aG docker $USER<br />
  94. # reauthenticate for the new group membership to take effect<br />
  95. su - $USER</div>
  96. </li>
  97. </ol>
  98. <h2>Running Portainer</h2>
  99. <ol>
  100. <li>Now that Docker is installed, run the following commands to setup the Portainer Docker container and run it
  101. <div class="codeBlock"># create working directories<br />
  102. mkdir ~/docker/portainer -p<br />
  103. # run the portainer docker container<br />
  104. 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>
  105. </li>
  106. <li>Once the Portainer container is downloaded and running, open a web browser and navigate to http://DNSorIP:9000</li>
  107. <li>Set an administrator username and password &gt; Click Create user</li>
  108. <li>Click the Docker - Manage the local Docker environment option &gt; Click Connect</li>
  109. </ol>
  110. <ol>
  111. </ol> </div>
  112. </div>
  113. </body>
  114. </html>