Category Archives: Shell Scripting

Seamless SSH

I’m transitioning my daily work desktop from OS X Leopard to Kubuntu Hardy. (I’ll be writing more about that in the future.) My job is split between managing people and doing development and system administration for a bunch of Ubuntu boxes, so running the same platform that I’m administering makes a lot of sense. I [...]

Correction to Ubuntu Geek’s “How To Check Your External IP Address From The Command Line”

I follow the Ubuntu Geek blog, and have found some very useful tips there. However, there’s a problem with their latest tip, “Howto Check you (sic) external IP Address from the command line.”
Some background: There’s a very useful website located at whatismyip.com, which reports the IP you used to connect to the site. If you’re [...]

Setuid & Chown interaction that almost put me in the fetal position, whimpering

I’m putting together a postinst (post installation) script for a Debian package I created for work. And there’s a little C program in there that needs to run as root, but be called by a regular user.
Well, there’s a standard way of doing that in Linux/Unix, called setuid. You set the “setuid bit” to on, [...]

How to Remove All Subversion Folders From A Directory Tree

Say you’ve got a Subversion source code tree checked out, and for whatever reason you want to remove all Subversion directories inside that tree. (The thing that makes a Subversion tree a Subversion tree is the presence of a “.svn” folder in every folder of the tree. If you had a complicated source tree with [...]