projects

Bash script to measure bandwidth

I wrote a bash script to measure the amount of bandwidth, and to count the number of connections to the server, and used cron to run it once an hour. The results are written to a log. It works nicely, although I'm guessing my math is off a bit in calculating the bandwidth.



Ubuntu kiosk edition v1.0

Updated 03/16/2010: I am working on a kiosk build using 9.10. This should be posted soon.

One of my projects at my current employer was to use Ubuntu as a public kiosk after our Windows kiosks started prompting users for credit card information. After building the image up on a test machine, I used the excellent remastersys project to build an image to use for future maintenance. I am making this image available here.

This is a live CD that is currently built on Ubuntu 8.04.1 LTS and has most of the extra software removed, such as the games and unnecessary utilities, and is suitable for both wired and wireless kiosks. Please read on for notes and implementation.



Bash script to delete files from sub directories

Categories:

I needed to remove files from quite a few sub-directories in a directory, but couldn't remove the sub-directories. The attached script does just that.



Script to create bridged networking for VirtualBox

Categories:

Attached is a script that I've created to create and configure a network bridge and TAP interface.

Because VirtualBox requires these steps every boot, I figured I'd make it easy. Plus, using a static IP requires slightly more work. This script should make it easier.

Run the script as root (or with sudo) and it will ask you some questions, defaulting with some auto detected answers.



This theme is available (Drupal 5.x)

Categories:

This Drupal 5.x theme is available for download here. There's not a whole lot to it, but it is XHTML compatible, search engine friendly and looks good across browsers (a little fuzzy in IE 6, but what isn't). If anyone has any corrections, or improvements, let me know.

v1.1 - A couple of small fixes.

v1.2 - Added node.tpl.php to fix the validation when taxonomy terms are enabled. The default node template used span tags to wrap the unordered lists, which fails validation. I changed them to div tags.