Thursday, March 26, 2015

Fixing Linux Firefox DEE (mail.mil)

It's a constant battle to be able to receive my Defense Enterprise Email on linux. (Heck, it's not that far off on Windows, either.) I had it working, then it stopped, and militarycac.com came to the rescue. It turns out that you need to renegotiate the SSL session while authenticating, which is a security hole. https://militarycac.com/firefox.htm had the right info for me:

You'll need to enable SSL renegotiation, do this by pointing your browser to about:config. After confirming that you know what you are doing, you need to start typing in:
security.ssl.allow_unrestricted_renego_everywhere__temporarily_available_pref
set it to true (by double clicking it). After this you should be able to access the site.
 I didn't even need to restart firefox! Now I can be in linux more often, and not just when I think I won't need to check email. DoD is moving to an all-in-one outlook web access (OWA) client, and it is much finickier than normal CAC (smart card) enabled web sites.

Monday, March 16, 2015

Renaming files in Windows

Sometimes the small things are the most helpful. I needed to rename a couple dozen jpg files to "...small.jpg". Through the joys of Internet searching, I pretty quickly came to a solution from http://www.howtogeek.com/111859/how-to-batch-rename-files-in-windows-4-ways-to-rename-multiple-files/ using Windows PowerShell. So with a quick:

PS > dir | Rename-Item -NewName {$_.name -replace ".jpg","Small.jpg"}

FirstPicture.jpg became FirstPictureSmall.jpg. I hadn't installed The Gimp yet on this laptop, but I found through a YouTube video (http://www.youtube.com/watch?v=19GbI6oFrW0) that you can use Right Click > Send To > Mail Recipient, and Outlook (assuming it's installed) will offer to change the size for you.