SSH Daemon on Alternate Ports

Posted on Sat 25 June 2016 in miscLeave a comment

Their 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 …

Continue reading

Deduplication and You

Posted on Fri 22 January 2016 in miscLeave a comment

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 …

Continue reading

Encryption with a Funky Partition Layout

Posted on Mon 18 January 2016 in miscLeave a comment

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 …

Continue reading

Weather Shell Function

Posted on Sat 12 December 2015 in miscLeave a comment

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 …

Continue reading

CIFS, fstab, and You

Posted on Tue 24 November 2015 in miscLeave a comment

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 …
Continue reading