OctoPrint/testing: Forskjell mellom sideversjoner
laget underside OctoPrint/testing |
m →Setup a SD card: fixed a spelling error |
||
| (6 mellomliggende sideversjoner av samme bruker vises ikke) | |||
| Linje 3: | Linje 3: | ||
Testing av OctoPrint. | Testing av OctoPrint. | ||
== Manual installation == | |||
=== Setup a SD card === | |||
Download Raspbian Lite (currently Raspbian Buster Lite<ref>[https://www.raspberrypi.org/downloads/raspbian/ raspberrypi.org - Raspbian]</ref>) and put onto a SD card (or microSD card if that is what your Raspberry Pi requires). | |||
Before putting the SD card into the Pi, do the following changes | |||
* allow ssh by creating a file named 'ssh' on the boot partition (cd to mountpoint of boot partition, then do <code>touch ssh</code>) | |||
* mount the <code>rootfs</code> partition and change the hostname (default is raspberrypi) by editing the files etc/hostname and etc/hosts (only the line with the same name ('raspberrypi')on that partition. The name will show up on the network as '''hostname.local''', so use '''hostname-print''' for example (shows up on the network as hostname-print.local). If you mount it on a machine running Linux, you can use <code>sudo vi etc/hostname</code>, and <code>sudo nano etc/hosts</code> to edit the files. | |||
=== Initial setup === | |||
Insert the SD card into your Pi, connect it to a network and power it up. From your machine, you can find out when the machine is available on the network with [[Wikipedia:ping (networking utility)]], example <code>ping hostname-print.local</code>. | |||
ssh into the machine (ssh pi@hostname-print.local) withnthe default user and password. | |||
# change the password: <code>passwd</code> | |||
# check if the user is a member of the required groups, if not, add it. <code>sudo usermod -a -G tty pi</code>, <code>sudo usermod -a -G dialout pi</code>. | |||
=== OctoPrint install === | |||
OctoPrint needs a few things installed before you can install it. | |||
==== install prerequisites ==== | |||
sudo apt update | |||
sudo apt install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential | |||
==== install OctoPrint ==== | |||
This install is done as the user that OctoPrint should run as. | |||
cd | |||
mkdir OctoPrint | |||
cd OctoPrint | |||
virtualenv venv | |||
source venv/bin/activate | |||
pip install pip --upgrade | |||
pip install octoprint | |||
== Start OctoPrint manually == | |||
To start OctoPrint manually, log in as the user and do <code>~/OctoPrint/venv/bin/octoprint serve</code>. When you want to end the OctoPrint server, use '''Ctrl-C''' to stop it. | |||
the OctoPrint server is available on port 5000, example http://hostname-print.local:5000/ | |||
== OctoPrint config files == | |||
OctoPrint config files lives in <code>~/.octoprint</code>. | |||
config.yaml (and config.backup) | |||
users.yaml | |||
Printer profiles | |||
printerProfiles/_default.profile | |||
printerProfiles/prusa_i3_mk3s.profile | |||
there are other directories and files in the <code>~/.octoprint</code> directory too. | |||
== References == | |||
<references/> | |||
[[Category:Octoprint]] [[Category:3D printing]] | [[Category:Octoprint]] [[Category:3D printing]] | ||
Siste sideversjon per 21. nov. 2019 kl. 22:00
Tilbake til OctoPrint.
Testing av OctoPrint.
Manual installation
Setup a SD card
Download Raspbian Lite (currently Raspbian Buster Lite[1]) and put onto a SD card (or microSD card if that is what your Raspberry Pi requires).
Before putting the SD card into the Pi, do the following changes
- allow ssh by creating a file named 'ssh' on the boot partition (cd to mountpoint of boot partition, then do
touch ssh) - mount the
rootfspartition and change the hostname (default is raspberrypi) by editing the files etc/hostname and etc/hosts (only the line with the same name ('raspberrypi')on that partition. The name will show up on the network as hostname.local, so use hostname-print for example (shows up on the network as hostname-print.local). If you mount it on a machine running Linux, you can usesudo vi etc/hostname, andsudo nano etc/hoststo edit the files.
Initial setup
Insert the SD card into your Pi, connect it to a network and power it up. From your machine, you can find out when the machine is available on the network with Wikipedia:ping (networking utility), example ping hostname-print.local.
ssh into the machine (ssh pi@hostname-print.local) withnthe default user and password.
- change the password:
passwd - check if the user is a member of the required groups, if not, add it.
sudo usermod -a -G tty pi,sudo usermod -a -G dialout pi.
OctoPrint install
OctoPrint needs a few things installed before you can install it.
install prerequisites
sudo apt update sudo apt install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential
install OctoPrint
This install is done as the user that OctoPrint should run as.
cd mkdir OctoPrint cd OctoPrint virtualenv venv source venv/bin/activate pip install pip --upgrade pip install octoprint
Start OctoPrint manually
To start OctoPrint manually, log in as the user and do ~/OctoPrint/venv/bin/octoprint serve. When you want to end the OctoPrint server, use Ctrl-C to stop it.
the OctoPrint server is available on port 5000, example http://hostname-print.local:5000/
OctoPrint config files
OctoPrint config files lives in ~/.octoprint.
config.yaml (and config.backup) users.yaml
Printer profiles
printerProfiles/_default.profile printerProfiles/prusa_i3_mk3s.profile
there are other directories and files in the ~/.octoprint directory too.