-
-
Notifications
You must be signed in to change notification settings - Fork 230
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-octodashwith 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 | bashIf the update script isn't working for you, or if you need to install a specific version of OctoDash, you can run the following commands:
version="2.4.0"
wget -O octodash.deb https://github.com/UnchartedBull/OctoDash/releases/download/v$version/octodash_$version_$(dpkg --print-architecture).deb
sudo dpkg -i octodash.debReplace the version variable with the desired OctoDash version you wish to install. Then, restart OctoDash (or reboot the system)!
Made with ❤️ by UnchartedBull