OctoPrint on A Raspberry Pi

Finally, I got some time for OctoPrint, another specific operating system for Raspberry Pi, as Home Assistant talked in my previous blog Home Assistant on A Raspberry Pi.

1. Overview

1.1 What is OctoPrint?

From its official website, clearly, OctoPrint is an operating system for 3D Printing. Its capabilities can be extended to other manufacturing fields. Specifically, OctoPi will work on a Raspberry Pi.

1.2 Flash OctoPi Onto Raspberry Pi

1
2
3
4
5
6
7
$ sudo dd if=./octopi-1.0.0-1.10.2-20240618101629.img of=/dev/sdb bs=1M status=progress conv=fsync 
[sudo] password for lvision:
2357198848 bytes (2.4 GB, 2.2 GiB) copied, 2 s, 1.2 GB/s2906653696 bytes (2.9 GB, 2.7 GiB) copied, 2.4707 s, 1.2 GB/s

2772+1 records in
2772+1 records out
2906653696 bytes (2.9 GB, 2.7 GiB) copied, 248.633 s, 11.7 MB/s

2. SSH Into OctoPi

2.1 FIRST Login

You got to login OctoPi locally for the FIRST time, instead of remotely, for the NetworkManager service is NOT started by default. Namely, there is NO Wi-Fi by default. Well, you can ALWAYS use the wired connection of course.

2.1.1 Start NetworkManager Whenever Reboot

Use the following commands:

  • sudo systemctl status NetworkManager
  • sudo systemctl enable NetworkManager
  • sudo systemctl start NetworkManager
  • sudo systemctl status NetworkManager for double check
  • sudo reboot reboot to ensure NetworkManager is started by default
  • sudo systemctl status NetworkManager check again

2.1.2 nmcli to Set Up Wi-Fi

Use the following commands:

  • nmcli dev wifi list
  • nmcli dev wifi connect NetworkName password WiFiPassword (You don’t need to quote or double-quote NetworkName or WiFiPassword)

Now, you’re good to go.

2.2 SSH Into OctoPi Via Wi-Fi Connection

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$ ssh lvision@192.168.1.76
lvision@192.168.1.76's password:
Linux octopi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jul 25 20:23:51 2024 from 192.168.1.1
➜ ~ neofetch
`.::///+:/-. --///+//-:`` lvision@octopi
`+oooooooooooo: `+oooooooooooo: --------------
/oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 11 (bullseye) armv7l
`+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi 3 Model B Rev 1.2
`:oooooooo+`` `.oooooooo+- Kernel: 6.1.21-v7+
`:++ooo/. :+ooo+/.` Uptime: 5 mins
...` `.----.` ``.. Packages: 816 (dpkg)
.::::-``:::::::::.`-:::-` Shell: zsh 5.8
-:::-` .:::::::-` `-:::- Terminal: /dev/pts/0
`::. `.--.` `` `.---.``.::` CPU: BCM2835 (4) @ 1.200GHz
.::::::::` -::::::::` ` Memory: 111MiB / 870MiB
.::` .:::::::::- `::::::::::``::.
-:::` ::::::::::. ::::::::::.`:::-
:::: -::::::::. `-:::::::: ::::
-::- .-:::-.``....``.-::-. -::-
.. `` .::::::::. `..`..
-:::-` -::::::::::` .:::::`
:::::::` -::::::::::` :::::::.
.::::::: -::::::::. ::::::::
`-:::::` ..--.` ::::::.
`...` `...--..` `...`
.::::::::::
`.-::::-`

3. OctoPrint on OctoPi

octopi.local Setup Wizard OctoPrint 3D Printer
octopi.local Setup Wizard OctoPrint 3D Printer
OctoPrint Server Reload OctoPrint Webcam
OctoPrint Server Reload OctoPrint Webcam

4. LaserGRBL and LightBurn