I take my shitposts very seriously.

  • 1 Post
  • 210 Comments
Joined 2 years ago
cake
Cake day: June 24th, 2023

help-circle





  • rtxn@lemmy.worldtoSelfhosted@lemmy.worldPewDiePie: I'm DONE with Google
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    edit-2
    20 days ago

    hosting their videos on their own website

    I love that entrepreneurial attitude. If an online service is unsatisfactory, just develop your own software from the ground up and provision the infrastructure from your pocket. Car industry sucks? Just build your own car! GPU prices high? Grab a soldering iron and a handful of sand, how hard could it be?

    Things are always more complex than they appear. The whole point of services like Youtube and Patreon is to offload that complexity onto the provider in exchange for a fee (or some other form of compensation) from the user. Just look at how many early Lemmy instances have gone offline because of the overwhelming financial or administrative burden. Hate the companies all you like, and by all means look for independent solutions, but don’t pretend they offer no value whatsoever.





  • rtxn@lemmy.worldtoSelfhosted@lemmy.worldVPN server on router or within home network?
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    edit-2
    28 days ago

    Tailscale. It does some UDP fuckery to bypass NAT and firewalls (most of the time) so you don’t even need to open any ports. You can run it on individual hosts to access them directly, and/or you can set it up on one device to advertise an entire subnet and have the client work like a split tunnel VPN. I don’t know about OpenWRT, but both pfSense and OpnSense have built-in Tailscale plugins.

    People are freaking out about their plan to go public, but for the moment, it’s a reliable, high quality service even on the free tier.

    I’ve also used Ngrok and Twingate to access my LAN from outside, but they simply use relay servers instead of Tailscale’s black magic fuckery.


  • Ansible is an abstraction layer over system utilities, shell, and other programs. You can specify what you want to happen, and it will figure out how to do it. For example, you can use the ansible.builtin.package module to specify which packages you want to be present, and Ansible will decide which specific package manager module should handle it and how.

    Ansible tasks are also idempotent – they are concerned with the end state instead of the action. Many of the modules (like the package module above) take a state parameter with the possible values of present or absent (instead of the more common “install” and “remove” actions). If the system’s state satisfies the task’s expected end state (e.g. the package is already present), the task will be skipped – unlike a shell script, which would simply re-run the entire script every time.

    Ansible also implements strict error checking. If a task fails, it won’t run any subsequent tasks on the host since the end states would be unpredictable.




  • Perhaps there was an easier lighter-weight way of doing this?

    sshuttle does exactly that. It’s basically a VPN that uses SSH tunnelling. If you have a host in the same network as the target machine, and you can SSH into it, sshuttle can route all TCP traffic between you and the target (or a subnet) through the host without having to bind local ports manually.

    sshuttle -r ssh_server <targets/subnets...>
    






  • are rolling release distros stable enough

    I’ve been using Arch (or some flavor of it) for several years, and I’ve never had any serious issues that I didn’t cause myself. The thing that might catch you with your pants down is if a dependency introduces a change that breaks another application, but catastrophic failures are fairly rare, as long as you’re willing to learn how to maintain your system.

    is it possible/easy to roll back to a previous version

    Yes. The application is called Timeshift, and it’s specifically designed to back up the system files to a separate partition. If your root filesystem is btrfs, it can also manage filesystem-level snapshots that you can roll back if you bugger the system.