Merge branch 'master' of https://github.com/paukstelis/octoprint_deploy
This commit is contained in:
25
README.md
25
README.md
@@ -6,19 +6,19 @@ 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 (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`
|
||||
|
||||

|
||||
* After the initial setup is done, reload the server and edit the Additional Serial Port field: `/dev/octo_INSTANCE`
|
||||
|
||||

|
||||
* You can also edit the server name under apperance with: `INSTANCE`
|
||||

|
||||
|
||||
[PLACE HOLDERS FOR EDITING STUFF]
|
||||
* 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
|
||||
* And follow the instructions. Defaults are shown in brackets:
|
||||
* 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. ENTER accepts defaults:
|
||||
|
||||
>UNPLUG PRINTER FROM USB
|
||||
|
||||
@@ -50,6 +50,13 @@ 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 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.
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user