From e574ff51eaa5ff027f3a9820cd73eaaf35859bcc Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:08:06 -0400 Subject: [PATCH 01/11] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index befe72b..d68c209 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ These files provide a simple bash script for quickly deploying multiple octoprin * Install Octoprint. You can follow the directions here: https://octoprint.org/download/ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337 -* Start up Octoprint for the first time to setup a base instance profile. The base profile will be edited in several places to allow specific modifications during deployment. +* Start up Octoprint for the first time to setup a base instance profile. The base profile will be edited in several places with `INSTANCE` to allow modifications during deployment. * During setup, edit the restart script: `sudo systemctl restart INSTANCE` - +![alt text](/deploy_01.png) * After the initial setup is done, reload the server and edit the Additional Serial Port field: `/dev/octo_INSTANCE` - +![alt text](/deploy_02.png) * You can also edit the server name under apperance with: `INSTANCE` - +![alt text](/deploy_03.png) [PLACE HOLDERS FOR EDITING STUFF] * Make sure whichever printer you are installing for is not plugged in via USB From ebd8974809e9e76be5aab19f6d2792311d2d2396 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:09:28 -0400 Subject: [PATCH 02/11] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index d68c209..1180972 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,8 @@ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-p ![alt text](/deploy_02.png) * You can also edit the server name under apperance with: `INSTANCE` ![alt text](/deploy_03.png) -[PLACE HOLDERS FOR EDITING STUFF] -* Make sure whichever printer you are installing for is not plugged in via USB +* Make sure whichever printer you are installing for is not plugged in via USB * Go to wherever you downloaded octoprint_deploy: cd octoprint_deploy * Run the bash script: $ sudo ./addnew_printer.sh * And follow the instructions. Defaults are shown in brackets: From f6dff4ee01d9a1614b55caf020e8c6e49cfcd0a2 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:12:29 -0400 Subject: [PATCH 03/11] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1180972..d1a221d 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-p This will do the following: -1. Copy everything in ~/.octoprint to ~/.printer01 with modifications +1. Copy everything in ~/.octoprint to ~/.printer01 with the modifications 2. Update udev rules so this printer will always be at port /dev/octo_printer01 3. Create, start, and enable the service printer01 to control that octoprint instance. + +Because each octoprint instance is coming from the same source files, any global modifications you make to octoprint (adding/removing plugins, updating octoprint) are all automatically applied to all of your instances and will take effect when you restart that instance. From b9518b818ad92fe3c2ac401902082c12f0e0420d Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:13:14 -0400 Subject: [PATCH 04/11] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1a221d..0a39d74 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-p ![alt text](/deploy_03.png) * Make sure whichever printer you are installing for is not plugged in via USB -* Go to wherever you downloaded octoprint_deploy: cd octoprint_deploy -* Run the bash script: $ sudo ./addnew_printer.sh +* Go to wherever you downloaded octoprint_deploy: `$ cd octoprint_deploy` +* Run the bash script: `$ sudo ./addnew_printer.sh` * And follow the instructions. Defaults are shown in brackets: >UNPLUG PRINTER FROM USB From 950d63e5f7734e0d24b3ccf28ed43c541acea59f Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:14:52 -0400 Subject: [PATCH 05/11] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0a39d74..63dc873 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-p * You can also edit the server name under apperance with: `INSTANCE` ![alt text](/deploy_03.png) +* STOP your currently running octoprint server (Ctrl+C in the terminal you started is sufficient) * Make sure whichever printer you are installing for is not plugged in via USB * Go to wherever you downloaded octoprint_deploy: `$ cd octoprint_deploy` * Run the bash script: `$ sudo ./addnew_printer.sh` From 8404856d5e1e6cdf23e69f825dcfc1ccd2b9dbd0 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:15:29 -0400 Subject: [PATCH 06/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63dc873..2149eea 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-p * You can also edit the server name under apperance with: `INSTANCE` ![alt text](/deploy_03.png) -* STOP your currently running octoprint server (Ctrl+C in the terminal you started is sufficient) +* SAVE your changes, then STOP your currently running octoprint server (Ctrl+C in the terminal you started is sufficient) * Make sure whichever printer you are installing for is not plugged in via USB * Go to wherever you downloaded octoprint_deploy: `$ cd octoprint_deploy` * Run the bash script: `$ sudo ./addnew_printer.sh` From 8198095fa332c3b4e9adc721483659f8a466dbe2 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:18:52 -0400 Subject: [PATCH 07/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2149eea..7c1b212 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ These files provide a simple bash script for quickly deploying multiple octoprin * Install Octoprint. You can follow the directions here: https://octoprint.org/download/ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337 -* Start up Octoprint for the first time to setup a base instance profile. The base profile will be edited in several places with `INSTANCE` to allow modifications during deployment. +* Start up Octoprint for the first time to setup a base instance profile. The base profile will be edited in several places with `INSTANCE` to allow modifications during deployment. This only needs to be done once. * During setup, edit the restart script: `sudo systemctl restart INSTANCE` ![alt text](/deploy_01.png) * After the initial setup is done, reload the server and edit the Additional Serial Port field: `/dev/octo_INSTANCE` From 910e67b549defef28ae284a41f07213843f1c853 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 09:19:51 -0400 Subject: [PATCH 08/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c1b212..4178e9d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-p * Make sure whichever printer you are installing for is not plugged in via USB * Go to wherever you downloaded octoprint_deploy: `$ cd octoprint_deploy` * Run the bash script: `$ sudo ./addnew_printer.sh` -* And follow the instructions. Defaults are shown in brackets: +* And follow the instructions. Defaults are shown in brackets. ENTER accepts defaults: >UNPLUG PRINTER FROM USB From 6127dedd61aec5319615bccbebd7ff5efbe59be5 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 19 Oct 2019 12:31:16 -0400 Subject: [PATCH 09/11] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4178e9d..9493cb6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ These files provide a simple bash script for quickly deploying multiple octoprin * Install Octoprint. You can follow the directions here: https://octoprint.org/download/ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337 -* Start up Octoprint for the first time to setup a base instance profile. The base profile will be edited in several places with `INSTANCE` to allow modifications during deployment. This only needs to be done once. +* Start up Octoprint for the first time to setup a base instance profile (running on localhost:5000). The base profile will be edited in several places with `INSTANCE` to allow modifications during deployment. This only needs to be done once. * During setup, edit the restart script: `sudo systemctl restart INSTANCE` ![alt text](/deploy_01.png) * After the initial setup is done, reload the server and edit the Additional Serial Port field: `/dev/octo_INSTANCE` @@ -50,7 +50,7 @@ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-p This will do the following: -1. Copy everything in ~/.octoprint to ~/.printer01 with the modifications +1. Copy everything in ~/.octoprint to ~/.printer01 with the modifications for a server instance on port 5000 2. Update udev rules so this printer will always be at port /dev/octo_printer01 3. Create, start, and enable the service printer01 to control that octoprint instance. From 6dc03e445bb7253840e3846cbe87c901a4ee6477 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sun, 20 Oct 2019 08:30:42 -0400 Subject: [PATCH 10/11] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9493cb6..c58598a 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,6 @@ This will do the following: 2. Update udev rules so this printer will always be at port /dev/octo_printer01 3. Create, start, and enable the service printer01 to control that octoprint instance. +You can now go through and run the script for each printer you want connected to the computer. The limit of instances you can run will likely be dependent on your computer hardware, but I have run 11 printers on an old Core 2 Duo with 4Gb of RAM without issue. + Because each octoprint instance is coming from the same source files, any global modifications you make to octoprint (adding/removing plugins, updating octoprint) are all automatically applied to all of your instances and will take effect when you restart that instance. From 6798072df9260df0132706908ba1fddfc3005271 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Mon, 21 Oct 2019 22:29:15 -0400 Subject: [PATCH 11/11] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c58598a..e50bda2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ These files provide a simple bash script for quickly deploying multiple octoprin * Install Octoprint. You can follow the directions here: https://octoprint.org/download/ or here: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337 -* Start up Octoprint for the first time to setup a base instance profile (running on localhost:5000). The base profile will be edited in several places with `INSTANCE` to allow modifications during deployment. This only needs to be done once. +* Start up Octoprint for the first time to setup a base instance profile (running on localhost:5000). The base profile will be edited in several places with `INSTANCE` to allow modifications during deployment. You can make this as extensive as you like as far as adding different printers, plugins, etc. They can be added for each instance later. This only needs to be done once. * During setup, edit the restart script: `sudo systemctl restart INSTANCE` ![alt text](/deploy_01.png) * After the initial setup is done, reload the server and edit the Additional Serial Port field: `/dev/octo_INSTANCE` @@ -57,3 +57,6 @@ This will do the following: You can now go through and run the script for each printer you want connected to the computer. The limit of instances you can run will likely be dependent on your computer hardware, but I have run 11 printers on an old Core 2 Duo with 4Gb of RAM without issue. Because each octoprint instance is coming from the same source files, any global modifications you make to octoprint (adding/removing plugins, updating octoprint) are all automatically applied to all of your instances and will take effect when you restart that instance. + +# Other +You likely want to allow the user that is running the octoprint instance (paul in the example) to start/stop/restart services. This can be accomplished with: `sudo visudo`. It is recommended to read up on how to do this without a password. Most generall this can be done by adding `paul ALL=(ALL) NOPASSWD:ALL` to the sudoers file. However, THERE ARE RISKS TO DOING THIS, so consider wisely.