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
Other Videos By i12bretro
Other Statistics
Counter-Strike: Source Statistics For i12bretro
Currently, i12bretro has 9,292 views for Counter-Strike: Source across 7 videos. His channel published less than an hour of Counter-Strike: Source content, making up less than 0.90% of the total overall content on i12bretro's YouTube channel.