tui-tools

Guides

Written after the work, not instead of it

Every guide here comes out of something that was actually done on a real machine. The commands are the commands that were run, the output is the output they produced, and where a claim can be checked without taking this site's word for it, the link to check it is in the text.

  • A security posture check with tui-secure

    Eight questions about a server, each answered with the command that answered it, and the fixes that belong to this tool applied one at a time. One walk through tui-secure on a Fedora server over SSH, from the first score to the kernel hardening keys surviving a reboot.

    tui-secure

  • An account from creation to removal, with tui-users

    A new colleague needs a login on a Fedora server, then a key instead of a password, then less access, then none. One walk through tui-users over SSH, from useradd to userdel, with every command shown before it runs and each step checked from outside.

    tui-users

  • Converting a cron job to a systemd timer with tui-cron

    A nightly backup runs from root's crontab and you want it as a systemd timer, with a next run you can see and a run missed while the machine was off caught up. One walk through tui-cron on a real machine, from reading both schedulers on one screen to removing the old cron line, with every preview dialog as the tool showed it.

    tui-cron

  • Managing a server's ufw firewall over SSH with tui-firewall

    Turning on a firewall over the SSH session it is about to filter is how people lock themselves out of a server. One walk through tui-firewall on Ubuntu's ufw, from a second machine, with SSH allowed first, web ports opened, a port kept to one network, a rule deleted, and every result checked from outside.

    tui-firewall

  • Shrinking the systemd journal safely, with tui-logs

    The journal has grown and one service is writing most of it. tui-logs shows what the journal costs, which unit is filling it, keeps a copy of the lines worth keeping, writes a size and age limit as a previewed drop-in, and then vacuums and rotates with every command shown before it runs.

    tui-logs

  • Snapshots and undoing a change with tui-snapper

    Put a btrfs subvolume under snapper, take a snapshot before a change, see what the change did file by file, put the files back with undochange, and keep the history short with retention limits and a cleanup. One walk through tui-snapper on a real filesystem, with every confirm dialog as the tool showed it.

    tui-snapper

  • Turn off SSH password login safely, with tui-ssh

    Before passwords go, make sure somebody can still get in with a key. tui-ssh shows who has one, writes PasswordAuthentication, KbdInteractiveAuthentication and PermitRootLogin to a drop-in it checks with sshd first, warns when an earlier file would win, and reads the result back from sshd -T. The proof is a second machine that gets refused with a password and let in with a key.

    tui-ssh

  • Adding a disk to fstab safely, with tui-disk

    A line in /etc/fstab that does not parse is a boot that stops in an emergency shell. tui-disk picks the device by UUID, checks the staged file with findmnt before you are asked, shows the one-line diff, and then reads the drive's health and the btrfs state back.

    tui-disk

  • Fixing a failed service with tui-systemd

    A service failed and you want to know why, fix it, make it restart on its own, start it at boot and give it a nightly timer. One walk through tui-systemd on a real machine, with every preview dialog as the tool showed it.

    tui-systemd

  • A local CA with tui-cert

    Certificates for an IP address or a name no public DNS carries, from a small certificate authority of your own. Create it, issue with DNS and IP names, copy it to another machine, trust it or stop trusting it, and read what each finding means.

    tui-cert

  • Opening ports on a cloud image's iptables firewall

    Many cloud images ship no ufw and no firewalld, just an iptables ruleset whose INPUT chain ends in a REJECT. A rule appended after it never matches. tui-firewall inserts in front of it, persists with a diff, and says when the running rules and the saved ones disagree.

    tui-firewall

  • Transactional updates on a small server

    The upgrade runs inside a btrfs snapshot of the root; at reboot two renames swap it in, and rollback is the same two renames backwards. Built, measured and put through a 34-item acceptance list on a Secure Boot VM.

    tui-update