Shoulder.dev Logo Shoulder.dev

Anthias Updating

Anthias Updating Scenario and ## Solution:

Scenario: A developer wants to update Anthias to the latest version on a Raspberry Pi device that is already installed and configured. The developer refers to the Anthias Updating guide to learn how to update Anthias using the available update methods.

Solution:

  1. First, ensure that the device is connected to the internet.

  2. Open a terminal window and navigate to the home directory of the user account where Anthias is installed:

    cd ~/$USER
    
  3. Update the package index and upgrade the packages:

    sudo apt update
    sudo apt upgrade
    
  4. Navigate to the Anthias directory:

    cd screenly
    
  5. Run the upgrade script to update Anthias:

    sudo ./bin/upgrade_containers.sh
    

    This script will handle the upgrade of all Anthias components, including NGINX, the viewer, the web app, Celery, WebSocket, Redis, and the database.

  6. Once the upgrade is complete, reboot the device to apply the changes:

    sudo reboot
    

Tests to verify the answer:

  1. Check the Anthias version by visiting the web UI home page (assets page) in a web browser. The version number should be updated to the latest version.

  2. Verify that all components are running correctly by checking the system logs:

    sudo journalctl -xe
    
  3. Test the functionality of the updated Anthias by adding, removing, and modifying assets.

  4. Ensure that the splash screen and settings page are working correctly.

  5. Verify that the authentication feature is working as expected, if it was enabled before the update.

  6. Check that the default assets are being displayed correctly, if the 'Default assets' feature was enabled before the update.

  7. Test the shuffle playlist feature, if it was enabled before the update.

  8. Verify that the date format and time settings are correct.

  9. Test the Wi-Fi connectivity and hotspot functionality, if applicable.

  10. Ensure that the device is rebooting and starting Anthias correctly after the update.