• 60 Posts
  • 1.89K Comments
Joined 2 years ago
cake
Cake day: July 5th, 2023

help-circle


  • You can do encrypted swap as well. If you use the same passphrase you can install decrypt_keyctl and use it as described here. It will cache the passphrase and send it to every other LUKS volume that needs decrypting so you have to type it only once. This is what I’m currently using and my root is on ZFS on LUKS.

    Another option which I haven’t used is to have a small volume that only stores your LUKS keys as files, then your LUKS volumes reference those files as keys, then you decrypt only that volume with a passphrase upon boot.

    Another option is to use a swap file. I used to run Ubuntu LTS on LUKS on LVM. That is disk > EFI and LVM partitions > LVM volume boot, LVM volume for LUKS > root filesystem inside LUKS > swapfile in that root filesystem. Upon boot, GRUB is able to read the Linux kernel straight from the boot volume on LVM. Boots the kernel. You get a prompt to decrypt the LUKS volume where the root filesystem is. Once decrypted, the kernel can access the swapfile if it needs to resume from it. If I didn’t use ZFS, I’d be using this scheme as it’s superbly flexible. Growing the volumes and filesystems for larger storage is easy. Adding redundancy via LVMRAID is easy. Changing the swap size is easy. Hibernation works.



  • My point is that this could work to pierce the programming which makes people unwilling to learn. Two years ago I might have reacted to what you’re saying just the same as Fizz does today. What helped chip away at my programming is the sort of explanations that take what I understood already. Also the audience isn’t Fizz alone but also the multitude who only read the discussions. I’m only saying this because you’re spending a lot of time and effort to talk to people already. Not because I have the right to demand more work. 😄


  • I think you may get better results if you talk about what people understand in their own lives. People understand how utterly undemocratic the private sector of the economy is. They also understand how unrepresentative the reps the dominant parties present for election. They understand who pays for their politics. People also understand how democracy works in non-partisan settings like municipalities, school boards and so on. Often people don’t realize these things and need help to connect the dots and build a complete picture, but they understand what’s going on. Once the picture is in place, they get it. Then from there you could draw parallels between parts of that picture and China to explain in terms people understand. E.g. the political democracy works similar to municipal democracy, no parties, just candidates and elections.





  • It’s more than a packaging format but yes. It includes all dependencies needed to run the main program in a container but the kernel. It’s a complete separate root filesystem. When you run it, as intended, a single process is started which loads all the things it needs from that filesystem. It’s isolated from the rest of the system unless you share resources with it, like directories or special devices. Obviously this results in larger packages but there is a clever way to save on that overhead with layering, so in practice while still significantly larger than single program deb files, it’s not nearly as bad as it sounds. The thing is that Flatpak and Snap also package dependencies to a different degree.









  • (sorry for the long delay)

    No prob whatsoever. I appreciate your time.

    As for the computer, I have no idea and I’m not skilled enough to check. I ordered some push-pull quad channel buffers from TI and Nexperia, SOIC breakout board and decoupling caps. Unfortunately I made it work using a Trinket M0 with a trivial CircuitPython program before those arrived. Already tested it on a bike ride and just sitting powered on over 24 hours. No failure so far, so I conformally coated it and installed it. The fly was killed with a bazooka. 😂 And so I think I’m gonna keep it like that and will revisit the new buffer ICs I bought if it fails again, or if I need to build another adapter. Thank you for your help!



  • This is my attempt at a diagram of it. There’s 3 connectors, bike computer PAS, Bafang PAS torque sensor, DC barrel (battery). There’s a Recom DC-DC with built-in wire leads. There’s a breakout board on which I’ve soldered the buffer onto. All lines on the diagram are short, thin wires, 1-4cm in length. As far as I know, there’s a pull-up resistors inside the bike computer on its inputs. I can see the values going high when I disconnect the cable from it (there’s debug screen on the computer that shows the input values). When assembled it becomes a part of a cable. I’m using heavy duty heat shrink tubing for structure. I have one of these working on another bike without issues for a while now. The components in the adapter are the same, but the bike motor and controller are slightly different, so there could be differences in what noise there’s in the system.

    Yesterday I replaced the Nexperia IC for a TI which I had on hand, no capacitors still (on order). The TI worked well during a test for an hour. Then it stopped working at LOW, just like the Nexperia. Is it possible for these events to be damaging the IC? I feel like newly replaced chips last a little longer during first use, then they stop working much faster after recovery.