This is a brief howto for finding out which version of Linux you are running. I say “brief” because this is certainly not comprehensive. There are a few ways to skin this cat, depending on which Linux distribution you are running. I will only cover Debian and Ubuntu. Similar techniques may work on other distros (especially Debian derivatives) but your mileage may vary. …Continue reading » How to Find Out Which Version of Linux You Are Running

Today I had to copy a really big file (in this case, a Ghost image) from a Linux box to a Windows box, using Samba. My first instinct was to use the cp command. The problem with cp is that it does not show you any sort of progress (I couldn’t find any relevant option in the cp man page). What I wanted was a progress bar display like the one wget displays.
I did some googling and found a few decent candidates: …Continue reading » How to Copy a File and Get a Progress Bar, in Linux

Have you ever wanted to make cron run a scheduled task on some weird interval like every 29 days? I was faced with that problem just the other day.
I was starting to get annoyed with DynDNS’s nag emails, asking me to either log in and “touch” my WRT54GL router’s host record every 30 days or to upgrade to a paid service that does not require a periodic touch.
Of course, you can create a cron job that calls programs like ez-ipupdate to automate this periodic touching. The problem is, even though cron is quite flexible, it does not support intervals of 29 days. …Continue reading » Stupid Cron Tricks

Soon after posting yesterday’s blog entry, How To: VPN Between RV082 (or RV042) and WRT54GL (or WRT54G), I received a comment from Paul Wouters:
Use dpdaction=restart
btw yout ike/ipsec lifetimes are insanely short. you should not do that. leave them default, and the shortest one of the other device will be used.
Paul, if you’re reading this, thanks for the tips!
I wasn’t sure how I could have missed that useful dpdaction=restart setting so I went back and checked the ipsec.conf man page this morning. Sure enough, the dpdaction=restart setting was missing from the man page. That’s why I missed it! See! I did RTFM!
Anyway, I did some googling to find out more about dpdaction=restart and I came across this Openswan mailing list message, authored by none other than Paul Wouters: …Continue reading » A Virtual Visit from Paul Wouters
