All articles

  1. My Bash Prompt

    Bash Prompt Example

    I recently updated my Bash prompt. It started because I wanted to incorporate git status information into the prompt. But once I got that working it turned out I didn't really like it so I ditched it but kept the other stuff I did.

    Here's the relevant portion from my …

  2. Let's Encrypt with Cloudflare

    If you're like many smaller site admins you probably use both Let's Encrypt and Cloudflare's free tier (this is not a paid endorsement). Normally, you'd just run certbot renew as a cron job and that would be enough. The problem is when certbot tries to validate your domain ownership Cloudflare …

  3. Cloudflare Dynamic DNS Updater

    Like me you probably run a website or Minecraft server from your home lab. Of course you could use one of the dynamic DNS services but they usually don't let you use your own domain (at least, not for free). But Cloudflare's free tier is pretty robust and the DNS …

  4. SSH Daemon on Alternate Ports

    There comes a time in every sysadmin's life where they need to run SSH on an alternate port. Should be as simple as adding multiple Port <number> directives to /etc/sshd/config and issuing a restart to the daemon.

    Except SELinux, as usual, finds a way to rain on the …

  5. Deduplication and You

    I was doing some backups and realized my photos, which I keep in Dropbox (sue me) were taking up about 50G. I knew there had to be a lot of duplicates but searching for them through 50G of files would be tedious. This seemed like a task that should be …

  6. Encryption with a Funky Partition Layout

    I recently ran into some trouble with the system while mucking around and decided to take the opportunity to restructure my partitioning layout and do a full OS reinstall; this time with full disk encryption (except /boot). Suffice it to say, the Fedora installer is fairly flexible, but not nearly …

  7. Weather Shell Function

    Here's the weather function I use when I'm too lazy to look out the window. The only configuration is a free API key. The main selling point is that it geolocates so you don't have to remember where you are. Though this has drawbacks if you're running it …

  8. CIFS, fstab, and You

    Let's say you're a Linux admin in a Windows shop (ha) and you'd like to be able to access your company shares via a real operating system. Even more, you'd like these shares to be accessible immediately after boot.

    //<server>/path /path/to/mount  cifs credentials=/home/<username>/.smbcreds,uid …
  9. Leveraging LVM Caching

    I recently implemented LVM caching based largely on Richard WM Jones' post and thought I'd document my own experience here.

    I started with an SSD containing /, /home, and swap, two 2 TB HDDs (sdb, and sdc) and an additional SSD (sdd).

    [root@bender ~]# lsblk
    NAME            MAJ:MIN RM   SIZE RO …
  10. Enable SSD Trim Support with systemd

    # systemctl enable fstrim.timer
    Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/fstrim.timer.
    # systemctl start fstrim.timer
    # systemctl status fstrim.timer
     fstrim.timer - Discard unused blocks once a week
       Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled; vendor preset: disabled …

Page 1 / 2 »