Barack Obama and Joe Biden: The Change We Need
 
Obama '08
Volunteering for change
headline »
Thu, 25/09/08 – 22:27 | No Comment

This afternoon I volunteered at the local field office in South St. Louis for Barack Obama. When I got there there was a flurry of activity, and I could tell people were there because they wanted to be. As we waited for others to show up to get started, I saw a pile [...]

Read the full story »
art

geek

howto

music

politics

Home » Archive by Category

Articles in the howto Category

HOWTO: use monit to keep Lighttpd and Varnish running
Tuesday, 19 Feb, 2008 – 13:51 | 5 Comments
HOWTO: use monit to keep Lighttpd and Varnish running

Thanks to a post from Steve over at debian-administration.org, I finally got around to setting up monit, the little monitoring app we use at work to keep things sane.  I was getting around to installing it at home, but it became more urgent when Varnish went down last week; without it running there’s nothing to [...]

HOWTO: log the user’s IP, not the proxy’s, in Lighttpd access log
Wednesday, 9 Jan, 2008 – 10:17 | 3 Comments
HOWTO: log the user’s IP, not the proxy’s, in Lighttpd access log

When you run a webserver behind a reverse proxy or HTTP accelerator like Squid or Varnish, the webserver access logs will display the IP of the proxy (generally 127.0.0.1) instead of the end user’s IP.  This not only breaks any kind of tracking or reporting you want to run against your webserver logs, but it [...]

HOWTO: create a pidfile for a startup script
Thursday, 8 Nov, 2007 – 15:32 | 3 Comments
HOWTO: create a pidfile for a startup script

On the monit mailing list today someone asked how they could monitor a process that didn’t have a pidfile associated with it.  Without thinking I jotted this down, there’s likely a better way, but this should work and may be all I need for some init.d scripts for a couple of apps on ramon (the home server).  In the the beginning of the [...]

HOWTO: notes on securing Debian
Wednesday, 10 Oct, 2007 – 10:13 | No Comment
HOWTO: notes on securing Debian

Looking over the Debian own harden-doc guide online, (which is a monster of a resource) as well as Debian Help’s security page gave me some excellent new ideas on how to secure Debian and Linux in general.   Also today i found a netstat command with some nice switches to help you figure out what is listening on each port in [...]

HOWTO: failed to set xfermode [SOLVED]
Friday, 22 Jun, 2007 – 19:17 | 25 Comments
HOWTO: failed to set xfermode [SOLVED]

UPDATE: thanks to a comment below from Ted, we now have a solution to have this option persist across kernel updates.  In grub, “…at the end of this new menu item add it as an argument to the line:
defoptions=quiet splash irqpoll
I knew there had to be a way, thanks for the post Ted!
There’s a known [...]

HOWTO: Jimmac mouse cursors on XP
Thursday, 21 Jun, 2007 – 10:33 | 2 Comments
HOWTO: Jimmac mouse cursors on XP

So the only thing I don’t love about my new job is the same old thing; you have to run Windows XP on the desktop. Yeah, I’ll give it a bit more time before I really start pushing to run Linux on the desktop, so until then it’s my ongoing struggle to get XP [...]

HOWTO: populate your term’s title automatically
Wednesday, 13 Jun, 2007 – 10:58 | 2 Comments
HOWTO: populate your term’s title automatically

When you’re running a ton of termial windows or tabs, it helps to have the title of the box name, along with some environment values, easily available to keep you orientated. Here’s a quick script I created to do this automatically when called via your .profile file in your home directory.
#!/bin/bash
HOST_NAME=`hostname -f`
if [ `id -u` [...]

HOWTO: fix a G3 iBook with a “bad logic board” for 26 cents
Tuesday, 29 May, 2007 – 22:01 | 11 Comments
HOWTO: fix a G3 iBook with a “bad logic board” for 26 cents

I’ve had a 12″ G3 iBook since ~2002, and I’ve really liked it. Of course me being me, I’ve run Linux on it for almost the whole time, even running a dual boot of OS X and Gentoo Linux back when I used this puppy on the job. The only thing I (and [...]

HOWTO: ssh tunneling for fun and profit
Monday, 16 Apr, 2007 – 12:34 | No Comment
HOWTO: ssh tunneling for fun and profit

Recently I had an issue at work; while trying to transfer files between Unix hosts we were unable to hit the known scp port, but we could still hit the ssh port. All of this was occurring from home, late at night on a Saturday where I was the main technical point man to move/install [...]

HOWTO: have vim create backup and tmp directories
Tuesday, 16 Jan, 2007 – 11:54 | 4 Comments
HOWTO: have vim create backup and tmp directories

This may only apply to those of us geeks that use vim to admin servers daily, but today I needed a way to backup, and automate the creation of backup and tmp directories to house those ever annoying ~ and .swp files from showing up in my working directory ($PWD). I didn’t want to [...]