Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)DI
DigitalDilemma @ digdilem @lemmy.ml
Posts
3
Comments
601
Joined
2 yr. ago
  • For a server os, do things like consider stability and ease of upgrading between major versions.

    Debian does both of those things extremely well.

    If you're playing around with changing distros and your data is valuable, I'd try and find somewhere to back it up to, myself.

  • Ok - and what sort of cpu load do they have?

    htop will also show the cpu bars and the breakdown of that - whether it's pure cpu or iowait, which is when the cpu can't do anything because it's waiting on disk or network.

    And how's your memory usage looking?

  • I'm guessing you've already turned it off and on again. If not, seriously, do that. It works more time than it doesn't for random weirdness.

    Run 'htop' and sort by CPU (it's a friendlier and better version of 'top'. That'll show you what processes are using the most CPU

    Whilst you're in there, check the free memory. If that's low, or swap usage is high, then use htop to sort by memory usage to find what's using the most.

    If you see processes you don't recognise, hit google and find out why. It's very unlikely they're malicious, but it's far less common on linux than Windows to have random processes doing unknown stuff. If it's using a lot of cpu or memory, there'll be a reason. It might be a dumb reason, but you will be able to find it out.

    And then when you know what the guilty process is, if it is that, and it's not critical - you can stop it with systemctl and narrow down what's afoot.

  • Before this year, the thought of an entirely arbitrary block to things like American cloud services by America to its European allies would have seemed extremely unlikely. It would make no sense, the damage to America and it's GDP would far outweigh any any political benefit.

    All of those reasons still hold true, but I absolutely assure you, European governments and companies all over have that possibility firmly in their risk portfolio now. America tells microsoft to immediately not only stop selling products in Europe, but disable those already in use? Ditto Google. Ditto Apple. Ditto all the hundreds of IT hardware producers that are American. Want to cripple a foreign government that uses MS Office? Remotely disable it. job done. Sure, it would be illegal, but America's government has no respect for law.

    (Even before this, several European governments were using open source (Germany, France, Austria, Portugal - there's a list but this is less about idealism and more about protecting themselves from the unpredictable as well as not trusting America with their data any more. Every thing like this can only be seen as non Americans distancing themselves from America every way they can, and with good reason.)

  • Other have answered the runtime and load question very well already.

    I have three other points.

    1. Batteries degrade over time. Over-speccing your UPS means more likelyhood that things will hold up in three years time as the capacity given is for new ones. Plus, not running your UPS at 100% capacity reduces its stress. Again, more reliable.
    2. You can get a much better quality UPS by buying a second hand one without batteries off ebay and replacing them yourself, typically for a fraction of the cost of buying new. Plus you know you have new batteries. UPS is something where quality genuinely matters. I've had to carry a cheap and badly made UPS out of an office whilst it was on fire, so now I spec more carefully. (And ensure they're metal bodied!)
    3. Consider what you NEED to power. What sort of power cuts are you expecting? Does it matter if something goes down?

    I UPS my servers and my main desktop, but not my routers, nor my wifi or IOT things. My internet provider also goes out when there's a cut (I'm on a mesh system so rely on neighbours, who will typically also be down) and I can't do much without power anyway, but it keeps the disks spinning. We typically get very short automated outages here of less than 10s (yesterday was a bad day, we had 9 within 2 hours)

  • World News @lemmy.ml
    DigitalDilemma @lemmy.ml

    America drops to 46th place in Sustainable Development, behind Cuba, Thailand and other "third world countries"

    Under this methodology of all 193 UN Member States – an expansive model of 17 categories, or “goals,” many of them focused on the environment and equity – the U.S. ranks below Thailand, Cuba, Romania and more that are widely regarded as developing countries.

    In 2022, America was 41st. Interesting to see where it will be after this term of office, which looks set to be working against many of these aims.

    Historical Artifacts @lemmy.world
    DigitalDilemma @lemmy.ml

    Skara Brae Buddo - 5,000 year old figurine. Buddo means "Friend"

    On display at the Stromness museum. Carved from whalebone and believed to be a child's doll.

    Was discovered at the famous Skara Brae site, and then spent years forgotten in a box at the museum before being rediscovered.

    https://www.bbc.co.uk/news/uk-scotland-north-east-orkney-shetland-36526874

    Linux @lemmy.ml
    DigitalDilemma @lemmy.ml

    Stopping a badly behaved bot the wrong way.

    I host a few small low-traffic websites for local interests. I do this for free - and some of them are for a friend who died last year but didn't want all his work to vanish. They don't get so many views, so I was surprised when I happened to glance at munin and saw my bandwidth usage had gone up a lot.

    I spent a couple of hours working to solve this and did everything wrong. But it was a useful learning experience and I thought it might be worth sharing in case anyone else encounters similar.

    My setup is:

    Cloudflare DNS -> Cloudflare Tunnel (Because my residential isp uses CGNAT) -> Haproxy (I like Haproxy and amongst other things, alerts me when a site is down) -> Separate Docker containers for each website. On a Debian server living in my garage.

    From Haproxy's stats page, I was able to see which website was gathering attention. It's one running PhpBB for a little forum. Tailing apache's logs in that container quickly identified the pattern and made it easy to see what was ha