• 1 Post
  • 41 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle

  • I cannot recommend any USB-connected drive for long-term use. (Only for portable devices that get plugged in for a little while at a time.) In the long term, any USB drive will randomly reset during periods of heavy use – including heavy writes, meaning some data will get lost.

    USB enclosures tend to just crap out completely after a year or two, if used continuously on a server. I know because I twice used 1TB external drives with OpenWRT (home router) devices. The data will be safe on the drive, but you’ll have to replace the enclosure.

    1. My first recommendation would be to look very carefully at the chassis and see if there’s any way at all to fit another SSD inside it. 2.5" SSD’s are usually thinner than 2.5" hard drives, so it may be possible, and most motherboards have more SATA ports than they need.

    Is there possibly an NVMe slot on the motherboard? Or an open PCIe slot where you could put an NVMe adapter?

    1. My second recommendation would be using a 2.5" hard drive. Newegg has a 5TB one for $135, but unfortunately that’s as large as they seem to go. It will be a bit slower than an SSD, but still probably around 150MB/s for sequential access.

    2. My third recommendation, if money is really tight, would be an additional server, with a large 3.5" hard drive. This will be a lot cheaper than an 8TB SSD, but adds complexity, electricity use, space use, and possibly fan noise.


  • Actually, I think that’s a really good idea. Just be aware of possible inductance in the long wires from the transformer area going to the camera. Putting a large electrolytic capacitor next to the camera should fix that.

    As for your bell, there are dead simple systems that use a battery-powered stick-on button with a transmitter, and a chime/receiver that plugs into a wall. If you want to be fancy, you could find a way to power the transmitter with that 5VDC, in parallel with the camera… or you could just keep it simple and use the battery that comes with the button. They last near forever.


  • Remember that voltage is measured across a pair of wires, so you can’t power the chime with only a single wire. That’s part of what makes this difficult – these doorbell systems only have the bare minimum of wiring in them. Powering the camera and the chime in series with each other is quite difficult. I think a lot of these things just accept the short circuit, and use a battery to power the camera while the button is being held.

    Here is what I was proposing, and I think what ch00f was also proposing. Replace “5VDC power supply” in this diagram with “a full bridge rectifier and a bunch of caps” in their description, and also note that your camera probably requires a well regulated 5VDC supply.


  • The easy way: take your existing wiring. Put an 18VAC to 5VDC power supply in parallel with the pushbutton. Then, the output of that power supply goes to the 5V USB input of your camera setup.

    The downside is that it will reboot the camera every time someone rings the doorbell, because you are shorting across the camera’s power supply.

    You can put a resistor in series with the button to fix this. You will need to find a resistance that’s low enough to still cause the chime to ring, but high enough not to disrupt the camera’s power supply. Maybe start around 20 ohms. If you can’t find a working resistor value, you can change the transformer to a 24V or 36V transformer, but make sure to keep that resistor high enough not to burn out the chime, and make sure your 5VDC power supply can handle the increase in input voltage.





  • Microsoft has enforced mandatory digital signatures for drivers, and getting a digital signing key from Microsoft costs a ton of money. So, presumably they do care.

    In contrast, consider nProtect GameGuard, the anti-cheat system in Helldivers 2. It is a rootkit, and runs in the kernel. Why does Microsoft permit this? Shouldn’t this be blocked? It must be using either an exploit like the article, or a properly signed driver. Either way, Microsoft could fix it – by patching the exploit, or revoking the signing key.

    The fact that Microsoft hasn’t done anything about malicious anticheat rootkits is a sign that they really don’t care. They just want their payment.





  • Headlines like this are problematic. I think we can all agree that Trump has done a lot of damage to democracy in the US, but are rural Trump supporters really more dangerous than urban Trump supporters? That claim is suspect, and the article provides no evidence to support it (it provides evidence that most Trump supporters are rural, which is a totally different claim.)

    And saying that white rural Trump supporters are worse than non-white rural Trump supporters is an even more serious claim. It’s racially discriminatory, and seems totally baseless in this article.

    The article has no evidence of these claims, and seems to indicate that the book doesn’t even make the claims of the headline.

    (I’m not objecting to the claims that Trump supporters are mostly rural and mostly white. That is common knowledge.)


  • Using a VPN (like Tailscale or Netbird) will make setup very easy, but probably a bit slower, because they probably connect through the VPN service’s infrastructure.

    My recommended approach would be to use a directly connected VPN, like OpenVPN, that just has two nodes on it – your VPS, and your home server. This will bypass the potentially slow infrastructure of a commercial VPN service. Then, use iptables rules to have the VPS forward the relevant connections (TCP port 80/443 for the web apps, TCP/UDP port 25565 for Minecraft, etc.) to the home server’s OpenVPN IP address.

    My second recommended approach would be to use a program like openbsd-inetd on your VPS to forward all relevant connections to your real IP address. Then, open those ports on your home connection, but only for the VPS’s IP address. If some random person tries to portscan you, they will see closed ports.



  • There is no debate between science and religion. The only religions that are incompatible with science are the insane fundamentalists. 99% of Christians don’t believe that the creation story in the Bible is literally true; they believe in evolution. The 1% fundamentalists invented the debate between creationism and big bang, evolution, etc. because they want to force Christians to believe they can’t believe in science.

    I’m an excommunicated Catholic. I was raised Catholic, and went to Catholic school as a kid. The Catholic school taught evolution and a bit of relativity, which are incompatible with creationism.