SSH – disable StrictHostChecking as well as writing key to known_hosts

I often do a lot of work with temporary Vagrant, Docker, VMs, and I don’t really want those host keys clogging up my ~/.ssh/known_hosts file. So I just add the following alias to my shell “rc” file. In my case, I use zsh so it’s ~/.zshrc :

alias ssh-nocheck="ssh -o 'StrictHostKeyChecking no' -o 'UserKnownHostsFile /dev/null'"

Viola!  Now all I need to is to use something akin to:

ssh-nocheck -p 2222 root@

Mac Guest User And the Pet Semetary

Well, this killed an hour this morning.  So I ran some Mac updates the other day and now every time I (re)start my Mac, the Guest user shows up as one of the user choices even though it was disabled.  I’m running OSX El Capitan and using FileVault and it looks like some weird bug with the EFI implementation.  So at least there is a fix found by someone much smarted than I in the weird way of Macs.  Here is the fix on StackExchange

Hostname on AWS CentOS 7 EC2

I was setting up a shiny new CentOS 7 EC2 instance, but when I tried to set the hostname using all of the typical Linux-y ways, none of them stuck after a reboot.  It just kept going back to the default EC2 naming convention of ‘ip-172.31.x.x’.  Since I am still getting used to CentOS 7 and all of the stuff they changed from 6, I figured it was a CentOS 7 thing.  Not so…

Read more

Windows – Can’t delete local printer port

Another reason I hate dealing with MS. I have had this issue with every version of Windows as far back as I can remember so obviously they will never fix the code.  So, you want to reconfigure a non-working printer or remove an old entry in the printer server “Ports” tab.  But Windows won’t let you – it says that the “Resource is in use.”  Huh?  I deleted the printer, now I just want to delete the local/TCP port.  Turns out there might have been old jobs sticking around and they need to be cleared out first.  Uggh.

This isn’t my solution, but I just want to give a shout out to the guy who posted it and hopefully one extra link will give him that much more Google ranking cred.

Ubuntu 10.04 + AVCHD + FFmpeg: Converting .MTS files to MP3

Well, it’s been awhile since I posted last. Been a little busy.

Where I work, we have to convert a lot of audio/video to another format for transcription purposes. Mplayer and ffmpeg have been lifesavers for me. However, getting setup to convert the newer .MTS (AVCHD) files that the latest videocams use was a little tedious as Google searches often yielded a lot of results that were not quite the solution I needed for Ubuntu 10.04. I realize this is a moving target for each release of Ubuntu, but hopefully this will help Ubuntu users (NOTE: this is more helpful for me as I will forget how to do this in 2 weeks). Here goes nothing!

OK, ready? Get a cup of coffee as this is going to take awhile…

  1. Read more

The Pesky HP “Only One Copy?” Mystery Solved!

Here is one that took a bit o’ detective work to solve.  A client of mine was lamenting how they couldn’t print multiple copies to their HP4200 printers, unless the document was longer than one page.  If the document was one page, you could set the number of copies to one bazillion and it would still only print one copy.

A Google search turned up a boatload of hits, but no fix.  The solutions ranged from unchecking/checking “collate”, disabling “mopier/job storage” options, etc., etc.  Tried them all to no avail.

But then the answer came down from high, so I’ll spare you the boring details of how I arrived at the solution.  Actually it was part luck, and part deductive reasoning (well, OK, mostly luck).  The answer simply boiled down to the Print Processor setting. Read more

Automagic Bridged Networking Under *Ubuntu (and maybe Debian?)

I use Virtualbox for all of my virtual machining needs.  For some of my guest vms I like to use “host” networking, meaning that essentially the vm will share the hosts network adapter using a bridge and a TAP interface on the host computer to perform its virtual networking magic.  However, it can be a little more tricky to setup than using Virtualbox’s other type of networking, NAT.

However, with two packages “bridge-utils” and “uml-utilities” the chore of setting up a bridge interface on Ubuntu (and maybe even Debian) is almost pain free. Read more