-
-
Notifications
You must be signed in to change notification settings - Fork 227
Update
You can update OctoDash easily from within the app (recommended) or with either a script or manually.
If you update multiple versions at a time you could encounter some issues. Manually update one version at a time, if you want to be on the safe side.
OctoDash also supports In-App updates (v2.0 and up). This requires some initial setup though, which can be either done manually or automatically during installation.
Since every package installation requires root privileges you need to set up a script for the installation and enable passwordless sudo for that specific script. Please note that this is a slight security compromise since that script allows anyone with access to the pi (even with no sudo access) to install the package located at /tmp/octodash.deb
. So technically someone could copy a malicious package to that location and install it without any elevated rights.
While this is a fairly small security risk for most users, if even one at all, please keep this in the back of your mind, especially if multiple users are working on the machine that is running OctoPrint.
Manual Setup:
- Create the update script
~/scripts/update-octodash
with the following contents:
#!/bin/bash
dpkg -i /tmp/octodash.deb
rm /tmp/octodash.deb
- Make the script executable:
sudo chmod +x ~/scripts/update-octodash
- Enable passwordless sudo for the update script (
/etc/sudoers.d/update-octodash
):
pi ALL=NOPASSWD: /home/pi/scripts/update-octodash
- In-App update should work now (once a new version is available)
The source for the script can be found here
wget -qO- https://github.com/UnchartedBull/OctoDash/raw/main/scripts/update.sh | bash
-
Download the latest release. Check for newer version and replace v2.0.0 with the latest version
wget -O octodash.deb https://github.com/UnchartedBull/OctoDash/releases/download/v2.0.0/octodash_2.0.0_armv7l.deb
-
Install the downloaded package
sudo dpkg -i octodash.deb
-
Reboot (or restart OctoDash)
Made with ❤️ by UnchartedBull