Tuesday, April 24, 2007

My first bash hacking in 7 years...

Last time I did a BASH (linux shell) script was, I think, back in y2k. I ran Caldera Openlinux in an ancient underpowered 233Mhz Pentium I, and the desktop was then bloated KDE. Nowadays, I run Blag, based on RedHat's Fedora Core 6.
But now I was fed up with having to manually seek, download and install "pptpconfig" to get a friendly-easy to use PPTP VPN applet. (Blag includes PPTP but for some reason pptpconfig is not included).

So, I spent a couple hours tonight reading -once again- about bash scripting HERE and HERE, and thanks to a great tutorial on Gnome desktop integration at RedHat's site HERE - I was able to code a simple script which downloads the required RPMs from Fedora repositories, calls the YUM system updater, and installs everything required for PPTP VPN networking into blag, creating a default launcher with nice icon in the desktop. It's a pretty simple script, but nobody had done it before. So here it is. I have released it under the GPL, for what it's worth.

WOW,I can still code stupid little shell scripts!. What an ego boost!. ;-)

Specially since my attention defficit personality usually makes me leave my programming projects incomplete at the first sign of trouble... this time that didn't happen and it was kinda fun, reminded me of my first babbling with OS/2 Rexx...



No comments: