• 30 Posts
  • 1.63K Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle

  • TCB13@lemmy.worldtoLinux@lemmy.mlSelfhost offline software
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    4
    ·
    21 hours ago

    and can even use as live environment, don’t even need to install (in Windows this is not easy to do)

    Not true, Rufus creates bootable and persistent USB flash drives with one checkbox. You can do it manually also.

    I was trying to illustrate a point, you may have your distro, your packages and what think you need, but if we’re talking about post-apocalyptic you’ll probably need other stuff and at that point you have windows computers and windows software installed or installers available pretty much everywhere starting with your next door neighbor and with Linux not so much.





  • TCB13@lemmy.worldtoLinux@lemmy.mlSelfhost offline software
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    4
    ·
    23 hours ago

    AppImage suffers from the same problem that Flatpak does, the tool do work offline aren’t really good/solid and won’t save you for sure. It also requires a bunch of very small details to all align and be correct for things to work out.

    Imagine the post-apocalyptic scenario, if you’re missing a dependency to get something running, or a driver, or something specific of your architecture that wasn’t deployed by the friend alongside the AppImage / Flatpak (ie. GPU driver) you’re cooked. Meanwhile on Windows it has basic GPU drivers for the entire OS bakes in, or you can probably fish around for an installer as fix the problem. It is way more likely that you’ll find machines with Windows and windows drivers / installer than Linux ones with your very specific hardware configuration.


  • TCB13@lemmy.worldtoLinux@lemmy.mlSelfhost offline software
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    5
    ·
    23 hours ago

    you are just not being helpfull

    I am. When “shit hits the fan” you want to be as compatible and and frictionless as possible, because at point having a running computer will be a feat on its own and you probably won’t have time/power to deal with software complexities and “ways around issues”. You most likely want to boot a machine from whatever parts are available and get some data out of it or maybe in and move on to hunting or farming. No time to be there fixing xyz package with broken dependencies and whatnot. If someone gives you a flash drive with data it follows the same logic, you want to get to something as quickly as possible.

    In Linux there’s also an over-reliance on web-based solutions that can be self-hosted in your system or a 3rd one but that, once again, just adds extra friction that you don’t have with “simple” formats and binaries like pdf, docx and others that at the end of the day are just self contained apps that can be run as is without extra fuzz nor cloud dependencies.

    I’m all for Linux, alternative and open-source, but in the situation described you last concern is if you’re running proprietary stuff.


  • TCB13@lemmy.worldtoLinux@lemmy.mlSelfhost offline software
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    11
    ·
    edit-2
    1 day ago

    This is going to be controversial but…

    Linux is not really suited for the post-apocalitic no-internet world, the way the repositories are built and software is packed (almost nothing is static, a lot of dependencies on other packages everywhere) just makes it really impractical and hard to deal with those scenarios. Flatpak / containers and friends even make this situation worse because you can’t easily mirror the repositories and there’s no straightforward way of exporting a Flatpak as a solid file that can be shared around and installed everywhere - the current tool for that doesn’t account architectures and dependencies very well.

    Windows however is a much more solid and good option, yes, it’s painful to hear this but in Windows you can get an exe from a friend in a flash drive and it runs as is. Same goes for installers, reinstalling the OS etc. There’s only a couple of .net framework installers that will cover dependencies for 99.99% of stuff in a few MB. The same goes for macOS, however it depends on a lot of software signing nowadays and certificates that can expire and you then have a problem.








  • Hmm… some people are going to say that basic auth would be insecure, I’m not going to be there because in this particular case it’s about the same thing.

    However, this might be easier to configure and manage permissions than basic auth. Also this works cross-domain and basic auth will require full re-auth for every domain. Another obvious advantage is that at some point I plan to integrate 2FA.



  • You can backup the entire file then. I get your point, but it also seems like you’re referring to some container-based approach where you would place this inside a container and then mount the config file to some path. While some people might like that approach, that kind of goes against the original idea here, I didn’t want to run yet another instance of nginx for auth, nor another php-fpm - the ideia was simply to use this on a low power device , no containers, no overhead of duplicate webservers and PHP, just a single nginx running a couple of apps on the same php-fpm alongside this.


  • Well, it isn’t pretty, but gets the job done.

    The thing with PHP in this case is that I was already serving a ton of simple websites / small apps like freshrss that use PHP and by making this tool in PHP it means I don’t need yet another process running and wasting resources, can just re-use the existing php-fpm for this.

    For what’s worth PHP is better than it looks, and my implementation is very crude, but also small and auditable and contained to a single file. :)