![]() If you set it up in a virtualenv as described above make sure your /etc/systemd/system/rvice looks like this: ExecStart=/home/pi/OctoPrint/venv/bin/octoprint Automatic start upĭownload the init script files from OctoPrint's repository, move them to their respective folders and make the init script executable: wget & sudo mv rvice /etc/systemd/system/rviceĪdjust the paths to your octoprint binary in /etc/systemd/system/rvice. Try it out! Access the server by heading to and you should be greeted with the OctoPrint UI. 17:39:17,980 - octoprint.startup - INFO - Starting OctoPrint 1.4.2 You should then be able to start the OctoPrint server using the octoprint serve command: $ ~/OctoPrint/venv/bin/octoprint serve ![]() You may have to log out and back in again for these changes to become effective. You may need to add the pi user to the dialout group and tty so that the user can access the serial ports, before starting OctoPrint: sudo usermod -a -G tty pi To make this permanent, clean pip's cache: rm -r ~/.cache/pip ![]() In that case add -no-cache-dir to the install command, e.g. If this installs an old version of OctoPrint, pip probably still has something cached. OctoPrint and it's Python dependencies can then be installed using pip: pip install -upgrade pip wheel Sudo apt install python3 python3-pip python3-dev python3-setuptools python3-venv git libyaml-dev build-essential libffi-dev libssl-dev To setup Python, dependencies and the virtual environment, run: cd ~ Installing OctoPrint should be done within a virtual environment, rather than an OS wide install, to help prevent dependency conflicts. Make sure you are using the correct version - it is probably be installed as python3, not python. For some Git basics please take a look here.įor the basic package you'll need Python 3.7, 3.8, 3.9 or 3.10 (one of these is probably installed by default) and pip. This is not a "Linux for Beginners guide", those can be found for example here and here.
0 Comments
Leave a Reply. |