Eskating cyclist, gamer and enjoyer of anime. Probably an artist. Also I code sometimes, pretty much just to mod titanfall 2 tho.

Introverted, yet I enjoy discussion to a fault.

  • 0 Posts
  • 84 Comments
Joined 3 years ago
cake
Cake day: June 13th, 2023

help-circle


    1. There is no “special” benefit to a pre-built NAS. They have convenient software but there is nothing exceptional about them. They’re just computers with storage drive slots. Using a bunch of external drives via a USB hub would be fine. But is that your only expansion option on the system you have? Access speeds via USB, especially if using a hub, won’t be ideal. It’ll certainly work, though. You can also get enclosures to put full size HDDs in, which can connect to an existing system.

    2. RAID is still the way to go, but since you don’t need much storage, I’d start with RAID 1, not 5. 5 will require a rebuild with a new drive if something goes wrong, while RAID 1 will work with 2 drives and give you complete mirroring. Since you intend to have a “local” backup copy anyway, why not just skip that and use RAID 1? It’s literally the same thing, except it’ll actually provide uptime in case of failure, unlike a backup drive or raid 5.

    3. So RAID 5 plus a local backup, plus another offsite? This is overkill IMO. (Not the offsite backup that’s good. But raid+local copy. Just use two drives and mirror them using whatever you prefer.) In your place, I think I’d go with BTRFS in raid1c2 mode. This is like raid1, in that with two drives, you only get the capacity of one drive. But, the “c2” means that each data block is mirrored to two drives. With more than two drives, you can expand storage. (With three 2TB drives you’d get 3TB) You don’t get as much available storage as with raid5, but you get expandability, which you normally don’t with raid1. And you get uptime in case of failure without an array rebuild (though for this you must mount the volume with the “degraded” option, unlike actual raid using mdadm). You also get filesystem snapshots.

    4. You intend to do this manually? That is fine. My current solution is a second NAS at my dad’s home, to which my system is backed up daily using Kopia. Kopia deduplicates and compresses the backups, efficiently keeping versions up to two years back. The simplest version of this would be a router that can host an FTP server using an external drive in its usb port. This way you could automate off-site backup and have it happen more frequently. Asus routers can do this, and even come with free dynamic DNS and automatic https with letsenrypt. You literally just plug it into WAN somewhere, and you’ll be able to back up to it over the internet.


    Finally, just some mentions.

    MDADM, is what you’d use to create a software RAID array.

    BTRFS has built-in multi-device storage, of which only single, raid0, and raid1 are stable. Do not use the raid5 and 6 modes. While named raid, the modes differ from actual raid. BTRFS is able to convert from one mode to another, and can add drives in any mode (though will need to “balance” the drives after changes, to make additional capacity available). It is also able to evict drives. It will not auto-mount a volume after drive failure, and requires the “degraded” option be added.

    Mergerfs can be used to merge filesystems to expand storage non-destructively. It is able to arbitrarily combine volumes of any type, to combine their capacity. This way, it can for example be used to expand a raid1 array by combining it with a single disk, or another raid1 array, or whatever else. This can be done temporarily, as the combined volume can also be disassembled non-destructively, with each file simply remaining on whatever drive they were on.





  • Mihon has a setting to flash the display when changing pages to reduce ghosting on e-ink displays.

    Which you shouldn’t use. E-ink refreshes are far more complex than simply flashing the screen a solid color, involving multiple steps to massage the e-ink in the panel into a sharp image. These are calculated and done by the e-ink display driver on any decent device, whenever the image on screen changes enough.

    Mihon also does the flash out of sync with the actual display refresh (if it’s set to occur on tap), CAUSING ghosting, instead of reducing it.

    If you can configure your e-ink device to do a full display refresh on tap, simply do that.

    In Mihon, just disable animations, and let the e-ink display driver handle display refreshes.




  • I’m not sure on the answer myself, but you did get one thing wrong.

    Even the oldest, sickest pet will still make an effort to keep themselves alive however they can: eating, drinking water, moving out of the way of danger, etc.

    No, they won’t.

    Plenty of illnesses cause apathy, dehydration, or loss of appetite.

    Causes vary from pain so intense moving is unbearable, or nausea so severe food is inedible. It can be mental, physical, easily treated, or incurable and eventually lethal.

    Either way, pets can and absolutely do choose inaction when miserable enough.


  • Then my first assumption is that the session token is not being correctly stored in kwallet. It can’t restore the session after kwallet is closed.

    You can open kwallet manager, and delete the wallet. This will prompt your system to re-create it next time you go to use something that needs it (wifi, nextcloud).

    This will allow you to essentially reset the default wallet.

    The typical settings for it are “blowfish” encryption with either a blank password (which encrypts nothing, but allows the wallet to always open reliably) or using the same password as your user (which allows the wallet to decrypt automatically upon login).

    Another user also commented with useful links, the arch wiki page on kwallet is also potentially useful.


  • In that case, something in is invalidating the login. Are you sure that it is happening due to leaving your LAN, and not just coinciding with that?

    Does restarting the laptop log you out, or temporarily disconnecting from the internet? Could you test by switching to a wifi hotspot on your phone, and switching back, for example?

    The client stores your session token in the OS credentials manager (kwallet for linux kde, for example) and the issue can lie there, as well.







  • I also need to work out how to do automatic certificate renewal and if that’s even worth doing

    This is what certbot is for. For example, with nginx, you just set up the webserver to be reachable via your domain.

    You then install and run certbot, and it will aquire, install and configure, and then set itself up to auto-renew, a certificate. All with just one command.

    With Nextcloud specifically I also don’t like the fact that you can’t change the domain after the initial setup

    Yes you can?

    I’ve done it thrice now.

    Is this some limitation of the docker AIO stack?