Back to Browse

Install OctoPrint - 3D Printer Web UI - on Linux

2.0K views
Jan 30, 2025
3:07

#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

Download

1 formats

Video Formats

360pmp46.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Install OctoPrint - 3D Printer Web UI - on Linux | NatokHD