CUPS and POP!_OS

Ok, sometimes I use this blog so I can find stuff later. So, Andrew, if you find you can’t add a printer in System76’s Pop!_OS because your login and password don’t let you log into CUPS, try: sudo usermod -aG lpadmin $USER Courtesy of https://github.com/pop-os/pop/issues/1262.

September 6, 2021

Dual Booting with EFI, The Joy of

For several years I’ve purchased my laptops from System 76. They’re good, and I’m on my third laptop. Many moons ago I needed a hardware swap-out while I was on a 2-week R&R from an Iraq deployment, and they hooked me right up. (I also live 30 minutes from where their HQ was at the time.) I learned the hard way that I needed Windows to control the booting of Windows and Linux (usually SUSE), or Windows patches would never work quite right. ...

May 31, 2020

Python argparse with defaults -- in-script and importable

I’ve tried using argparse (and optparse before that) and have had trouble finding a workflow that made me happy. This one is pretty close. It allows you to make defaults for when you call a script on the command line and makes those same defaults available if you import the module. It works like this: Make a dictionary with the defaults you want. In the function you write that parses the arguments, use the dictionary values as the defaults. Merge the defaults dictionary and the arguments dictionary together. Return the merged dictionary. The Gist version is available here, or you can see it below, too. ...

June 27, 2017 · Andrew Diederich

Fixing Linux Firefox DEE (mail.mil)

It’s a constant battle to be able to receive my Defense Enterprise Email on linux. (Heck, it’s not that far off on Windows, either.) I had it working, then it stopped, and militarycac.com came to the rescue. It turns out that you need to renegotiate the SSL session while authenticating, which is a security hole. https://militarycac.com/firefox.htm had the right info for me: You’ll need to enable SSL renegotiation, do this by pointing your browser to about:config. After confirming that you know what you are doing, you need to start typing in: ...

March 26, 2015

KDE screen savers

It’s just a small thing, but had annoyed me for a while. The “Screen Locker”, from Iguana > Configure Desktop > Display and Monitor > Screen Locker, has a slide show option. Gnome seemed to have dumped this, so I was happy to see it in kde. I’m not big on fancy transitions, anyway, and the random ones here were impossibly slow. Why transition every five seconds to a new picture if it takes 30 seconds to paint a new screen? https://bugs.kde.org/show_bug.cgi?id=182104 is the reported bug, and the fix still works. Edit ~/kde4/share/config/kslideshow.kssrc, and add EffectsEnabled=false after the last line.

August 11, 2013 · Andrew Diederich