Forskjell mellom versjoner av «OctoPrint/testing»

Fra Bitraf
Hopp til navigering Hopp til søk
(manual installation of OctoPrint)
(Manual installation: initial setup)
Linje 11: Linje 11:
 
* allow ssh by creating a filer named 'ssh' on the boot partition (cd to mountpoint of boot partition, then do <code>touch ssh</code>)
 
* allow ssh by creating a filer 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.
 
* 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>.
  
 
== References ==
 
== References ==

Revisjonen fra 21. nov. 2019 kl. 22:57

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 filer named 'ssh' on the boot partition (cd to mountpoint of boot partition, then do touch ssh)
  • mount the rootfs 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 sudo vi etc/hostname, and sudo nano etc/hosts 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 ping hostname-print.local.

ssh into the machine (ssh pi@hostname-print.local) withnthe default user and password.

  1. change the password: passwd
  2. 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.

References