An Ansible setup package to get OctoPrint running on your Raspberry Pi with ease. Includes a Python WiFi setup script (one for Raspbian and one for Ubuntu) to ensure quick connectivity setup. Note: Developed on Raspbian OS 2020-12-02 release
- Format a USB drive using the FAT32 format.
- Insert the USB drive into the Raspberry Pi (any port will work, we're not dealing with large files)
- Locate the device name and make note of it:
fdisk -l
- E.g.
/dev/sda1
- E.g.
- Create a temporary mounting point for the thumb drive, and a directory to copy the files to:
mkdir ~/tmp_mount
mkdir ~/octopi_setup
- Mount the drive as a super user:
sudo mount <DEVICE_PATH> ~/tmp_mount
- Copy the files to your home directory as a super user:
sudo cp -R ~/tmp_mount ~/octopi_setup
- Unmount the thumb drive and clean up the temporary folder:
sudo umount ~/tmp_mount
rm ~/tmp_mount
- Update file permissions on the copied files:
sudo chown -R ${LOGNAME}:${LOGNAME} ~/octopi_setup
- Execute the WiFi joining script:
sudo ~/octopi_setup/setup-wifi-ros.py
- Follow the prompts to connect.
- Install Ansible:
sudo apt install ansible
Note: This step upgrades all application packages and the distribution prior to installing OctoPrint!
- Execute the playbook and wait:
ansible-playbook ~/octopi_setup/octoprint_setup.yaml
- Obtain the IP address of your system from your NIC:
ip addr show wlan0
- Browse to the IP address on port 5000:
- E.g.
http://192.0.2.1:5000
- E.g.
- Finish configuring OctoPrint