{"id":1994,"date":"2017-12-29T13:25:01","date_gmt":"2017-12-29T18:25:01","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=1994"},"modified":"2017-12-29T13:26:09","modified_gmt":"2017-12-29T18:26:09","slug":"3d-print-server-octoprint","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=1994","title":{"rendered":"3D Print Server &#8211; OctoPrint"},"content":{"rendered":"<p>When we started setting up our 3D printer, I installed <a href=\"https:\/\/ultimaker.com\/en\/products\/ultimaker-cura-software\" target=\"_blank\" rel=\"noopener\">Cura<\/a> on my laptop &#8230; but I don&#8217;t want to leave my laptop in the office &amp; hooked up to the printer for a day or two. We could install Cura on the\u00a0<em>server<\/em> and use it to print, but we&#8217;d also need to use something like xvnc so we could remotely initiate a print job and\u00a0<em>not<\/em> need to stay connected to a redirected X session for a day or two. Thus began the quest for a server-based 3D printer controller. I think we&#8217;re going to use OctoPrint on our Fedora server.<\/p>\n<p>There are a few prerequisities: python, python-pip, and\u00a0python2-virtualenv, and git-core (well, you <em>can<\/em> just download\/extract the project &#8230; but having a git client is quicker\/easier).<\/p>\n<p>In the directory where you want the OctoPrint folder, run &#8220;git clone https:\/\/github.com\/foosel\/OctoPrint.git&#8221;<\/p>\n<p>Create a user for octoprint and add that user to the tty and dialout groups.<\/p>\n<p>Create a python virtual environment:\u00a0virtualenv venv<\/p>\n<p>Install OctoPrint into the new environment:\u00a0.\/venv\/bin\/python setup.py install<\/p>\n<p>Log into the octoprint service account (interactive logon or su), start a screen session for the server, then start the server with in the screen:<\/p>\n<p>su &#8211; myserviceaccount<br \/>\nscreen -d -m -S OctoPrintServer<br \/>\nscreen -x OctoPrintServer<br \/>\n\/path\/to\/OctoPrint\/venv\/bin\/octoprint<\/p>\n<p>Then access the web service and continue setup &#8211; the default port is 5000. My next step is to write an init script so the server will auto-launch on restart &#8230; but this is functional enough to start printing.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When we started setting up our 3D printer, I installed Cura on my laptop &#8230; but I don&#8217;t want to leave my laptop in the office &amp; hooked up to the printer for a day or two. We could install Cura on the\u00a0server and use it to print, but we&#8217;d also need to use something &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[241],"tags":[243,471,472],"class_list":["post-1994","post","type-post","status-publish","format-standard","hentry","category-3d-printing","tag-3d-printing","tag-cura","tag-octoprint"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1994"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1994\/revisions"}],"predecessor-version":[{"id":1996,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1994\/revisions\/1996"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}