Categories
Uncategorized

How to install the ComGrow 5W Laser to an Ender 3 v2 3d Printer

01 Prerequisites

  • Hardware: Ender 3 v2 3D printer (working and fully assembled)
  • Hardware: ComGrow 5W FD+LAC laser
  • Hardware: spare microSDHC card
  • Material: Honeycomb Laser board or flat scrap board to use as your base (strongly recommended)
  • Software: Creality Workshop
  • Software: Archive extraction tool (7-zip, winRar)
  • Tool: Micrometer (digital or analog) the one I purchased
  • Tool: crv-20 hex key thingy (comes with the 3D Printer)
  • Tool: Box cutter (optional)
  • File: an image file saved as .jpeg
  • Data: which firmware is currently installed
  • Data: which mainboard revision is currently installed
  • Hardware: laser eye protection goggles

02 Determine Which Firmware Version Is Flashed Onto Your Ender 3 v2

  • startup 3d printer
  • The next screen will show the firmware version
  • Make a note of the Firmware version.
  • Optional: If you want to have a backup of the current firmware version that is installed, you will need to first know what is currently installed and download a copy of the same firmware from creality.
  • Knowing the currently installed firmware version will help you to determine if your firmware flash is successful.

03 Determine which Mainboard Revision is installed on your Ender 3 v2

  • Prerequisite: crv-20 hex tool and 5 minutes
  • remove the cover from the bottom
  • one short screw on the top
  • three screws on the bottom, note the sizes
  • I took a picture of my mainboard @5:08 PM
  • My mainboard is v4.2.2
    • It is a 32 bit mainboard, which makes updates easier as it comes with a Bootloader built-in

04 Find, Download and Extract the firmware file for your printer

  • Prerequisite: Find out which Mainboard Revision is installed in the printer
  • go to creality3dofficial.com
  • click Explore
  • Click Firmware Download
  • you have to select the correct firmware for your mainboard
  • For each mainboard revision, there are at least three files available
  • Variant #1: Main firmware for boards without BL Touch
  • Variant #2: Main firmware for boards with BL Touch and adapter
  • Variant #3: Main firmware for boards with BL Touch and without an adapter
  • Review firmware files available and compare to what is already installed on your board.
  • If the firmware version available on the site is the same as you have on your mainboard and you are not installing an accessory that requires a new firmware such as BL Touch, you do not need to update your firmware.
  • Download the correct firmware file
  • If the firmware is in a .RAR or .ZIP format, extract the .BIN file
  • Official Creality download site: https://www.creality.com/pages/download
  • The Official Creality site for Ender 3 v2 has downloads for the Manual, Firmware and Slicing Software
  • The official ComGrow firmware download

05 Firmware update steps

  • Prerequisite: a microSDHC card that is ok to format
  • Format a microSDHC card as MS-DOS Fat32
  • copy the downloaded / extracted firmware .BIN to an empty micro-SD card
  • safely remove the micro SDHC card from your computer
  • insert card into powered off printer
  • turn the printer on
  • The screen will appear and turn black while the Firmware is Updating
  • The firmware update should take approximately 15 seconds
  • When the firmware update is complete, the system will start up normally.
  • Troubleshooting: If the screen stays black for more than 60 seconds, Power off, Remove and reformat card as a different file system, Copy the BIN file and try again

06 Obtain Creality Laser Software

07 Configure Laser software

  • Prerequisite: You need a micrometer to measure your height.
  • On the top middle Menu, you will see two options: CNC, Laser, ensure to select Laser
  • Select outline
  • select open file
  • open a .jpg file
  • zoom into the file
  • on the top left side, under controller
  • ensure that Width is set to 100mm wide and 45.5598 Height mm for your material. Consider changing to: ensure that Width is set to how wide your want your image to be engraved, the height will automatically adjust for you.
  • on the top left side, select export GCode settings
  • Laser On Cmd: M106 S255
  • Laser Off Cmd: M107
  • to dial down the power, reduce 255
  • CNC Travel Z: 50. (Laser Focal Point 20mm, two boards 15mm thick each)
  • CNC Print Z: 50. (Laser Focal Point 20mm, two boards 15mm thick each)
  • travel Speed: 120 (this is when its not in motion)
  • Laser speed: 20 (20 = light line, 12 = will cut deeper and go a little slower)
  • Click Export Gcode
  • save the file (filename.gcode)
  • Open the file
  • Remove line at the end: “GO Z6 F4000” (right before ;end. It lowers the ZHeight, we don’t want that)
  • save the file to SD card
  • Adjusting laser speed
    • Set laser speed based on your needs for each material
    • 5 can almost cut through thin wood
    • 2-3 can definitely cut through thin wood

08 Install Laser head

  • remove one screw on top
  • remove three screws in the bottom (two short screws with grip and one long screw for the back of the motherboard cover.
  • unplug Fan 1 (see picture on phone)
  • Plug in Dual red/black Cable (see picture on phone)
  • One cable will be for your laser and the other is for accessories
  • run cables towards the back
  • close the mainboard cover
  • connect the black wire with the rubber cover to the one sticking out of the machine
  • ensure these wires do not run through the track
  • use zip ties or cable management to keep the wires out of the way
  • The shield gives the 20MM gap and can cause a lot of smoke. It can be removed (optional)

09 Prepare Laser Head

  • This is where you need to set/configure the Z-Axis prior to using the laser
  • The formula for Z-Axis is: (Scrap + targetMaterial + Laser focal point= Z-Axis)
  • Use 3D printer control panel to change Z-Axis

10 Definitions

  • Gcode: A file used by 3D printers and lasers which is used to m9ve the hard to exact coordinates for printing, engraving or cutting.
  • Mainboard: The brains of the 3D printer. It can also be called a motherboard.
  • BL Touch: A device to assist with automated bed leveling with used with OctoPrint.
  • Gcode: A file used by 3D printers and lasers which is used to m9ve the hard to exact coordinates for printing, engraving or cutting.
  • Mainboard: The brains of the 3D printer. It can also be called a motherboard.
  • BL Touch: A device to assist with automated bed leveling with used with OctoPrint.
  • Archive: A single compressed file with multiple files inside of it. You need to extract the files in an archive before you can use them.
  • BIN file: Code that used to replace the firmware.
  • CNC: CNC is an acronym that stands for Computer Numerical Control. It is a term that is used in reference to either the automated specialized machinery (sometimes called machining centers) that can remove material from a stock piece (also called a workpiece or blank) or to the service that performs those machining operations.
  • Z-Axis: Distance measured up or down.
  • Firmware: permanent software programmed into a read-only memory.
  • Micrometer: a tool used to measure very small items with mm or inches.
  • FD+LAC: fixed distance
  • Jog Dial: The primary way to physically control the Ender 3 v2 3D Printer functions.
  • Benchy: A small boat used to test 3D printers.
  • Slicer: an application that can turn human readable STL file into machine readable GCode file for 3D printing, laser engraving or CNC.
  • STL file: a file that can be opened by a slicer application that allows you to view, change and export a 3D design to be used an an array of devices.
  • mm: millimeter, a standard measurement used to measure 3D print size for laser engraving, laser cutting or CNC for small objects.
  • STL search engines: Thingiverse, MyMiniFactory, Cults3D.
Categories
Uncategorized

How to create a secure website on Ubuntu 22.04

9/19/2022

This how-to is for someone who wants a list of all the terminal commands needed to create a LAMP WordPress site with SSL. This document in its current form as of 9/19/2022 assumes that you know how to perform basic navigation within Windows and Linux which includes opening, closing windows and selecting items. It also assumes that you have port forwarding configured and optionally have a domain name configured and pointing to your web server. Even if you do not have those things configured, you can still jump to specific steps to install and configure individual components for your particular environment.

We will cover the Installation and Configuration of:

  1. A Microsoft Hyper-V Virtual Machine
  2. Ubuntu operating system
  3. Apache web server
  4. MySQL database
  5. PHP hypertext preprocessor
  6. Certbot SSLs from Let’s Encrypt
  • Prerequisites:
    • A computer or VM with:
      • 2 GHz Dual core processor or better
      • 4 GB RAM
      • 25 GB HDD
      • For additional details about system requirements, click here
    • Familiarity with the Linux Terminal
    • Download Linux Operating System (OS): Ubuntu 22.04 LTS ISO x64 architecture, click here
    • A router with the ability to configure port forwarding (optional)
    • Internet Access (optional)
  • Items not covered:
    • Selecting a domain name
    • Registering a domain name
    • Configuring Name Servers to point to your router
    • Configuring port forwarding on your router to redirect web traffic from ports 80 and 443 to your web server
  • Procedure
    • Create a new VM with:
      • 4096 MB RAM and disable Dynamic Memory
      • 25 GB HDD
      • Two Cores
      • Mount .ISO image
      • Startup VM
    • Install Ubuntu Desktop 22.04
      • steps would be nice!
    • Update and Upgrade OS
      • sudo apt-get update
      • sudo apt-get upgrade
    • Install Apache
      • sudo apt install -y apache2 apache2-utils
      • sudo apache2 -v
    • Install MySQL
      • sudo apt install -y mariadb-server mariadb-client
      • sudo mysql_secure_installation
    • Configure MySQL
      • Unix Socket, N
      • Change Root password, N
      • Remove anonymous users, Y
      • Disallow root login remotely, Y
      • Remove test database, Y
      • reload privileges, Y
    • Install PHP
      • sudo apt install -y php php-mysql libapache2-mod-php
      • sudo systemctl restart apache2
    • Configure MySQL database
      • sudo mysql -u root -p
      • Set a root PW
        • If this an actual step, set the MySQL Root PW
      • create database wordpress;
      • GRANT ALL PRIVILEGES ON wordpress.* TO ‘root’@’localhost’ IDENTIFIED BY ‘YOURPASSWORD’;
      • SELECT VERSION();
        • Optional, if you want to know the version of MySQL
      • Exit
    • Get Web Server status
      • systemctl status apache2
      • hostname -I
      • make a note of the IP Address
    • Test Web Server
      • connect to the IP address, ex: http://youripaddress
      • echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/phpinfo.php
      • Browse to: http://youripaddress/phpinfo.php
      • *A YouTube site with good information
    • Download latest WordPress
      • cd /var/www/html
      • sudo wget http://wordpress.org/latest.tar.gz
    • Extract WordPress
      • sudo tar xzf latest.tar.gz
    • Configure WordPress directories and permissions
      • sudo mv wordpress/* .
      • sudo rm -rf wordpress latest.tar.gz
      • ls -al
      • sudo chown -R www-data: .
      • ls -al
      • sudo rm index.html phpinfo.php
    • Configure WordPress
      • Browse to: http://youripaddress/index.php
        • It is called a Famous 5 minute install
      • Import backup file
    • Install, Configure and run certbot
      • *Requires a 64 bit Linux architecture
      • sudo snap install core; sudo snap refresh core
      • sudo snap install –classic certbot
      • sudo ln -s /snap/bin/certbot /usr/bin/certbot
    • Obtain certificate
      • *Ensure that port forwarding was already configured in advance and the domain is pointing to that computer or VM
      • sudo certbot –apache
      • Make a note of new site name with SSL configuration
    • Change website from port 80 to port 443
      • sudo a2dissite 000-default.conf
      • Sudo a2ensite your-new-site.conf
        • your-new-site.conf is the name of the site that Certbot provided
      • systemctl reload apache2
      • systemctl status apache2