• Kill a Proxmox VM that won't quit with a one-liner using the pve node's command prompt

    Posted in Developing Software on Jul 06, 2021

    I was using the handy information at Proxmox can’t stop VM – How we fix it! (bobcares.com) for a while. They have a two-line approach which does the job, but displays the (very) long command line for starting a proxmox VM on the screen while doing so. To me, facing a wall of text while searching for the process ID means it takes an extra microsecond or two to perform. So here's the one-liner approach:

    # kill -9 `ps aux | grep "/usr/bin/kvm -id 104" | grep splash | awk '{print $2}'`

    Simply replace the 104 above with the VMID you want to end, and the VM will die immediately.

    Here's the quiet two...

  • Fix Shellinabox "rhostsrsaauthentication" and "rsaauthentication" errors

    Posted in Developing Software on Jun 27, 2021

    ShellInABox is a tidy little app that works well, but when you configure it to connect via SSH directly instead of using its internal shell, it throws up a couple minor errors when logging in:

    command-line line 0: unsupported option "rhostsrsaauthentication"
    command-line line 0: unsupported option "rsaauthentication"
    

    You can safely ignore these two notices, but if you want to remove them, here's how to do it:

    Stop the currently running service.

    sudo service shellinabox stop

    Install git, nano, and some tools needed during compiling code:

    sudo apt install git nano autoconf dh-autoreconf libssl-...

  • Upon glimpsing the unicorn of Riemann's missing one half while awakening

    Posted in Mathy Stuff, Postinfinity Tergiversation on Jun 24, 2021

    I just now, minutes ago, was drifting between awake and asleep. slowly becoming aware of the lightly falling rain outside, while also in a half-dream state, contemplating random mathematical ideas, when I caught a glimpse of the 1/2 which completes the sphere of infinity. I have glimpsed it intellectually many times, but this is the first time I've seen it intuitively, actually seen the shape and how it relates to a sphere and a circle and a 1/2.

    The idea moved like lightning, not for its brilliance, but for its speed. Gone immediately. I was contemplating a sphere, but I was looking through ...

  • Installing ShellInABox on Debian, Ubuntu, Devuan, etc and configuring for white-on-black GUI

    Posted in Developing Software on Jun 21, 2021

    You can install shellinabox with your Debian-flavored package manager with a single command:

    sudo apt install shellinabox

    White text on black screen

    The default setting is a white screen with black text. You can right-click to switch it, but if you're like me you'll want to set it to black screen with white text as a default.

    From the git repository, pull down the CSS needed to make the change:

    sudo wget https://raw.githubusercontent.com/shellinabox/shellinabox/master/shellinabox/white-on-black.css -O /etc/shellinabox/white-on-black.css

    Then open the shellinabox config file for editing:

    sudo n...

  • Configure one-time-password (a.k.a. 2FA or MFA) in Apache using mod_authn_otp and FreeOTP

    Posted in Developing Software on Jun 21, 2021

    I did this on a Devuan system, which is basically Ubuntu without systemd. This not a well-known distro, so your mileage may vary, but I think it will all work as described on vanilla Ubuntu or similar Debian-based flavors. At the end of this article is a list of URLs I used while putting this all together, you can check into them for tips to get things working if you run into issues.

    1. Install the required packages:
    sudo apt install git apache2-dev build-essential qrencode
    1. Use git to pull down the latest code, then cd to changedir into the directory you just created:
    git clone https://githu...

  • Configure one-time-password (a.k.a. 2FA or MFA) in SSH using libpam-oath and FreeOTP

    Posted in Developing Software on Jun 21, 2021

    I did this on a Devuan system, which is basically Ubuntu without systemd. This not a well-known distro, so your mileage may vary, but I think it will all work as described on vanilla Ubuntu or similar Debian-based flavors. At the end of this article is a list of URLs I used while putting this all together, you can check into them for tips to get things working if you run into issues.

    1. Install the required packages:
    sudo apt install libpam-oath oathtool qrencode nano
    1. Generate a 10-digit hexadecimal key:
    KEY=$( head -c 1024 /dev/urandom | openssl sha1 | awk '{ print $2 }' | head -c 10 )
    1. Now...

  • In which I realize my life now is a fractal of a beautiful idea from 24 years ago

    Posted in Everything, Phlosphy Stuff, Postinfinity Tergiversation on Jun 19, 2021

    The following quote brings a compelling moment of perception into clear view.

    Dinah is keen that I not misquote her by writing something as sentimental and clichéd as "being at one with the universe." So she describes a process in which there was a "dissolution of the self" and a "melting away of barriers." She remembers the moment when concepts like "internal" and "external" no longer held true. "I'm not just standing there, looking out at the world anymore. I'm part of the world." After a lengthy pause while she harvests the right phrase, Dinah refers to this fleeting moment as "a state of p...

  • Installing Mx Linux or Ubuntu, Debian, etc. on MacBook Air

    Posted in Developing Software on Jun 09, 2021

    I was oddly not able to find quick hits on this topic when I searched, so I finally just tried it, and it worked so easily I was quite surprised.

    As a long-time attempter-of-things-so-new-that-they-often-fail, I remember when it was a hassle to install Linux on Mac. For years it was frustrating. I guess all the hitches are worked out. Bought a MacBook Air from 2010 from someone, wondering if I could get Linux running on it. I did the following:

    1. burned a USB flash drive with Mx Linux ISO using Etcher
    2. inserted said USB into the MacBook Air
    3. held down the Option button before the chime while star...

  • How many fragments of infinity does it take to make one complete infinity?

    Posted in Mathy Stuff, Postinfinity Tergiversation, Pre-Preprint Stuff on Jun 04, 2021

    A fragment of infinity happens when we count "one, two, three, four," or any sequential series of numbers, and conclude it by saying "and so forth, unto infinity." Note, this not infinity, it is only a fragment of it, which represents it.

    We symbolize this repeated iteration with an ellipses, three dots which mean "and so forth, infinitely." This is how "1,2,3,4..." is a fragment of infinity to represent infinity.

    We say that it represents an infinite sequence, meaning the full, complete infinity.

    However, an infinity of fragments of infinity are still not enough to make one complete infinity....

  • Accessing OPNSense Web UI running within Proxmox on the WAN interface by disabling reply-to

    Posted in Developing Software on Jun 04, 2021

    After I migrated from pfSense to OPNSense for my firewall embedded within a Proxmox lab, I was stumped for two days looking for this obscure setting. It was a problem right out of the box: After I got the interfaces configured and assigned static IPs for the two network interfaces, I tried and tried to gain access to the Web UI using the WAN interface. It worked great from the LAN interface, but was invisible to WAN.

    You may already know it is not a good practice to access a firewall from its WAN interface. That is true, unless you're using the firewall's WAN interface to connect to your local...