Archive for category Tutorials

Because old archived logs on secure servers are pointless…

Posted by ajfarrell on Wednesday, 9 September, 2009

Often we get Nagios alerts letting us know that your kernel is about to panic and your server is going to crash and die because read/write operations are going to FAIL MISERABLY.

Obviously being a systems administrator it becomes your job to figure out what can go, what needs to stay, et al.

I’ve found that archived logs (logrotate) on a secure server often can be quite large. And on a low-end configuration with a server with only 40G it becomes a nuisance when you have a few Gb of data…
And you all probably know this, but Tim asked when I’d blog. So… I’ll make sure!
Having 40 or 50 files is a pain to manually delete. Sure, you could probably rm -f *.1 *.2 *.3 etc etc etc but that becomes too much of a pain.

On BSD systems there is an awesome counter called ‘jot’; it works exactly the opposite of the GNU command ’seq’; so for a rudimentary example to remove all files it becomes a simple one liner–

  • jot 6 1 |while read i; do rm -f *.${i};done
  • seq 1 6|while read i; do rm -f *.${i};done

In Emeril fashion: BAM! You’re now out of the clear.

Basic Screen Tutorial

Posted by tbielawa on Thursday, 3 September, 2009

I wrote a basic GNU Screen tutorial a while back for my work place. I’m posting it here for the unknown masses to enjoy too.

And now I present, Using GNU Screen. (DocBook Source & Makefile)

Setting Up An OpenGL Project Using Apple Xcode

Posted by abutcher on Monday, 31 August, 2009

OpenGL

Shaggy and I drafted this guide to setting up your OpenGL development environment in Apple Xcode for cs470 (Introduction to Computer Graphics) at WVU.  It follows you through installing Xcode and including the relevant frameworks for creating a stock C++ OpenGL project.  Shaggy formatted it in DocBook and I think the result is pretty sexy.  Try it out for yourself!

View the tutorial here: opengl-in-xcode

Linux 101 Tutorial for LCSEE

Posted by tbielawa on Sunday, 30 August, 2009

Andrew and I put together a small Linux 101 tutorial for new CS kids in our department. We collaborated on it using google docs for the outline and then google presentation to make the actual presentation.