Blogs

Enabling a serial console in CentOS

I have a headless LINUX server (CentOS 5.5) attached with a serial cable to a Windows client and I want to use PuTTY to connect to the console on the LINUX host.  Here are the file modifications I made.

[root@linux etc]# diff inittab.201105081915 inittab
18c18
< id:5:initdefault:
---
> id:3:initdefault:
42a43,44

Configuring a TrendNet TEW-623PI in CentOS

I recently installed CentOS 5.5 on an old Celeron-D with a TrendNet TEW-623PI Wireless N PCI adapter.  It took some poking about on google and centos.org to figure out how to make it work with my access point.  Here's the list of modifications I had to make. To give credit where credit is due, some of this is based on "http://wiki.centos.org/HowTos/Laptops/WpaSupplicant".

Installing NTFS support in CentOS 5.5

These are my notes from my experience installing support for NTFS in CentOS 5.5 (x64).

  1. Add RPMFORGE to the YUM Repository database
    1. Install the repository's key
      1. cd /tmp
      2. wget &quot;http://apt.sw.be/RPM-GPG-KEY.dag.txt&quot;

Windows XP VMware Guest Gaining Time

So I have this VMware guest running Windows XP on a x86_64-based CentOS VMware Server 1-based host.

The clock on the guest was gaining - between 5 and 10 seconds every minute or something ridiculous like that.

Finally I figured out what to do after reading this thread (http://communities.vmware.com/thread/51781?start=0&amp;tstart=0).

On the host:

Just finished reading the Java Language Specification

in

I just finished reading the Java Language Specification (3rd edition).  I don't think I've read anything else related to Java that has been more educational.  A lot more of what I was struggling with fits now and I have a lot more confidence in my ability to do something productive with Java now.

On to Beginning J2EE.  Oy.

Chapter 01 Exercise 1-13

This is just a basic histogram program. The maximum frequency is 30 just to keep it simple (I mean, jeeze, how many words are longer than 30 characters?). I know this is pretty elementary but after 16 years of not thinking algorithmically, it did stretch my brain a bit.

Chapter 01 Exercise 1-8

This exercise wasn't especially interesting except that it's the first C code I've written in about 16 years!

Assigning to a List of Variables in Bash

I have some files that need parsed and the fields assigned into variables using only bash and other builtin UNIX commands (not Perl).  The file is colon delimitted and has the following columns:

{group}:{gid}:{host}

Perl has a nice little construct that lets you do something like this:

My Favorite rpm Command

in

I frequently find myself wondering "what package does such-n-such a file belong to"?

My favorite rpm command comes to the rescue.
<br />rpm -qf &lt;file&gt;

For example, what package does the 'which' command belong to?

[root@localhost ~]# rpm -qf /usr/bin/which
which-2.16-7

Perl Data::Dumper Module

in

I'm gathering data about how my company uses LDAP and need to peruse some rather large chunks of the schema + data and turn it into information I can use to build an extraction routine to use with SAS.

I've decided to use Perl to write a dump routine to spit out data to a file. Data::Dumper seems like the right place to start, especially if I want to reuse the dumped data in more Perl code. So, I started out learning about Data::Dumper.

SSH and Permissions

Recently, I and some coworkers ran into a problem with ssh where it would prompt for a password even though we had created a private/public key pair and had distributed the public key into the authorized_keys.

Using Emacs to Write Perl

So, I've been fiddling with Emacs for a while now, and I'm starting to actually learn some Lisp.  Now I want to get Emacs to play nicely with Perl including with perltidy and perlcritic.

I found the following two Emacs (Emacs Lisp) programs:

http://www.emacswiki.org/cgi-bin/wiki/perltidy.el

http://www.emacswiki.org/cgi-bin/wiki/perlcritic.el

xargs

Processing a list with one argument per line

(such as a list returned by find . -name "<pattern>")

The IT User Dichotomy

In my experience, there exists in IT a dichotomy between the two main types of users:

1. Technical Users (truly technical) users who understand programming, networking and at least some hardware

and

What Happens When You Assume

Be careful what you assume!

You see, an assumption is just one of those pre-conceived ideas upon which people make faulty judgments. Without knowing all the facts, people presume to know enough about a situation to be able to speak and act - unfortunately, they're speaking and acting according to an incomplete picture.

A Beautiful March 1st Morning In Mississippi

What a beautiful, snowy March 1st morning! It sure is hard to believe that the climate is warming and we'll all fry soon!

Completely inadequate IPCC models produce the ultimate deception about man made global warming

Completely inadequate IPCC models produce the ultimate deception about man made global warming

I don't know why I am still amazed at how easily the governments of the world and their hooker-agencies can continually deceive mankind. I guess people are just too tired to care. I can only think that one day, when the economy is entirely in shambles and unemployment, poverty and crime are running rampant across the globe, the people will again begin to care - I dread that day because when mass-hysteria begins to take control and the mobs begin to riot and the military starts to intercede, then the innocent will suffer and the culprits will escape in the confusion that ensues.

Syndicate content