Hostapd on CentOS 6

Posted by jason on Feb. 3, 2012, 6:31 a.m. - 6 comments
Tags: centos config hostapd linux sysadmin

Here's how I got hostapd working on my CentOS 6 box. This article (if you could call it that) is just a running commentary. I wrote it while figuring things out, so all the silly issues I encountered are included here. Yes, I could write this properly so that ...

VIM: Open multiple files at once in separate tabs

Posted by jason on Jan. 30, 2012, 7:29 a.m.
Tags: config vim

When I use vim, sometimes I like to open multiple files, each in its own tab. To do this, use the -p option:

[]$ vim -p file1 file2

I love the -p option but don't like typing it, so I added the following to my .bashrc file ...

VIM: Remember cursor position

Posted by jason on Jan. 27, 2012, 6:43 a.m.
Tags: centos config linux vim

For those who like how vim under CentOS remembers the previous cursor position when you open a file, here's the relevant code from /etc/vimrc. Just put it in your ~/.vimrc file:

if has("autocmd")
    augroup redhat
        "When editing a file, always jump to the last cursor position
        autocmd ...

Arch Linux: Open files directly from Chromium in i3 or Awesome

Posted by jason on Dec. 6, 2011, 7:13 a.m.
Tags: arch awesome config i3 linux

These instructions are for i3 without using a desktop environment like gnome or KDE. My problem was that I would download a file in Chromium, and when I tried to open it, it would open the file in firefox before being opened in the appropriate application. Here's the solution ...

Awesome WM widget tooltip example

Posted by jason on Oct. 22, 2011, 10:58 a.m.
Tags: arch awesome config linux widgets

I thought I'd post a simple example of how to set up a custom tooltip for a widget in Awesome.

This example will add an icon to a wibox, and when the user hovers over it, that machine's internal and external IP addresses will be shown. To do ...

An Example of Troubleshooting in Arch Linux

Posted by jason on Aug. 13, 2011, 3:13 p.m. - 1 comment
Tags: arch config linux sysadmin

I recently had a rather obscure problem with my Intel 5100 wireless card in Arch Linux. I doubt you had the same problem--this post is meant to illustrate the thought process (or lack thereof) while troubleshooting a random issue in Arch Linux.

The Problem

I went about a month without ...

Awesome WM widgets configuration

Posted by jason on July 21, 2011, 3:45 p.m. - 10 comments
Tags: arch awesome config linux widgets

I've been using Awesome WM for about six months, and I love it. The hard part was configuring everything--especially the widgets. Before using Awesome, I'd never seen nor heard of lua--the scripting language that awesome uses for its configuration files--but I am a programmer by trade, so it ...