• 1 Post
  • 60 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle





  • I installed MagicMirror onto a Raspberry Pi using a pre-made Magic Mirror OS image (can’t remember where I got that, but I think it’s relatively “official”, so maybe their website? It comes ready to go with Docker and everything you need set up.

    Then I installed this https://github.com/pelaxa/MMM-ImmichSlideShow and configured it.

    I actually found some additional configuration options by going back in the chain to the project it’s based on (linked at the top of the readme). Their documentation included some additional stuff that actually works with MMM-ImmichSlideShow. Edit: Looking at my config again, and all the stuff is in the MM-ImmichSlideShow documentation now. Maybe they updated it.

    Then I hooked up an old monitor, put it in vertical mode, and that’s it.

    It was actually kind of difficult to figure out how to get the display to work in vertical mode. A lot of old forum posts are the “old” way of doing it. I ended up making a cronjob that runs 60 seconds after boot and runs some command that rotates the display. I’ll dig it up if you need me to, but since MMM-ImmichSlideShow is still broken it’s not turned on right now so I can’t check it. Here’s the line from my crontab to rotate the display: @reboot sleep 60 && DISPLAY=:0 xrandr --output HDMI-1 --rotate right




  • Mine was having some weird problem with docker, I think it must be a docker bug. Basically it put the Wanderer stuff at the very bottom of the routes (running “sudo route” on Debian lists the routes). The last entry in the routes table needs to be eth0 or the equivalent so that stuff can loop back to the beginning of the list. At least that’s my understanding.

    So anyway, to get around that bug/limitation I had to create a static docker network which I called “wanderer-static” using docker network create --attachable -d bridge --subnet 172.28.0.0/16 --gateway 172.28.0.1 wanderer-static. Choose a subnet that’s not being used already.

    Then in the docker compose file, point everything at that network by:

    Removing

     networks:
       wanderer:
         driver: bridge
    

    Adding

    networks:
      wanderer-static:
        external: true
    

    And finally, pointing each service to that network. Under each service you should have:

        networks:
          - wanderer-static
    

    I also had to update the ORIGIN and whatever else to http://wanderer-static:7000, etc.







  • The upgrade went smoothly for me. Be smart with your backups with this one!

    Upgrading to postgres 16 was the hardest part. You need to pg_dump the lemmy database, upgrade to postgres 16 (which will complain in the logs that the current data isn’t compatible), delete the database folder (don’t delete the backup file from pg_dump!), then import the backup file into postgres 16.

    I had already upgraded pict-rs to version 0.5+ so that was easy.

    Then I compared the new lemmy.hjson with what I already had to get the new pict-rs setting for proxied images (turned off for now).

    Overall a lot more complex than previous upgrades.

    Be smart with your backups with this one!

    One more thing to consider if you’re using Debian 12 is it comes with postgres 15, so if you you’re using the bare metal to make backups, you’ll need to install postgres 16 using the instructions here.




  • I’d say SSD or anything else non-spinning is a waste of money for most people’s needs. There are fringe cases, of course, like people who are editing gigantic video files or whatever.

    I have a bunch of WD HDD’s that I shucked a while ago, they’ve been running non-stop for over 5 years last time I checked and I haven’t had any problems. That being said, I think Toshiba is usually considered “better”.

    Either way, you shouldn’t rely on the reliability of any drive, SSD, HDD, or otherwise. If you have a backup then your worries go out the window and you can live life in peace!