Last active
October 18, 2021 09:51
-
-
Save plut0nium/ae76e02dba682f04fef9045a1c4ae0ac to your computer and use it in GitHub Desktop.
Getting a fully functional Octoprint installation on ArchlinuxARM (Raspberry Pi 3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# edit with 'visudo -f /etc/sudoers.d/10-octoprint' | |
# allow octoprint to restart/poweroff | |
octoprint ALL =NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/systemctl halt,/usr/bin/systemctl reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sweex WC060 | |
KERNEL=="event*", ATTRS{idVendor}=="177f", ATTRS{idProduct}=="0060",\ | |
TAG+="systemd", ENV{SYSTEMD_WANTS}="mjpg-streamer.service" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=MJPG Streamer service | |
After=network.target | |
Requires=dev-video0.device | |
BindsTo=dev-video0.device | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/mjpg_streamer -b -i "input_uvc.so" -o "output_http.so -w /usr/share/mjpg-streamer/www" | |
ExecStop=/bin/kill -9 `pidof mjpg_streamer` | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps | |
----- | |
* Install ArchlinuxARM | |
* Install octoprint-venv (from AUR) | |
- Installed from AUR | |
- Used auracle as helper (require editing the PKGBUILD to add armv7h as supporter arch) | |
* Install Avahi | |
- https://wiki.archlinux.org/index.php/Avahi | |
- Note: restart DBUS (systemctl restart dbus) before starting avahi | |
* Install Haproxy - SEGFAULT 1.9.8 - problem with SMP & ARM arch ? check later | |
* Replace with Nginx | |
- https://community.octoprint.org/t/reverse-proxy-configuration-examples/1107 | |
* Install ffmpeg & mjpg-streamer | |
- mjpg-streamer is installed from AUR | |
- start line: mjpg_streamer -i "input_uvc.so" -o "output_http.so" | |
- https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337 | |
* Webcam is detected and recognized without problem | |
- Sweex WC060 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment