How to: Create Printer Cluster Image: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
sudo raspi-config | sudo raspi-config | ||
<-- Expand File System, Change User Password | |||
sudo apt-get purge haproxy | sudo apt-get purge haproxy | ||
sudo service octoprint stop | sudo service octoprint stop | ||
Line 30: | Line 32: | ||
sudo apt-get install screen htop apache2 (maybe as 2 commandspart) libapache2-mod-wsgi python-flask | sudo apt-get install screen htop apache2 (maybe as 2 commandspart) libapache2-mod-wsgi python-flask | ||
sudo a2enmod wsgi | sudo a2enmod wsgi | ||
Place Files, the folder RepLabHUB gets placed in /var/www | |||
The .conf file to /etc/apache2/sites-available/ | |||
Lastly, the scripts folder in /home/pi/scripts | |||
sudo a2enmod RepLabHUB | sudo a2enmod RepLabHUB | ||
sudo service apache reload | sudo service apache reload | ||
sudo service octoprint start | sudo service octoprint start | ||
sudo nano /etc/hosts | sudo nano /etc/hosts | ||
--> change the line Octopi to RepLab |
Revision as of 15:27, 4 July 2017
Warning: This instructionals may be functional, but the provided files are not! The scanner is completely untested and the webserver is not in a stage of heavy testing!!
This Page will have a full documentation on how the Printer Cluster Image is created, so it can be reproduced or modified. This will of course be an advanced process, so the reader should have a basic understanding about linux in general and [SSH] in specific.
Creating the Image
As a basic, we use Octopi, therefore our basic assumption is the use of the octopi image found here: [Link]
However, this set of rules should work basically on every Debian based system (like Ubuntu), some commands may need adjustment and of course there should be about the same folder structure regarding the location of octoprint and it's configuration folders. There is however nothing [ARM] specific involved so there is nothing strictly speaking against porting the system to a desktop or laptop.
For a manual on how to write the octopi to an SD card and connect it to the network look [How_to:Write_Image_to_SD_Card here]
The custom setup
After logging into the pi with SSH (basic credentials: pi, raspberry) we can start customizing the image to fit our needs. The credentials and data for setting up the Printer Cluster System are collected together in a zip found [File:PrinterClusterData.zip here].
This File contains a Readme with a full step by step manual on how the image Printer Cluster image was created additionaly to all files that are needed for the setup (the instructions are also listed below). For getting the files and readme onto the pi we may use [wget], taking the file directly from the wiki. The command unzip (Name of the File) will then expand the content.
When the (command line) instructions of the readme or below are followed, we should have the system ready, after reboot it should recognize all attached 3d Printer.
Instructions
sudo raspi-config
<-- Expand File System, Change User Password
sudo apt-get purge haproxy sudo service octoprint stop sudo apt-get update sudo apt-get upgrade sudo apt-get install screen htop apache2 (maybe as 2 commandspart) libapache2-mod-wsgi python-flask sudo a2enmod wsgi
Place Files, the folder RepLabHUB gets placed in /var/www The .conf file to /etc/apache2/sites-available/ Lastly, the scripts folder in /home/pi/scripts
sudo a2enmod RepLabHUB sudo service apache reload sudo service octoprint start sudo nano /etc/hosts
--> change the line Octopi to RepLab