Uploaded June 2023 | Updated November 2026, 3 hours ago
#VMwarevSphere #SSL #PKI
Full steps can be found at i12bretro.github.io/tutorials/0418.html
--------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------
- A XCA PKI database youtu.be/ezzj3x207lQ
--------------------------------------------------------------------
Create Your SSL Certificate
--------------------------------------------------------------------
01. Launch XCA
02. Open the PKI database if it is not already (File ≫ Open DataBase), enter password
03. Click on the Certificates tab, right click on your Intermediate CA certificate
04. Select New
05. On the Source tab, make sure Use this Certificate for signing is selected
06. Verify your Intermediate CA certificate is selected from the drop down
07. Click the Subject tab
08. Complete the Distinguished Name section
internalName: esxi.i12bretro.local
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: esxi.i12bretro.local
09. Click the Generate a New Key button
10. Enter a name and set the key size to at least 2048
11. Click Create
12. Click on the Extensions tab
13. Select End Entity from the type list
14. Click Edit next to Subject Alternative Name
15. Add any DNS or IP addresses that the certificate will identify
16. Update the validity dates to fit your needs
17. Click the Key Usage tab
18. Under Key Usage select Digital Signature, Key Encipherment
19. Under Extended Key Usage select Web Server and Web Client Authentication
20. Click the Netscape tab
21. Select SSL Server
22. Click OK to create the certificate
--------------------------------------------------------------------
Exporting Required Files
--------------------------------------------------------------------
01. In XCA, click on the Certificates tab
02. Right click the SSL certificate ≫ Export ≫ File
03. Set the file name to rui.crt verify the export format is PEM (*.crt)
04. Click OK
05. Click the Private Keys tab
06. Right click the private key generated for the SSL certificate ≫ Export ≫ File
07. Set the file name to rui.key and verify the export format is PEM private (*.pem)
08. Click OK
--------------------------------------------------------------------
Applying SSL Certificates in VMware vSphere
--------------------------------------------------------------------
01. Open a web browser and navigate to the VMware vSphere web UI
02. Authenticate at the VMware ESXi login
03. Select Actions ≫ Services ≫ Enable Secure Shell (SSH)
04. Download WinSCP winscp.net/eng/downloads.php
05. Extract WinSCP and run the executable
06. Connect to the VMware vSphere server IP via WinSCP
07. Login with the root user account
08. Navigate to /etc/vmware/ssl
09. Rename rui.crt to rui.crt.orig
10. Rename rui.key to rui.key.orig
11. Copy the exported rui.crt and rui.key to the VMware vSphere host /etc/vmware/ssl
12. Back in the web UI select Action ≫ Services Disable Secure Shell (SSH)
13. Click Actions ≫ Reboot and Reboot again to confirm
14. When the ESXi host comes back up the new SSL certificates will be used
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#VMwarevSphere #SSL #PKI
Full steps can be found at i12bretro.github.io/tutorials/0418.html
--------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------
- A XCA PKI database youtu.be/ezzj3x207lQ
--------------------------------------------------------------------
Create Your SSL Certificate
--------------------------------------------------------------------
01. Launch XCA
02. Open the PKI database if it is not already (File ≫ Open DataBase), enter password
03. Click on the Certificates tab, right click on your Intermediate CA certificate
04. Select New
05. On the Source tab, make sure Use this Certificate for signing is selected
06. Verify your Intermediate CA certificate is selected from the drop down
07. Click the Subject tab
08. Complete the Distinguished Name section
internalName: esxi.i12bretro.local
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: esxi.i12bretro.local
09. Click the Generate a New Key button
10. Enter a name and set the key size to at least 2048
11. Click Create
12. Click on the Extensions tab
13. Select End Entity from the type list
14. Click Edit next to Subject Alternative Name
15. Add any DNS or IP addresses that the certificate will identify
16. Update the validity dates to fit your needs
17. Click the Key Usage tab
18. Under Key Usage select Digital Signature, Key Encipherment
19. Under Extended Key Usage select Web Server and Web Client Authentication
20. Click the Netscape tab
21. Select SSL Server
22. Click OK to create the certificate
--------------------------------------------------------------------
Exporting Required Files
--------------------------------------------------------------------
01. In XCA, click on the Certificates tab
02. Right click the SSL certificate ≫ Export ≫ File
03. Set the file name to rui.crt verify the export format is PEM (*.crt)
04. Click OK
05. Click the Private Keys tab
06. Right click the private key generated for the SSL certificate ≫ Export ≫ File
07. Set the file name to rui.key and verify the export format is PEM private (*.pem)
08. Click OK
--------------------------------------------------------------------
Applying SSL Certificates in VMware vSphere
--------------------------------------------------------------------
01. Open a web browser and navigate to the VMware vSphere web UI
02. Authenticate at the VMware ESXi login
03. Select Actions ≫ Services ≫ Enable Secure Shell (SSH)
04. Download WinSCP winscp.net/eng/downloads.php
05. Extract WinSCP and run the executable
06. Connect to the VMware vSphere server IP via WinSCP
07. Login with the root user account
08. Navigate to /etc/vmware/ssl
09. Rename rui.crt to rui.crt.orig
10. Rename rui.key to rui.key.orig
11. Copy the exported rui.crt and rui.key to the VMware vSphere host /etc/vmware/ssl
12. Back in the web UI select Action ≫ Services Disable Secure Shell (SSH)
13. Click Actions ≫ Reboot and Reboot again to confirm
14. When the ESXi host comes back up the new SSL certificates will be used
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro


![Run FreshRSS - RSS Feed Aggregator - in Docker
#FreshRSS #RSS #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0237.html
What is FreshRSS?
FreshRSS is a self-hosted RSS feed aggregator. It is lightweight, easy to work with, powerful, and customizable. - https://github.com/FreshRSS/FreshRSS
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
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
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running FreshRSS
01. Now that Docker is installed, run the following commands to setup the FreshRSS Docker container and run it
# create working directories
mkdir ~/docker/mariadb -p && mkdir ~/docker/freshrss/{data,extensions} -p
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# create containers network
docker network create containers
# run the mariadb docker container
docker run -d name mariadb network containers network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=freshrss_rw -e MYSQL_PASSWORD=Fr3shRSS! -e MYSQL_DATABASE=freshrss -v /home/$USER/docker/mariadb:/var/lib/mysql restart=unless-stopped mariadb:latest
# run the freshrss docker container
docker run -d name freshrss network containers -p 8089:80 -e CRON_MIN=1,31 -e TZ=America/New_York -v ~/docker/freshrss/data:/var/www/FreshRSS/data -v ~/docker/freshrss/extensions:/var/www/FreshRSS/extensions restart=unless-stopped freshrss/freshrss
02. Open a web browser and navigate to http://DNSorIP:8089
03. Select a Language ≫ Click Submit
04. Click the Go to the next step button
05. Complete the database configuration form as follows
Type of database: MySQL
Host: mariadb
Database username: freshrss_rw
Database password: Fr3shRSS!
Database: freshrss
Table prefix:
06. Click the Go to the next step button
07. Enter a username and password ≫ Click Submit
08. Click the Complete Installation button
09. Login with the username and password created earlier
10. Welcome to FreshRSS
Documentation: https://hub.docker.com/r/freshrss/freshrss
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run FreshRSS - RSS Feed Aggregator - in Docker](https://i.ytimg.com/vi/MOF0SfFp3zs/mqdefault.jpg)

![Install LibreNMS on Debian/Ubuntu
#LibreNMS #NetworkMonitoring #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0415.html
01. Log into the Debian device
02. Run the following commands in a terminal:
# update software repositories
sudo apt update
# install software updates
sudo apt upgrade -y
# install pre-requisites
sudo apt install acl curl composer fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nmap rrdtool snmp snmpd whois unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-systemd python3-pip -y
# install Apache and MySQL
sudo apt install apache2 libapache2-mod-fcgid mariadb-server mariadb-client -y
# install PHP components
sudo apt install php7.3-cli php7.3-curl php7.3-fpm php7.3-gd php7.3-json php7.3-mbstring php7.3-mysql php7.3-snmp php7.3-xml php7.3-zip -y
# create librenms user
sudo useradd librenms -d /opt/librenms -M -r -s $(which bash)
# clone librenms github repo
sudo git clone https://github.com/librenms/librenms.git /opt/librenms
# set permissions
sudo chown -R librenms:librenms /opt/librenms
sudo chmod 771 /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
# install composer dependencies
sudo su - librenms
./scripts/composer_wrapper.php install no-dev
exit
# set time zone for PHP fpm
sudo nano /etc/php/7.3/fpm/php.ini
03. Press CTRL+W to search ≫ type timezone ≫ Press Enter
04. Remove the ; to uncomment the line
05. Type in a valid timezone (https://php.net/manual/en/timezones.php)
06. Press CTRL+O, Enter, CTRL+X to write the changes to php.ini
07. Continue with the following commands in a terminal:
# set time zone for PHP cli
sudo nano /etc/php/7.3/cli/php.ini
08. Press CTRL+W to search ≫ type timezone ≫ Press Enter
09. Remove the ; to uncomment the line
10. Type in a valid timezone (https://php.net/manual/en/timezones.php)
11. Press CTRL+O, Enter, CTRL+X to write the changes to php.ini
12. Continue with the following commands in a terminal:
13. # set system time zone
sudo timedatectl set-timezone America/New_York
# edit mariaDB configuration
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
14. Paste the following under the [mysqld] section
innodb_file_per_table=1
lower_case_table_names=0
15. Press CTRL+O, Enter, CTRL+X to write the changes to 50-server.cnf
16. Continue with the following commands in a terminal:
# restart mariadb service
sudo systemctl restart mariadb
# configure the MySQL database
sudo su
mysql_secure_installation
17. Press Enter to login as root
18. Type Y and press Enter to set a root password, type the password twice to confirm
19. Type Y and press Enter to remove anonymous users
20. Type Y and press Enter to disallow root login remotely
21. Type Y and press Enter to remove the test database
22. Type Y and press Enter to reload privilege tables
23. Run the following command to login into MySQL:
mysql -u root -p
24. Authenticate with the root password set earlier
25. Run the following commands to create the LibreNMS database and database user
CREATE DATABASE librenms CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER librenms_rw@localhost IDENTIFIED BY Libr3NM$!;
GRANT ALL PRIVILEGES ON librenms.* TO librenms_rw@localhost;
FLUSH PRIVILEGES;
EXIT;
exit
26. Continue with the following commands:
# make a copy of www.conf
sudo cp /etc/php/7.3/fpm/pool.d/www.conf /etc/php/7.3/fpm/pool.d/librenms.conf
# edit librenms.conf
sudo nano /etc/php/7.3/fpm/pool.d/librenms.conf
27. Replace [www] with [librenms]
28. Change the user and group to librenms
user = librenms
group = librenms
29. Change the listen to php-fpm-librenms.sock
listen = /run/php-fpm-librenms.sock
30. Press CTRL+O, Enter, CTRL+X to write the changes to librenms.conf
31. Continue with the following commands:
# create librenms apache conf
sudo nano /etc/apache2/sites-available/librenms.conf
32. Paste the following configuration into librenms.vhost
≪VirtualHost *:80≫
DocumentRoot /opt/librenms/html/
#ServerName librenms.example.com
....Full steps can be found on GitHub [link at the top]
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Install LibreNMS on Debian/Ubuntu](https://i.ytimg.com/vi/NYN1S73ST5M/mqdefault.jpg)
![Update Microsoft Surface RT Tablet to Windows 10 [Unofficial Upgrade]
#SurfaceRT #Windows10
*** Updated 01/20/2024
Full steps can be found at https://i12bretro.github.io/tutorials/0824.html
Disclaimer
Windows 10 Build 15035 is now [over] five years old and it should not be considered as suitable for daily use. In addition to being outdated, it has numerous bugs and other issues expected of an expired pre-release build. - https://jwa4.gitbook.io/windows/tools/windows-media-builder
This process will overwrite the current Windows 8 RT operating system on the Surface RT tablet. I have tested these steps on my own device (as shown in this video), but I am not responsible if you damage or brick your device. Verify this process will work on your device before starting and make sure to backup any data you do not want to lose before proceeding.
Things You Will Need
- A USB flash drive, at least 8 GB https://amzn.to/3wkR5ju | https://amzn.to/3qkrJ1p | https://amzn.to/3Nhu9b9
- A x86/x64 PC with ~50 GB of free disk space to create the installation media
Creating the Installation Media
💡 NOTE: These steps must be completed on a separate x86/x64 based PC and cannot be done from the Surface RT tablet
01. Insert the USB flash drive into the PC and note the drive letter assigned to it
02. Download the Windows 10 Media Builder https://archive.org/download/windows-rt-device-tools/
03. Extract the downloaded Windows 10 Media Builder .zip file to the root of the c: drive
04. Navigate into the extracted folder ≫ Right click Build.cmd ≫ Run as administrator
05. In the Windows Media Builder application, type the number that corresponds to the target hardware in the list ≫ Press Enter
06. Read the notes displayed ≫ type Y and press Enter to continue
07. Choose to install the app pack by entering Y or N ≫ Press Enter
a. If the app pack is not being installed, Choose to uninstall provisioned apps by entering Y or N ≫ Press Enter
09. Choose to uninstall BitLocker by entering Y or N ≫ Press Enter
10. Choose to uninstall Cortana by entering Y or N ≫ Press Enter
11. Choose to uninstall Windows Defender by entering Y or N ≫ Press Enter
12. Choose to set a product key and use KMS activation by entering Y or N ≫ Press Enter
13. Choose to install Microsoft Office 2013 RT Home & Student Plus by entering Y or N ≫ Press Enter
a. Choose if you need a language other than English for Microsoft Office 2013 RT by entering Y or N ≫ Press Enter
b. Choose an update level to include with Microsoft Office 2013 RT by enter 1, 2 or 3 ≫ Press Enter
16. Type 1 and press enter to use the default Windows setup mode
17. Type 1 to use the Windows Imaging Format (WIM) compression ≫ Press Enter
18. Review the displayed summary of selected options ≫ Type Y ≫ Press Enter to continue
19. Wait while the Windows 10 files are downloaded and prepared based on the selections made above
20. When prompted, type Y to create USB installation media ≫ Press Enter
21. Enter the target USB drive letter to write the installation files to and Press Enter
⚠ Double check the drive letter entered, as the drive will be formatted and all data on the drive will be lost
22. Type Y and press Enter to confirm formatting the selected flash drive
23. Type N and press Enter when prompted to create an ISO image
24. Press any key to close out of the Windows Media Builder application
Installing Windows 10
🚨 WARNING: Continuing beyond this point will format the storage on the Surface RT tablet and all files and the Windows 8 RT operating system will be lost
01. Insert the prepared USB flash drive in the Surface RT tablet
02. Hold Vol- and press the power button, releasing the Vol- when Surface logo appears
03. Wait for Windows Setup to begin
04. Click Next
05. Check the I accept box ≫ Click Next
06. Click Custom: Install Windows only (advanced)
07. Delete the existing partitions by selecting each one and clicking Delete
08. Once all partitions have been deleted, click the Unallocated Space to select it ≫ Click Next
09. Wait while Windows 10 RT copies and installs files
10. Once the installation completes the tablet will reboot automatically
11. Complete the Windows 10 Out of Box Experience (OOBE)
Fixing Some Known Issues
01. Open Notepad and paste the following into the new document
Windows Registry Editor Version 5.00
; DISABLE USER ACCESS CONTROL (UAC)
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem]
EnableLUA=dword:00000000
; FIX CAMERA DRIVERS
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows Media FoundationPlatform]
EnableFrameServerMode=dword:00000000
....Full steps can be found on GitHub [link at the top]
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Update Microsoft Surface RT Tablet to Windows 10 [Unofficial Upgrade]](https://i.ytimg.com/vi/Oz9D0bbVGBM/mqdefault.jpg)
![Install OctoPrint - 3D Printer Web UI - on Linux
#OctoPrint #3DPrinting #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0988.html
What is OctoPrint?
OctoPrint provides a snappy web interface for controlling consumer 3D printers. - https://github.com/OctoPrint/OctoPrint
Installation
01. Log into the Linux device
02. Run the following commands in terminal
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install prerequisites
sudo apt install python3 python3-pip python3-dev python3-setuptools python3-venv git libyaml-dev build-essential libffi-dev libssl-dev -y
# create an octoprint directory
sudo mkdir /opt/OctoPrint
# set ownership of the directory
sudo chown $USER:$USER /opt/OctoPrint
# change directory
cd /opt/OctoPrint
# create a python virtual environment
python3 -m venv venv
# activate the virtual environment
source venv/bin/activate
# install wheel
pip install upgrade pip wheel
# install octoprint
pip install octoprint
# test octoprint installation
/opt/OctoPrint/venv/bin/octoprint serve
03. Open a web browser and navigate to http://DNSorIP:5000
04. Click Next on the Start screen
05. Click Next on the Restore Backup screen
06. Create an account my entering a Username and entering and confirming a password ≫ Click Create Account
07. Once the account is created, click Next
08. Choose to Enable or Disable the Connectivity Check ≫ Click Next
09. Choose to Enable or Disable Anonymous Usage Tracking ≫ Click Next
10. Choose to Enable or Disable the Plugin Blacklist ≫ Click Next
11. Click Next on the Webcam Wizard screen
12. Click Next on the Default Printer Profile screen
13. Click Next on the Server Commands screen
14. Acknowledge all the messages on the Finish screen ≫ Click Finish
15. Welcome to OctoPrint
Run OctoPrint as a Service (optional, but recommended)
01. Back in the Terminal, press CTRL+C to kill the running OctoPrint process
02. Continue with the following commands in terminal
# create octoprint service file
sudo nano /etc/systemd/system/octoprint.service
03. Paste the following into octoprint.service
[Unit]
Description=The snappy web interface for your 3D printer
After=network-online.target
Wants=network-online.target
[Service]
Environment=LC_ALL=C.UTF-8
Environment=LANG=C.UTF-8
Type=exec
User=≪% replace with your username %≫
ExecStart=/opt/OctoPrint/venv/bin/octoprint serve
[Install]
WantedBy=multi-user.target
04. Press CTRL+O, Enter, CTRL+X to write the changes
05. Continue with the following commands
# reload systemd services
sudo systemctl daemon-reload
# start the octoprint service on boot and now
sudo systemctl enable octoprint now
06. Back in the web browser, refresh the OctoPrint tab
Source: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspberry-pi-os-debian/2337
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Install OctoPrint - 3D Printer Web UI - on Linux](https://i.ytimg.com/vi/P-riUuuZee0/mqdefault.jpg)
![Run Homarr Application Dashboard in Docker
#Homarr #Dashboard #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0890.html
What is Homarr?
Simplify the management of your server with Homarr - a sleek, modern dashboard that puts all of your apps and services at your fingertips. With Homarr, you can access and control everything in one convenient location. Homarr seamlessly integrates with the apps youve added, providing you with valuable information and giving you complete control. Installation is a breeze, and Homarr supports a wide range of deployment methods. - https://github.com/ajnart/homarr
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
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
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Homarr
01. Now that Docker is installed, run the following commands to setup the Homarr Docker container and run it
# create working directory structure
mkdir ~/docker/homarr/{configs,data,icons} -p
# run homarr container
docker run -d name=homarr -p 7575:7575 -v /var/run/docker.sock:/var/run/docker.sock -v ~/docker/homarr/configs:/app/data/configs -v ~/docker/homarr/data:/data -v ~/docker/homarr/icons:/app/public/icons restart=unless-stopped ghcr.io/ajnart/homarr:latest
02. Open a web browser and navigate to http://DNSorIP:7575
03. Click the Start update process button
04. Click Continue
05. Enter an admin username and enter and confirm a password ≫ Click Continue
06. Click the Go to your board button
07. Welcome to Homarr running in Docker
Source: https://homarr.dev/docs/getting-started/installation/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run Homarr Application Dashboard in Docker](https://i.ytimg.com/vi/PCsUL_sgWfw/mqdefault.jpg)
![Run OctoPrint - 3D Printer Web UI - in Docker
#OctoPrint #3DPrinting #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0990.html
What is OctoPrint?
OctoPrint provides a snappy web interface for controlling consumer 3D printers. - https://github.com/OctoPrint/OctoPrint
Installing Docker
01. Log into the Linux host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
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
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running OctoPrint Container
01. Continue with the following commands in a terminal window
# create working directories
mkdir ~/docker/octoprint -p
# set owner of docker directory
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/octoprint
# run the octoprint container
docker run -d name octoprint -v ~/docker/octoprint:/octoprint device /dev/ttyACM0:/dev/ttyACM0 -p 8041:80 restart=unless-stopped octoprint/octoprint
02. Open a web browser and navigate to http://DNSorIP:8041
03. Click Next on the Start screen
04. Click Next on the Restore Backup screen
05. Create an account my entering a Username and entering and confirming a password ≫ Click Create Account
06. Once the account is created, click Next
07. Choose to Enable or Disable the Connectivity Check ≫ Click Next
08. Choose to Enable or Disable Anonymous Usage Tracking ≫ Click Next
09. Choose to Enable or Disable the Plugin Blacklist ≫ Click Next
10. Click Next on the Webcam Wizard screen
11. Click Next on the Default Printer Profile screen
12. Click Next on the Server Commands screen
13. Acknowledge all the messages on the Finish screen ≫ Click Finish
14. Welcome to OctoPrint
Documentation: https://github.com/OctoPrint/octoprint-docker
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run OctoPrint - 3D Printer Web UI - in Docker](https://i.ytimg.com/vi/Q0b6gNJlZ2g/mqdefault.jpg)

