Instalacja OctoPrint #
sudo apt update
sudo apt upgrade y
sudo apt install python3 python3-pip python3-dev python3-setuptools python3-venv git libyaml-dev build-essential libffi-dev libssl-dev
sudo adduser octoprint --disabled-password --gecos ""
sudo gpasswd -a octoprint tty
sudo gpasswd -a octoprint dialout
sudo gpasswd -a octoprint video
sudo su - octoprint
python -m venv OctoPrint
OctoPrint/bin/pip install -U pip setuptools
OctoPrint/bin/pip install OctoPrint
/etc/systemd/system/octoprint.service
[Unit]
Description=OctoPrint
After=network.target
[Service]
ExecStart=/home/octoprint/OctoPrint/bin/octoprint serve
WorkingDirectory=/home/octoprint/octoprint
StandardOutput=inherit
StandardError=inherit
Restart=always
User=octoprint
CPUSchedulingPolicy=rr
CPUSchedulingPriority=80
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable octoprint
sudo systemctl start octoprint