• 1 Post
  • 28 Comments
Joined 11 months ago
cake
Cake day: August 6th, 2023

help-circle





  • Reminds me of the programs that make the kernel drop FS buffers in an attempt to free up RAM. Or hog as much memory as they can in an attempt to have unused things swapped to disk. Yeah, they free up RAM all right, but at the expense of actual speed.

    Most of the time, this junk is actively harmful. Forget it, modern Linux uses optimized defaults.

    You can get more performance out of your hardware by switching to from heavyweight to lightweight programs - for example, instead of Skype (which uses Electron), choose some other way to chat like irssi for IRC. Instead of Gnome, choose i3 or dwm or something like that. You need a bunch of tradeoffs and learning, though, to really get the most out of your hardware.




  • cizra@lemm.eetoSelfhosted@lemmy.worldSMTP Relay Questions
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    10 months ago

    Having an unauthenticated relay imposes the responsibility to configure it correctly (the “only certain addresses” part) and protect it (the “accessible outside the local network” bit). Are you sure it’s not accessible? Did you remember to test with IPv6 too? Will it remain protected after the next time you mess around with your firewall for some totally unrelated reason?

    If it works - good for you, but be mindful of all the baggage that comes with a new service.







  • Did gou look into what takes up the most memory? You could downgrade from the modern browser with 500 tabs to netsurf with 500 bookmarks, perhaps, or similar. Many modern websites don’t work there, though.

    Instead of Gnome, I’m using Sway, at the moment it’s taking up 236MB resident.

    Do you need that mail client to run 24x7? It’s better for mental health to check mail when you decide (once in the morning), not when some rando wants to sell you cannabis oil (best cure for any ailment!) - or you might find something tiny that checks for email and shows a desktop notification, so you know to launch your mail client.

    Alacritty likes to munch memory, Foot takes up much less, but Foot doesn’t render some colors correctly, for whatever reason.

    Shop around, there are more options than just changing the Matrix client.


  • I wrote a Bash script that uses rsync to copy data elsewhere.

    It gets launched by a systemd timer, but cron would also work. At first it creates a btrfs snapshot of source, for consistency’s sake.

    Then it copies stuff. It’s incremental, ie. unchanged files get hardlinked, not copied (-link-dest against the latest symlink) into date-specific directories that present the full view of the filesystem.

    Finally, it cleans up the source snapshot and rewrites the latest symlink to point to the freshly made copy, if successful.

    I could share my script, if there’s interest, tho it might look a bit messy. Oh, and these rdiff-whatchamacallits probably do the same thing in a more professional manner. I wrote mine to learn rsync.






  • I’m running my own mail server at home. It wasn’t all that difficult to set up, using SNM.

    The biggest hassle happens when my home IP changes (that’s when my router dies for longer than the DHCP lease time), andI have to re-allowlist my home IP in Office365 and whatever the other one was. I get an automated response to the 1st email I send, with instructions how to unblock my IP.