A Sane Way to Secure VPS

In an era where millions of bots are flying around knocking on your doors, being a little bit paranoid is a good thing

le me

Here are a couple steps that i took to sanely secure my VPS

  • Avoid using idiotic passwords âś…
  • Setup unattended upgrades to keep my machine up to date âś…
  • Setup backups âś…
  • Setup firewalls âś…
  • Setup fail2ban âś…
  • Setup Let’s Encrypt âś…
  • Setup Apache modsecurity âś…
  • Hide sensitive web pages behind Apache auth âś…
  • Hardening WordPress âś…

Am i missing something? Tell me in the comments section bellow 👇

Published
Categorized as Nerding

The Psychology of Money

Today i finished reading The Psychology of Money by Morgan Housel

Trully a great book about money and personal finance

It’s all about mindset kek

These are quotes that i found interesting

  • Financial success is not a hard science. It’s a soft skill, where how you behave is more important than what you know.
  • The accidental impact of actions outside of your control can be more consequential than the ones you consciously take.
  • But realize that not all success is due to hard work, and not all poverty is due to laziness. Keep this in mind when judging people, including yourself.
  • Happiness, as it’s said, is just results minus expectations.
  • “Enough” is realizing that the opposite — an insatiable appetite for more — will push you to the point of regret.
  • Planning is important, but the most important part of every plan is to plan on the plan not going according to plan.
  • Room for error — often called margin of safety — is one of the most underappreciated forces in finance. It comes in many forms: A frugal budget, flexible thinking, and a loose timeline.
  • A good definition of an investing genius is the man or woman who can do the average thing when all those around them are going crazy.
  • “It’s not whether you’re right or wrong that’s important,” George Soros once said, “but how much money you make when you’re right and how much you lose when you’re wrong.”
  • Things that have never happened before happen all the time.
  • “The best way to achieve felicity is to aim low,” says Charlie Munger.
  • Controlling your time is the highest dividend money pays.
Published
Categorized as Finance

Upgrade My Debian 10

My lovely Debian 10 has entered the end of its lifecycle

Usually, when upgrading Linux, i always start from the scratch

But today is the time to try something new

Let’s upgrade Debian 10 to Debian 12

I’m using these two guides, 10 to 11 & 11 to 12

Don’t forget to make backups first, in case something bad happens

The upgrade process takes around 20 minutes to complete

After the upgrade, i faced only two problems

First, my WordPress is not running because all my previous PHP extensions have been removed

Just run apt install, and voila, it’s running again

My second problem is that the fail2ban service raises some errors and refuses to start

After tinkering a bit, i decided to apt purge it and apt install it again, and voila, it’s started beautifully

Debian is truly a rock solid distro 🫶

Published
Categorized as Nerding